[mapserver-users] MapServer 7.0 WFS post request using ogc filter
Jeff McKenna
jmckenna at gatewaygeomatics.com
Wed Aug 17 13:45:01 PDT 2016
Could you try to duplicate your filter request, manually? Here is an
example from the MapServer WFS Filter Encoding howto:
http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&Filter=<Filter><BBOX><PropertyName>Name>NAME</PropertyName><Box
srsName='EPSG:4326'><coordinates>135.2239,34.4879
135.8578,34.8471</coordinates></Box></BBOX></Filter>
Does a manually-created filter request work for you? (it just takes a
little time to write the full request through the url, but it is very
useful for testing)
More working filters can be found in the howto:
http://mapserver.org/ogc/filter_encoding.html
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 2016-08-17 2:31 PM, TMa Teng wrote:
> Yes, I am able to use GET method to get the features when use the WFS.
>
> Get request example:
> http://gisappsdev:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/SanbornImage/SanbornImage_wfs.map&REQUEST=GetFeature&SERVICE=WFS&VERSION=1.0.0&TYPENAME=SanbornGeoref&MAXFEATURES=20&bbox=-72.93411254882812,41.30730211327143,-72.93099045753479,41.30866411858396
>
> It returns features as expected.
>
> The problem is when I try to get features using POST method on the same WFS (see raw in fiddler below):
More information about the MapServer-users
mailing list