[mapguide-trac] #538: Problem with creation of buffer from multiple
context FDO
MapGuide Open Source
trac_mapguide at osgeo.org
Thu Apr 24 06:53:40 EDT 2008
#538: Problem with creation of buffer from multiple context FDO
------------------------------+---------------------------------------------
Reporter: jcsilva | Owner:
Type: defect | Status: new
Priority: medium | Milestone:
Component: Viewer Command | Version:
Severity: major | Keywords:
External_id: |
------------------------------+---------------------------------------------
When creating a buffer with the .net viewer, from an FDO source with more
than one coordinate system context, the buffer.aspx assumes the first
context for the buffer measure, not the selected features context.
In a case where the selected features are in a projected context, but the
first context of the feature source is lat lon, one of two things happen:
1) The merge flag is active: There's a memory usage peak and the buffer
fails.
2) The merge flag is inactive: There's no failure, but no buffer creation.
The buffer.aspx, buffer.jsp and buffer.php must be corrected to calculate
the measure in the selected features coordinate context. Not the first one
on the list.
This is as it is now:
{{{
MgResourceIdentifier featSourceId = new
MgResourceIdentifier(selLayer.GetFeatureSourceId());
MgSpatialContextReader ctxs = featureSrvc.GetSpatialContexts(featSourceId,
false);
String srsDefDs = "";
if (ctxs != null && ctxs.ReadNext())
srsDefDs = ctxs.GetCoordinateSystemWkt();
}}}
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/538>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list