[ZS1] Re: [mapguide-users] current selection does not work

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Sat Sep 6 13:07:26 EDT 2008


I'm not sure why the xml looks as you display, but it is URL encoded, 
and using URL Decode should give you the
correct xml. In .Net the call is System.Net.HttpUtility.UrlDecode, for 
PHP you can just call "urldecode".

Regards, Kenneth Skovhede, GEOGRAF A/S



Tony skrev:
> yes  there is a limit but what i want is how to get the xml
>
>  l_oSel.FromXml(l_sSelect); the xml i am getting is in raw format 
>
> %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3CFeatureSet%3E%0A%3CLayer%20id%3D%223bd14d38-0000-1000-800c-0019d2caa8be%22%3E%0A%3CClass%20id%3D%22Default%3Assgg_DBO_SD_MAINS%22%3E%0A%3CID%3EBAAAAA%3D%3D%3C%2FID%3E%0A%3CID%
>
> i am getting an exception when i try to do the l_oSel.FromXml . did anyone
> came across this.
>  
> anyone any ideas.
>
> thanks
> Tony_mg
>
>
> zspitzer wrote:
>   
>> isn't there a limit in serverconfig on the number of features that can be
>> selected?
>>
>> On Thu, Sep 4, 2008 at 6:02 PM, shreepad Ranadive
>> <shreepadr at valuecad.com>wrote:
>>
>>     
>>> i also have same problem  any one worked on current selection ??
>>>
>>> shreepad
>>>
>>>
>>>
>>> Tony_mg wrote:
>>>       
>>>> String l_sSession = GetParameters()["SESSION"];
>>>> String l_sSelect = Request .Form ["SEL"];
>>>>
>>>>  MgUserInformation l_oCred = new MgUserInformation(l_sSession);
>>>>                     MgSiteConnection l_oSite = new MgSiteConnection();
>>>>                     l_oSite.Open(l_oCred);
>>>>                     ArrayList listEQ = null;
>>>>                     MgResourceService l_oResourceSrvc =
>>>>
>>>>         
>>> (MgResourceService)l_oSite.CreateService(MgServiceType.ResourceService);
>>>       
>>>>                     MgFeatureService l_oFeatureSrvc =
>>>> (MgFeatureService)l_oSite.CreateService(MgServiceType.FeatureService);
>>>>
>>>>                     MgMap l_oMap = new MgMap();
>>>>                     l_oMap.Open(l_oResourceSrvc, "General Public Map");
>>>>                     MgSelection l_oSel = new MgSelection(l_oMap);
>>>>
>>>>                     l_oSel.FromXml(l_sSelect);
>>>> getting error at FromXML by the way i am passing more then 500
>>>>         
>>> selection
>>>       
>>>>                     MgReadOnlyLayerCollection l_cSelLayers =
>>>> l_oSel.GetLayers();
>>>>   MgFeatureReader featReader = null;
>>>>   for (int i = 0; i < l_cSelLayers.GetCount(); i++)
>>>>   {
>>>>       MgLayer layer = l_cSelLayers.GetItem(i) as MgLayer;
>>>>       if ((layer != null) && (layer.GetName() == "main"))
>>>>       {
>>>>
>>>>           Response.Write("Layer found");
>>>>       }
>>>>   }
>>>>
>>>> any ideas , its kinda urgent . please  help
>>>>
>>>>
>>>>
>>>>         
>>> -----
>>> Shreepad Ranadive
>>> Direcotor , Application Development
>>> ValueCAD
>>> 444 Natoma St
>>> Sanfrancisco,CA 94103
>>> --
>>> View this message in context:
>>> http://www.nabble.com/current-selection--does-not-work-tp19305385p19305409.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
>>>
>>>       
>>
>> -- 
>> Zac Spitzer -
>> http://zacster.blogspot.com (My Blog)
>> +61 405 847 168
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>>     
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080906/2d810b15/attachment.html


More information about the mapguide-users mailing list