[mapguide-users] current selection does not work

Zac Spitzer zac.spitzer at gmail.com
Thu Sep 4 04:11:51 EDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080904/f75cb21d/attachment.html


More information about the mapguide-users mailing list