[mapguide-users] Working with the current selection

Andy Morsell amorsell at spatialgis.com
Tue Apr 18 10:21:01 EDT 2006

Are you sure that myMap is a valid name for a map in your repository?  It
should also be the name of the map you are working with when this code is

Andy Morsell, P.E.
Spatial Integrators, Inc.

-----Original Message-----
From: Berdel, Brian [mailto:brian.berdel at mcmtrans.com] 
Sent: Tuesday, April 18, 2006 7:11 AM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] Working with the current selection

Has anyone been able to work with the active selection in a map?  (I am
working with the sample in the development guide (Page 39-40)

I keep getting an error saying:  

Message	"Resource was not found:

I am able to open the map and the session is valid.  I am basically copying
the code (although I am converting to asp.net..)

Here is some of the code:

Dim mgSessionId As String = GetParameters()("SESSION") Dim matches As
Integer = 0  ' Variable to control output results.
Dim mapUpdated As Boolean = False

Dim userInfo As MgUserInformation = New MgUserInformation(mgSessionId) Dim
siteConnection As MgSiteConnection = New MgSiteConnection
Dim resourceService As MgResourceService =
Dim featureService As MgFeatureService =
Dim queryOptions As New MgFeatureQueryOptions Dim map As New MgMap
map.Open(resourceService, "myMap") Dim Selection As New MgSelection(map)

ERROR OCCURS at the line below
Selection.Open(resourceService, "myMap")

Thanks for any suggestions

To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org

More information about the Mapguide-users mailing list