[mapguide-users] Not Implemented for MgSelection.GenerateFilter

Kenneth, GEOGRAF A/S ks at geograf.dk
Tue Apr 15 03:18:19 EDT 2008


You can't see the properties, because the MgSelection class is a SWiG 
wrapper for a C++ class.
Visual Studio does not call the underlying Dll (P/Invoke), so basically 
no properties are visible.
It quite annoying, but normal.
For some problems, you can get the values by typing something like "? 
sel.ToString()" in the "Immediate" window.

Regards, Kenneth, GEOGRAF A/S



Darrin Maidlow skrev:
>
> Hi Steve,
>
>  
>
> Thanks for the suggestion and quick reply.  I had tried MgSelection 
> initially, and changed it over to MgSelectionBase in my trying of 
> things.  I just set it back and am still receiving the Not Implemented 
> error.
>
>  
>
> One other thing I noticed that may or may not be relevant is they if I 
> right click and quick watch on the mgselection object, the properties 
> are not visible in the IDE.
>
>  
>
> Below is the XML from my selection in case it is relevant.
>
> <FeatureSet size="1">
>
> <Layer id="4631e36a-0000-1000-8004-0011d8b31fa4">
>
> <Classid="Default:V_FV_BLDG_DOCUMENT">
>
> <ID>VHlwaWNhbCBIaWdoIFJpc2UgT2ZmaWNlAJkAAAAJAAAABQAAADM2MCBDYW1lcmEACAAAADM2MCBDYW1lcmEAbW92AAEAAAACAAAAT2ZmaWNlIC0gTGFyZ2UgMzYwANcHCAENAAAAAAAAAQAAAA==</ID>
>
> </Class>
>
> </Layer>
>
> </FeatureSet>"
>
>  
>
> Thanks again
>
> darrin
>
> *From:* mapguide-users-bounces at lists.osgeo.org 
> [mailto:mapguide-users-bounces at lists.osgeo.org] *On Behalf Of *Steve Dang
> *Sent:* Monday, April 14, 2008 2:47 PM
> *To:* MapGuide Users Mail List
> *Subject:* RE: [mapguide-users] Not Implemented for 
> MgSelection.GenerateFilter
>
>  
>
> Try to use MgSelection instead of MgSelectionBase (e.g. Dim currentSel 
> As New MgSelection(oMap))
>
>  
>
> Steve.
>
>  
>
> *From:* mapguide-users-bounces at lists.osgeo.org 
> [mailto:mapguide-users-bounces at lists.osgeo.org] *On Behalf Of *Darrin 
> Maidlow
> *Sent:* Monday, April 14, 2008 1:28 PM
> *To:* mapguide-users at lists.osgeo.org
> *Subject:* [mapguide-users] Not Implemented for MgSelection.GenerateFilter
>
>  
>
> Hi,
>
>  
>
> I'm stuck trying to work with a selection generated from the dwf 
> viewer.  I've been working with the sample in the developers guide but 
> ported over to vb.net.  I'm running MGE 2008.
>
>  
>
> Basically I go through the motions, create new selection based on the 
> passed selectionXML and everything is cool until I get to the 
> MgSelection.GenerateFilter call.  When I pass the layer object, and 
> the session ID I get an MgNotImplemented error.
>
>  
>
> I've attached a text file with a bit o' code.  Any suggestions would 
> be greatly appreciated.  I'm sure I've missed something little or done 
> something silly.
>
>  
>
> Thanks
>
> darrin
>
>  
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20080415/2b56872d/attachment.html


More information about the mapguide-users mailing list