[mapguide-users] SetSelectionXML 'Stack overflow at line 0' errow
Matteo
matteo.conte1979 at libero.it
Thu Jan 22 15:01:26 EST 2009
Hi Chris,
I use this code:
....
objMap = New MgMap(objMGSite)
objMap.Open(objMapId.GetName)
objLayer = objMap.GetLayers.GetItem(strLayer)
objQueryIdOptions = New MgFeatureQueryOptions()
objQueryIdOptions.SetFilter(strFilter)
Dim objFeatureR2 As MgFeatureReader =
objLayer.SelectFeatures(objQueryIdOptions)
Response.Write("<br/>ObjFeature")
objSelection = New MgSelection(objMap)
objSelection.AddFeatures(objLayer, objFeatureR2, 0)
Dim strXML as String=objSelection.ToXML()
....
At the end of ASP.NET function I put the strXML value into as html input box
then I call the Javascript code
..mapFrame.SetSelectionXML(document.XMLinput.value)
Thanks
Matteo
Chris Claydon wrote:
>
> I don't see any errors in the format of the XML. Are you retrieving the
> layer ID dynamically?
>
> -----Original Message-----
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Matteo
> Sent: Thursday, January 22, 2009 12:28 PM
> To: mapguide-users at lists.osgeo.org
> Subject: [mapguide-users] SetSelectionXML 'Stack overflow at line 0' errow
>
>
> Hi all,
> I work with MGOS 2.0.2 on windows XP. I develop with ASP.NET. When I try
> to select some feature with a code filter the SetSelectionXML function get
> me the follow error "Stack overflow at line 0". The value of parameter
> that
> I send to the function is:
>
> <?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="4b540ce0-0000-1000-8000-000475cae734"> <Class id="Default:Zona1_a7">
> <ID>APmZuQjg2UI=</ID> </Class> </Layer></FeatureSet>
>
> What is wrong?
> Thanks
> Matteo
> --
> View this message in context:
> http://n2.nabble.com/SetSelectionXML-%27Stack-overflow-at-line-0%27-errow-tp2199620p2199620.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context: http://n2.nabble.com/SetSelectionXML-%27Stack-overflow-at-line-0%27-errow-tp2199620p2199806.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list