[mapguide-trac] #740: GETSPATIALCONTEXTS and GDAL Always
Returns Default Extents
MapGuide Open Source
trac_mapguide at osgeo.org
Wed Oct 29 06:37:37 EDT 2008
#740: GETSPATIALCONTEXTS and GDAL Always Returns Default Extents
-----------------------------+----------------------------------------------
Reporter: crispinatime | Owner:
Type: defect | Status: new
Priority: medium | Milestone: 2.1
Component: Feature Service | Version: 2.0.2
Severity: major | Resolution:
Keywords: | External_id:
-----------------------------+----------------------------------------------
Comment (by crispinatime):
Well,... if in Maestro I delete the CS on the FeatureSource, Save it and
then "Test Connection" in Maestro and refresh the CS override I find that
Maestro has re-populated the CS-override with a default CS even though my
TIF does not have a CS...
Default :: LOCAL_CS["*XY-MT*",LOCAL_DATUM["*X-Y*",10000],UNIT["Meter",
1],AXIS["X",EAST],AXIS["Y",NORTH]]
I thought I could be clever (never a good thing) and force the following
where Maestro creates the temporary resource to get the extents - and I
think something like this may be required when a user has specified an
override at the FeatureSource level...
ConfigUpdater.cs (after line 181)
{{{
MaestroAPI.SpatialContextType sctThis1 = new
OSGeo.MapGuide.MaestroAPI.SpatialContextType();
sctThis1.Name = "Default";
// sctThis1.CoordinateSystem = "LOCAL_CS[\"Non-Earth
(Meter)\",LOCAL_DATUM[\"Local Datum\",0],UNIT[\"Meter\",
1],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]]";
// sctThis1.CoordinateSystem = "LOCAL_CS[\"*XY-
MT*\",LOCAL_DATUM[\"*X-Y*\",10000],UNIT[\"Meter\",
1],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]]";
sctThis1.CoordinateSystem = "";
MaestroAPI.SpatialContextTypeCollection sctcThis = new
OSGeo.MapGuide.MaestroAPI.SpatialContextTypeCollection();
sctcThis.Add( sctThis1);
fs.SupplementalSpatialContextInfo = sctcThis;
}}}
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/740#comment:4>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list