Re: [mapserver-users] problem with INTERSECTS query from OpenLayers to mapserver
Perhaps your mail program dropped the annex even I named the file as .txt. Here it is inline wfs:GetFeature xmlns:ogc=http://www.opengis.net/ogc; xmlns:gml=http://www.opengis.net/gml; xmlns:wfs=http://www.opengis.net/wfs; service=WFS version=1.0.0 maxFeatures=1000 outputFormat=GML2 wfs:Query typeName=pks_suuralue ogc:PropertyNamefid/ogc:PropertyName ogc:PropertyNamekokotun/ogc:PropertyName ogc:PropertyNamekunta/ogc:PropertyName ogc:PropertyNamemtryhm/ogc:PropertyName ogc:PropertyNamenimi/ogc:PropertyName ogc:PropertyNamenimi_iso/ogc:PropertyName ogc:PropertyNameogc_fid/ogc:PropertyName ogc:PropertyNamesuur/ogc:PropertyName ogc:PropertyNamemsGeometry/ogc:PropertyName ogc:Filter ogc:And ogc:PropertyIsEqualTo ogc:PropertyNamesuur/ogc:PropertyName ogc:Literal6/ogc:Literal /ogc:PropertyIsEqualTo ogc:Intersects ogc:PropertyNamemsGeometry/ogc:PropertyName gml:Polygon gml:outerBoundaryIs gml:LinearRing gml:coordinates decimal=. cs=, ts= 370867.65371360903,6691716.459177742 378991.47207721433,6697637.208154607 386013.7557474494,6691027.94385 385600.68023743556,6680150.344897354 374585.037335,6680563.420407368 368664.58432686864,6684831.867344178 370867.65371360903,6691716.459177742/gml:coordinates /gml:LinearRing /gml:outerBoundaryIs /gml:Polygon /ogc:Intersects /ogc:And /ogc:Filter /wfs:Query /wfs:GetFeature -Jukka Rahkonen- Sally Buechel wrote: Thank-you Jukka for the idea. Where do I find the annexed filter? Sally ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] problem with INTERSECTS query from OpenLayers to mapserver
Le samedi 14 septembre 2013 15:06:09 Sally Buechel a écrit : Yves - you are right. I really should re-compile with debug mode on, especially if you think there will be useful info for this particular problem. I had some problems with my original compile so had been putting off doing that. Sally, You don't need to build MapServer, you can have a look to the MAP object documentation page and search for DEBUG parameter: MAP ... DEBUG 4 CONFIG MS_ERRORFILE /ms4w/tmp/ms_error.txt ... END See also http://mapserver.org/fr/optimization/debugging.html Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : 021 619 10 43 (new) Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jaco...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] problem with INTERSECTS query from OpenLayers to mapserver
The polygon query fails with no output to the debug file so this must be very early on? Interestingly, the non-spatial query is now failing too, but during the msPostGISReadShape: of the records found. Sometimes on the 15 and sometimes on the 17th attribute.h ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] problem with INTERSECTS query from OpenLayers to mapserver
Hi, Perhaps comparison with the annexed filter helps. The filter is created by Kosmo GIS and it works against my Mapserver 6.2 at http://hip.latuviitta.org/cgi-bin/mapserver_wfs Try to edit my filter fo look like that one created by OpenLayers and let's hope that at some moment you will get my server to fail in a similar way. -Jukka Rahkonen- Yves Jacolin wrote: Sally, Le vendredi 13 septembre 2013 11:53:33 Sally Buechel a écrit : [..] I'm using mapserver 6.2.1 and the current OpenLayers.js. I can run the wfs.map file using shp2img and get a valid response from mapserver, I can run non-spatial filters using my OpenLayers WFS call to mapserver. The POST request sent to mapserver with the spatial query looks fine, but I simply get the not very helpful premature end of script headers : mapserv in response. The spatial input is a hand-drawn polygon in OpenLayers and the intersection at the mapserver end is a postgis table containing a polygon field. The table is large, but a spatial restriction should always yield a manageable number of records. Without a spatial restriction in the filter, I've noticed that mapserver tried to load all the data, so have currently restricted it to 100 records for testing/debugging. I'm assuming once I get the spatial filter that this will restrict the number of records retrieved on the server side. I have some assumptions, but as I said I've not been able to find a working example of this online, maybe because its too simple and everyone but me has it working? Should what I'm trying to do work or am I just beating my head against the wall? It doesn't seem that this should be so hard. Before beating your head against the wall, which can hurt you, try to enable debug mode in MapServer and have a look to the log. MapServer can give interesting information about what he is doing before the premature end of script. Hope it helps you. Y. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users wfs:GetFeature xmlns:ogc=http://www.opengis.net/ogc; xmlns:gml=http://www.opengis.net/gml; xmlns:wfs=http://www.opengis.net/wfs; service=WFS version=1.0.0 maxFeatures=1000 outputFormat=GML2wfs:Query typeName=pks_suuralueogc:PropertyNamefid/ogc:PropertyNameogc:PropertyNamekokotun/ogc:PropertyNameogc:PropertyNamekunta/ogc:PropertyNameogc:PropertyNamemtryhm/ogc:PropertyNameogc:PropertyNamenimi/ogc:PropertyNameogc:PropertyNamenimi_iso/ogc:PropertyNameogc:PropertyNameogc_fid/ogc:PropertyNameogc:PropertyNamesuur/ogc:PropertyNameogc:PropertyNamemsGeometry/ogc:PropertyNameogc:Filterogc:Andogc:PropertyIsEqualToogc:PropertyNamesuur/ogc:PropertyNameogc:Literal6/ogc:Literal/ogc:PropertyIsEqualToogc:Intersectsogc:PropertyNamemsGeometry/ogc:PropertyNamegml:Polygon gml:outerBoundaryIsgml:LinearRinggml:coordinates decimal=. cs=, ts= 370867.65371360903,6691716.459177742 378991.47207721433,6697637.208154607 386013.7557474494,6691027.94385 385600.68023743556,6680150.344897354 374585.037335,6680563.420407368 368664.58432686864,6684831.867344178 370867.65371360903,6691716.459177742/gml:coordinates/gml:LinearRing/gml:outerBoundaryIs/gml:Polygon /ogc:Intersects/ogc:And/ogc:Filter/wfs:Query/wfs:GetFeature___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] problem with INTERSECTS query from OpenLayers to mapserver
Thank-you Jukka for the idea. Where do I find the annexed filter? Sally ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] problem with INTERSECTS query from OpenLayers to mapserver
Yves - you are right. I really should re-compile with debug mode on, especially if you think there will be useful info for this particular problem. I had some problems with my original compile so had been putting off doing that. Sally ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] problem with INTERSECTS query from OpenLayers to mapserver
Am hoping someone can help or at least point me in the right direction regarding a problem I'm having trying to send a spatial filter produced in OpenLayers to mapserver. What I'm trying to do is so basic, I'm sure that many have done this, yet I've been unsuccessful. I thought this would be easy. With much searching I have found similar questions, but nothing actually answering or showing a working example of this. I'm using mapserver 6.2.1 and the current OpenLayers.js. I can run the wfs.map file using shp2img and get a valid response from mapserver, I can run non-spatial filters using my OpenLayers WFS call to mapserver. The POST request sent to mapserver with the spatial query looks fine, but I simply get the not very helpful premature end of script headers : mapserv in response. The spatial input is a hand-drawn polygon in OpenLayers and the intersection at the mapserver end is a postgis table containing a polygon field. The table is large, but a spatial restriction should always yield a manageable number of records. Without a spatial restriction in the filter, I've noticed that mapserver tried to load all the data, so have currently restricted it to 100 records for testing/debugging. I'm assuming once I get the spatial filter that this will restrict the number of records retrieved on the server side. I have some assumptions, but as I said I've not been able to find a working example of this online, maybe because its too simple and everyone but me has it working? Should what I'm trying to do work or am I just beating my head against the wall? It doesn't seem that this should be so hard. Sally ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] problem with INTERSECTS query from OpenLayers to mapserver
Sally, To make it easier for people to help you figure this out, I would suggest including the request string produced by OpenLayers and your mapfile text. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Sally Buechel Sent: Friday, September 13, 2013 1:54 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] problem with INTERSECTS query from OpenLayers to mapserver Am hoping someone can help or at least point me in the right direction regarding a problem I'm having trying to send a spatial filter produced in OpenLayers to mapserver. What I'm trying to do is so basic, I'm sure that many have done this, yet I've been unsuccessful. I thought this would be easy. With much searching I have found similar questions, but nothing actually answering or showing a working example of this. I'm using mapserver 6.2.1 and the current OpenLayers.js. I can run the wfs.map file using shp2img and get a valid response from mapserver, I can run non-spatial filters using my OpenLayers WFS call to mapserver. The POST request sent to mapserver with the spatial query looks fine, but I simply get the not very helpful premature end of script headers : mapserv in response. The spatial input is a hand-drawn polygon in OpenLayers and the intersection at the mapserver end is a postgis table containing a polygon field. The table is large, but a spatial restriction should always yield a manageable number of records. Without a spatial restriction in the filter, I've noticed that mapserver tried to load all the data, so have currently restricted it to 100 records for testing/debugging. I'm assuming once I get the spatial filter that this will restrict the number of records retrieved on the server side. I have some assumptions, but as I said I've not been able to find a working example of this online, maybe because its too simple and everyone but me has it working? Should what I'm trying to do work or am I just beating my head against the wall? It doesn't seem that this should be so hard... Sally ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] problem with INTERSECTS query from OpenLayers to mapserver
Sally, Le vendredi 13 septembre 2013 11:53:33 Sally Buechel a écrit : [..] I'm using mapserver 6.2.1 and the current OpenLayers.js. I can run the wfs.map file using shp2img and get a valid response from mapserver, I can run non-spatial filters using my OpenLayers WFS call to mapserver. The POST request sent to mapserver with the spatial query looks fine, but I simply get the not very helpful premature end of script headers : mapserv in response. The spatial input is a hand-drawn polygon in OpenLayers and the intersection at the mapserver end is a postgis table containing a polygon field. The table is large, but a spatial restriction should always yield a manageable number of records. Without a spatial restriction in the filter, I've noticed that mapserver tried to load all the data, so have currently restricted it to 100 records for testing/debugging. I'm assuming once I get the spatial filter that this will restrict the number of records retrieved on the server side. I have some assumptions, but as I said I've not been able to find a working example of this online, maybe because its too simple and everyone but me has it working? Should what I'm trying to do work or am I just beating my head against the wall? It doesn't seem that this should be so hard. Before beating your head against the wall, which can hurt you, try to enable debug mode in MapServer and have a look to the log. MapServer can give interesting information about what he is doing before the premature end of script. Hope it helps you. Y. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users