Thanks you Bruce for your explanation ... I added a ticket number #1022
For my problem, I wrote a aspx page which take a polygon and a layer name as arguments because OPERATION=QUERYMAPFEATURES needs a layer is active. Regards, Lionel Lionel GOUBET [email protected] Chef de projet informatique Project Manager GEOMAP SERVICES Savoie Technolac Le Square A 17 .BP 210 F-73374 Le Bourget du Lac www.geomapgis.com Direct : Port.: General : Fax : +33 (0) 4 79 25 38 62 +33 (0) 6 27 44 66 53 +33 (0) 4 79 25 38 80 +33 (0) 4 79 25 38 70 -----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Bruce Dechant Envoyé : lundi 22 juin 2009 10:21 À : MapGuide Users Mail List Objet : RE: [mapguide-users] QUERYMAPFEATURES Hi, You are seeing the error because there are several "SELECTIONVARIANT" values missing from the source code. I believe the reason they are missing is that only the most common ones have been added as not all providers support all of the ones allowed by FDO. The code that controls this is located in the HttpQueryFeatures.cpp file. Here is the code snippet of what is supported currently: // Create the selection variant INT32 selectionVariant = 0; if(m_selectionVariant.length() > 0) { if (m_selectionVariant == L"TOUCHES") selectionVariant = MgFeatureSpatialOperations::Touches; else if (m_selectionVariant == L"INTERSECTS") selectionVariant = MgFeatureSpatialOperations::Intersects; else if (m_selectionVariant == L"WITHIN") selectionVariant = MgFeatureSpatialOperations::Within; else if (m_selectionVariant == L"ENVELOPEINTERSECTS") selectionVariant = MgFeatureSpatialOperations::EnvelopeIntersects; else // add more values if necessary { MgStringCollection arguments; arguments.Add(L"0"); arguments.Add(m_selectionVariant); throw new MgInvalidArgumentException(L"MgHttpQueryMapFeatures.Execute", __LINE__, __WFILE__, &arguments, L"MgInvalidFeatureSpatialOperation", NULL); } } As you can see "INSIDE" is missing - along with others. Please create a trac ticket for this issue as the missing ones should be added. If a particular provider doesn't support the specified "SELECTIONVARIANT" then it will throw an exception and the client will know that it is a provider limitation instead of what is happening now. Thanks, Bruce -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of lgoubet Sent: Friday, June 19, 2009 6:06 AM To: [email protected] Subject: [mapguide-users] QUERYMAPFEATURES Hi, I use /mapguide2009/mapagent/mapagent.fcgi?OPERATION=QUERYMAPFEATURES&VERSION=1.0.0&PERSIST=1&MAPNAME=MACARTE&SESSION=e4433420-ffff-ffff-8000-005056c00001_fr_7F0000010AF20AF10AF0&SEQ=0.5438243192685027&LAYERNAMES=LAYER1&GEOMETRY=CURVEPOLYGON ((985200.554430509 111930.547565891 (CIRCULARARCSEGMENT (990200.554430509 106930.547565891, 995200.554430509 111930.547565891), CIRCULARARCSEGMENT (990200.554430509 116930.547565891, 985200.554430509 111930.547565891))))&SELECTIONVARIANT=INTERSECTS&CLIENTAGENT=Ajax%20Viewer and I get a response that I work with ajax/javascript. But if I change SELECTIONVARIANT=INTERSECTS and SELECTIONVARIANT= INSIDE it doesn't work because the Argument(s) incorrect(s): [0] = "INSIDE" L'opération spatiale de l'objet est incorrecte car elle n'est pas reconnue. Argument(s) incorrect(s): [0] = "INSIDE" L'opération spatiale de l'objet est incorrecte car elle n'est pas reconnue. Une exception s'est produite dans la méthode MgHttpQueryMapFeatures.Execute à la ligne 115 dans le fichier d:\build\carrera_nightly\build_34.2\ent\os\web\src\httphandler\HttpQueryMapFeatures.cpp Do you have a solution ? Must I write a another page (aspx for me) to make this thing ? Where find documentation on QUERYMAPFEATURES ? Thanks you very much -- View this message in context: http://n2.nabble.com/QUERYMAPFEATURES-tp3119257p3119257.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
_______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
