[mapserver-users] WFS error request

Robin Rullo robin.rullo at uha.fr
Thu Jan 21 02:59:00 PST 2021


Hello, we are a french group of students working on a web cartography project based on Geomoose 3.6.1. 
We are trying to formulate a query to retrieve WFS data using mapserver 7.7.0-dev (from ms4w) 
The following query should return results but returns: 



<gml:boundedBy> 
<gml:null>missing</gml:null> 
</gml:boundedBy> 



And in error_log.txt, we have the first error: 

BQ_BEGIN

msProjectRect(): Projection library error. All points failed to reproject.\r: C:/ms4w/Apache/cgi-bin/mapserv.exe 

BQ_END

Which generate bad converted datas: 

BQ_BEGIN

msProjectRect(): Warning: degenerate rect {0.000000,0.000000,0.000000,0.000000}\r: C:/ms4w/Apache/cgi-bin/mapserv.exe 

BQ_END

This is the query: 
METHOD: POST 
URL: http://localhost:4000/mapserver?MAP=C:/ms4w/apps/gm3/htdocs/desktop/MAPFILE_/N_COMMUNE_BDC_068.map&typename=ms:N_COMMUNE_BDC_068 
BODY: 
<GetFeature xmlns=" [ http://www.opengis.net/wfs | http://www.opengis.net/wfs ] " service="WFS" version="1.1.0" outputFormat="text/xml; subtype=gml/2.1.2" xsi:schemaLocation=" [ http://www.opengis.net/wfs | http://www.opengis.net/wfs ] [ http://schemas.opengis.net/wfs/1.1.0/wfs.xsd | http://schemas.opengis.net/wfs/1.1.0/wfs.xsd ] " xmlns:xsi=" [ http://www.w3.org/2001/XMLSchema-instance | http://www.w3.org/2001/XMLSchema-instance ] "> 
<Query typeName="ms:N_COMMUNE_BDC_068" srsName="EPSG:4326"> 
<Filter xmlns=" [ http://www.opengis.net/ogc | http://www.opengis.net/ogc ] "> 
<Intersects> 
<PropertyName>geom</PropertyName> 
<Polygon xmlns=" [ http://www.opengis.net/gml | http://www.opengis.net/gml ] "> 
<exterior> 
<LinearRing> 
<posList srsDimension="2">7.056981128517495 47.90393604783284 7.499180835548746 47.90393604783284 7.499180835548746 48.15190704833762 7.056981128517495 48.15190704833762 7.056981128517495 47.90393604783284</posList> 
</LinearRing> 
</exterior> 
</Polygon> 
</Intersects> 
</Filter> 
</Query> 
</GetFeature> 

We have tryed BBOX insthead of Intersects and the request worked well and sent us the expected results. 
URL: http://localhost:4000/mapserver?MAP=C:/ms4w/apps/gm3/htdocs/desktop/MAPFILE_/N_COMMUNE_BDC_068.map&typename=ms:N_COMMUNE_BDC_068 
BODY : 
<GetFeature xmlns=" [ http://www.opengis.net/wfs | http://www.opengis.net/wfs ] " service="WFS" version="1.1.0" outputFormat="text/xml; subtype=gml/2.1.2" xsi:schemaLocation=" [ http://www.opengis.net/wfs | http://www.opengis.net/wfs ] [ http://schemas.opengis.net/wfs/1.1.0/wfs.xsd | http://schemas.opengis.net/wfs/1.1.0/wfs.xsd ] " xmlns:xsi=" [ http://www.w3.org/2001/XMLSchema-instance | http://www.w3.org/2001/XMLSchema-instance ] "> 
<Query typeName="ms:N_COMMUNE_BDC_068" srsName="EPSG:4326"> 
<Filter> 
<BBOX> 
<Box srsName="EPSG:4326"> 
<coordinates>47.420223,6.841024 48.311212,7.622170</coordinates> 
</Box> 
</BBOX> 
</Filter> 
</Query> 
</GetFeature> 

Here is our Mapfile 
MAP 
SHAPEPATH "C:\geobase" 

WEB 
METADATA 
'ows_title' 'N_COMMUNE_BDC_068' 
'ows_enable_request' '*' 
'ows_srs' 'EPSG:26915 EPSG:4326 EPSG:3857 EPSG:900913' 
'wfs_srs' 'EPSG:26915 EPSG:4326 EPSG:3857 EPSG:900913' 
'wms_feature_info_mime_type' 'application/json' 
END 
END 

LAYER 
NAME 'N_COMMUNE_BDC_068' 

STATUS ON 

PROJECTION 
'init=epsg:2154' 
END 

METADATA 
'ows_title' 'N_COMMUNE_BDC_068' 
'ows_include_items' 'all' 
'gml_include_items' 'all' 
END 

TYPE LINE 

DATA 'REF_EXT\BDCARTO\ADMINISTRATIF\N_COMMUNE_BDC_068.shp' 

CLASS 
NAME 'communes du Haut-Rhin BDC' 
STYLE 
WIDTH 1 
COLOR '#1f4961' 
END 
END 

TEMPLATE 'dummy' 
END 
END 

Can you help us understand why we have an error in our first request ? 
Thank you! Team Carine of UHA 4.0 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210121/68ef5bc7/attachment-0001.html>


More information about the mapserver-users mailing list