I Am able to hit a remote machine do a CreateRuntimeMap CGI call and select features in the session map with a QueryMapFeatures fcgi call.
What I can't figure out is how to get the Geometry of the selected objects in the session or other relevant information. I'd like to use the mapguide API in c# but on a remote server I can't quite figure out how to get around the InitializeWebTier...isn't their a way to get an MgMap/MgSite/ etc object by using the URL and SessionId of the runtimemap without the need for an INI file...if it is required is their a generic ini file i can place local to my code that should work on most instances of Mapguide i.e MapguideOS and AIMS? I tried to Utilize the Maestro Source code in Visual Studio to run a trace, but when I attempt to Run it in Debug I receive over 650 errors, and manually tracing through the code is really cryptic. I also wondered if REST would do the trick but couldn't find enough documentation to tell me if it would meet all the criteria. string remotesite = "http://www.remoteservername.com/mapguide/mapagent/mapagent.fcgi" MgUserInformation mguserinformation = new MgUserInformation(runtimemap.SessionId); mguserinformation.SetMgSessionId(obj.SessionId); //just in case //MgSite mgsite = new MgSite(); //MgSiteInfo MSI = new MgSiteInfo(remotesite, 2812, 2811, 2810); //TEST //mgsite.Open(mguserinformation, MSI);//TEST MgSiteConnection mgsiteconnection = new MgSiteConnection(remotesite); mgsiteconnection.Open(mguserinformation); This does not work -- View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-use-API-get-selection-geom-on-Remote-Server-using-a-GETRUNTIMEMAP-session-ID-tp5231522.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
