Skip to content

Instantly share code, notes, and snippets.

@jumpinjackie
jumpinjackie / RenderMap.dib
Last active December 13, 2021 13:39
HOWTO: Render a map image using the MapGuide Maestro API
#!markdown
# HOWTO: Render a map image using the MapGuide Maestro API
#!markdown
Firstly, add a reference to the [`OSGeo.MapGuide.MaestroAPI`](https://www.nuget.org/packages/OSGeo.MapGuide.MaestroAPI) package on NuGet
#!csharp
@jumpinjackie
jumpinjackie / poll.md
Last active September 7, 2020 11:48
MapGuide 4.0 poll results

MapGuide 4.0 poll results

Oracle Instant Client

We will build against the 12c R2 instant client SDK

MapGuide Java API

We will target JDK8 + Tomcat 9

@jumpinjackie
jumpinjackie / Dockerfile
Last active June 8, 2019 00:35
vcpkg port build test (Ubuntu 16.04)
FROM ubuntu:16.04 as vcpkg-build
RUN apt-get clean \
&& apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository ppa:ubuntu-toolchain-r/test -y \
&& apt-get update
RUN apt-get install -y build-essential g++-7 git curl unzip tar p7zip-full libxxf86vm-dev \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 \
@jumpinjackie
jumpinjackie / MyRenderer.cpp
Last active May 31, 2019 12:14
SE_Renderer template
#include "MyRenderer.h"
MyRenderer::MyRenderer()
: m_activeLayer(nullptr), m_mapInfo(nullptr), m_layerInfo(nullptr), m_fcInfo(nullptr)
{
}
MyRenderer::~MyRenderer()
{
@jumpinjackie
jumpinjackie / slate.xml
Created January 30, 2019 11:21
Fusion Localization Issues?
Re: http://osgeo-org.1560.x6.nabble.com/Localization-with-Accents-td5393429.html
I did a quick and dirty french Google Translate on some of the command names in an example Flexible Layout and loaded it in both the
unified and individual entrypoint templates and could not reproduce the problem. The accented characters of the french translations show
properly regardless of the setting of `locale`. Screenshot to be included below.
Attached is the flex layout I used with some french translations. One thing to note is that I don't have the characters xml-entity-encoded
in my flex layout. The raw accented characters are in the XML content. Is this the case for yours?
@jumpinjackie
jumpinjackie / immutable.ts
Last active September 28, 2018 13:41
Immutable.JS TypeScript 2.8 edition
//Some example interface
interface IGeographicCoordinate {
lat: number;
lng: number;
}
interface IPlacemark {
id: number;
coordinate: IGeographicCoordinate;
name: string;
@jumpinjackie
jumpinjackie / MySqlInit.txt
Last active December 5, 2017 14:30
docker-based FDO RDBMS test environment
provider=MySql;service=fdodb;username=root;password=fdotest;clean=false;
@jumpinjackie
jumpinjackie / example.cs
Created September 22, 2016 14:14
Inserting/Updating/Deleting features in MapGuide
/**
* All code fragments here listed for informational purposes. Do not expect to copy/paste this code and expect it to compile
*
* All examples here assume we work against a point feature source at Library://Test.FeatureSource with a feature class structured like so:
*
* Schema: Default
* Class: Points
* Properties:
* ID: int (identity)
* Name: string
@jumpinjackie
jumpinjackie / fixsqlite
Created June 18, 2015 11:20
Fix SQLite data stores with no FDO spatial context
-- Put in a default spatial context entry
insert into spatial_ref_sys(srid, sr_name)
values (1, 'Default')
-- Make all geometry columns point to it
update geometry_columns
set srid = 1
@jumpinjackie
jumpinjackie / iconv_test
Created July 30, 2014 02:49
iconv_open test application
#include <iconv.h>
#include <stdio.h>
int main(int argc, char** argv)
{
iconv_t r = iconv_open("UTF-8", "WCHAR_T");
if ((iconv_t)-1 != r)
{
iconv_close(r);
printf("iconv_open() worked!\n");