[mapguide-users] GetExtents .... Missing something very Simple
Please Help
Scott Hameister
scotth at mpower-tech.com
Mon Nov 5 17:32:08 EST 2007
I've got an XML Selection Info String like Below: (variable MyXMLString)
<?xml version="1.0" encoding="UTF-8"?><FeatureSet
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd"> <Layer
id="cf960ec8-ffff-ffff-8000-00188bc21b30"> <Class id="Schema:DERIVEDDATA">
<ID>DwAAAA==</ID> <ID>EAAAAA==</ID> <ID>EQAAAA==</ID> <ID>EgAAAA==</ID>
<ID>EwAAAA==</ID> <ID>FAAAAA==</ID> <ID>FQAAAA==</ID> <ID>FgAAAA==</ID>
<ID>FwAAAA==</ID> <ID>GAAAAA==</ID> <ID>GQAAAA==</ID> <ID>GgAAAA==</ID>
<ID>GwAAAA==</ID> <ID>HAAAAA==</ID> <ID>HQAAAA==</ID> <ID>HgAAAA==</ID>
<ID>OAAAAA==</ID> <ID>OQAAAA==</ID> <ID>OgAAAA==</ID> <ID>OwAAAA==</ID>
<ID>PQAAAA==</ID> <ID>PgAAAA==</ID> </Class> </Layer> </FeatureSet>
This is not the same string as objects currently selected on the map..I need
to find the extents of this XML without screwing up the current selection.
I took the current Selection and stored it
<cfset CurrSel = selection.ToXml()>
Then I set the Selection to my String i.e.MyXMLString variable
<cfset CurrSel = Selection.FromXml(MyXMLString)>
Then Asked for extents.
<cfset MyXMLEnvelope = Selection.GetExtents(featureservice)>
But when I look at the extents.it's the extents of my original Large
Selection.and not just my subset in the MYXMLString variable.
,..What Am I missing here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20071105/27767acc/attachment.html
More information about the mapguide-users
mailing list