[mapguide-internals] Raster Layer Default Extents

Frank Warmerdam warmerdam at pobox.com
Mon Mar 5 18:05:38 EST 2007

Traian Stanev wrote:
> Hi Frank. 
> I was able to make it work correctly. The problem was that MapGuide
> (incorrectly) uses the string returned by GetCoordinateSystem() to
> determine if a spatial context is defined. The GDAL provider returns
> empty string for GetCoordinateSystem() so MapGuide doesn't even try to
> read the values from the spatial context. I changed your
> GetCoordinateSystem() to simply return the same value as the name of the
> spatial context and it started working fine.
> Also, I recommend making the DefaultRasterLocation property "required"
> so that it shows up in the generic connection dialog in MapGuide Studio.
> This way it makes it easy for someone using Studio to set up a GDAL
> connection. It's strange that properties that are not explicitly
> "required" don't show up in the Studio UI, but oh well.


Sweet! I'll apply these in the provider, test it, and then apply to 3.2.x
branch as well as provide a sample dll for folks to try.  This should make
the gdal provider substantially easier to use, and less frustrating.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org

More information about the mapguide-internals mailing list