[mapserver-users] Error with Filter = no results

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Thu Feb 2 05:47:11 PST 2017


Hi,

Fine that you could made it to work but I still think that Mapserver does not behave well. GetFeature without filter works for me also even if I do not have EXTENT at MAP level or in LAYER.

However, adding filter with BBOX gives me similar warnings:
[Thu Feb 02 15:21:52 2017].585000 msProjectRect(): Warning: degenerate rect {-1.000000,-1.000000,-1.000000,-1.000000}

The importance of EXTENT is not documented in relevant documents
http://mapserver.org/ogc/wfs_server.html
http://www.mapserver.org/mapfile/map.html

What is odd is that Mapserver finds no features if EXTENT is not set and BBOX is given inside FILTER.
http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w_data\apps\states_pg.map&service=wfs&version=2.0.0&request=getfeature&typenames=ms:states_pg&&filter=%3CFilter%3E%3CBBOX%3E%3CPropertyName%3Ems:msGeometry%3C/PropertyName%3E%3CBox%3E%20%20%20%3Ccoordinates%3E-80,30%20-60,40%3C/coordinates%3E%3C/Box%3E%3C/BBOX%3E%3C/Filter%3E

BTW. I do know that the query above is not valid WFS 2.0.0 query because it is using a deprecated “Box” but it does work with Mapserver when MAP-EXTENT is set.

However, Mapserver does find features with the if I use BBOX as KVP even without MAP-EXTENT

http://localhost:8060/cgi-bin/mapserv.exe?map=c:\ms4w_data\apps\states_pg.map&service=wfs&version=2.0.0&request=getfeature&typenames=ms:states_pg&BBOX=-80,30,-70,40

Should this be called as weird behavior or a bug, I am not sure.

-Jukka Rahkonen-




Daniel Hardes wrote:
Re: [mapserver-users] Error with Filter = no results


Thank you. EXTENT was the missing setting

Am 02.02.2017 um 13:45 schrieb Seth G:

Hi Daniel,

Does setting the EXTENT for your map or layer make any difference?
Also try adding the projections you want to use to the MAP METADATA section.

            "wfs_srs" "EPSG:32632 EPSG:4326"

Regards,

Seth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170202/dda6f710/attachment.html>


More information about the mapserver-users mailing list