[mapserver-users] error finding objects with wfs mapserver 6.4.1
Malm Paul
paul.malm at saabgroup.com
Thu Oct 2 05:23:50 PDT 2014
Hi,
I'm using mapserver 6.4.1 on a 64 bits Linux.
I have problems finding WFS objects when the BBOX is narrow (although the object is completely within the BBOX). I only get an error code, see below.
It is not a big difference if we compare Query 2 with Query 1. It is only the bounding box (but the symbol to search for is within both boxes )
Can anyone, please tell me what I'm doing wrong?
I'm trying to send the request trough Firefox.
Kind regards,
Paul
__________________________________________________________________________________________________________________
QUERY 1:
http://localhost/mapserver/mapserv?map=/tmp/rbase/map/rbase.map&version=1.0.0&service=WFS&request=GetFeature&TypeName=Lm_2&BBOX=0,0,90,90&MaxFeatures=1
results in:
<?xml version="1.0" encoding="ISO-8859-1"?>
<wfs:FeatureCollection xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd http://mapserver.gis.umn.edu/mapserver http://localhost/mapserver/mapserv?map=/tmp/rbase/map/rbase.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Lm_2&OUTPUTFORMAT=XMLSCHEMA">
<gml:boundedBy>
<gml:Box srsName="EPSG:4326">
<gml:coordinates>24.925816,59.452003 24.925816,59.452003</gml:coordinates>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<ms:Lm_2>
<gml:boundedBy>
<gml:Box srsName="EPSG:4326">
<gml:coordinates>24.925816,59.452003 24.925816,59.452003</gml:coordinates>
</gml:Box>
</gml:boundedBy>
<ms:msGeometry>
<gml:Point srsName="EPSG:4326">
<gml:coordinates>24.925816,59.452003</gml:coordinates>
</gml:Point>
</ms:msGeometry>
<ms:RCID>847</ms:RCID>
<ms:FIDN>-105865197</ms:FIDN>
</ms:Lm_2>
</gml:featureMember>
</wfs:FeatureCollection>
_________________________________________________________________________________________________________________________
QUERY 2: (only changed the BBOX to a more narrow box)
http://localhost/mapserver/mapserv?map=/tmp/rbase/map/rbase.map&version=1.0.0&service=WFS&request=GetFeature&TypeName=Lm_2&BBOX=24.0,59.45,24.93,59.48&MaxFeatures=1
results in:
XML Parsing Error: no element found
Location: http://localhost/mapserver/mapserv?map=/tmp/rbase/map/rbase.map&version=1.0.0&service=WFS&request=GetFeature&TypeName=Lm_2&BBOX=24.0,59.45,24.93,59.48&MaxFeatures=1
Line Number 1, Column 1:
^
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
MAP FILE, I have tried to combine WMS/WFS map file:
MAP
NAME 'test'
CONFIG "PROJ_LIB" "/usr/share/proj"
EXTENT -180 -90 180 90
SIZE 512 512
RESOLUTION 96
DEFRESOLUTION 96
FONTSET './fontset.lst'
SYMBOLSET "./symbols.sym"
PROJECTION
'init=epsg:4326'
END
OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGB
END
WEB
IMAGEPATH '/tmp/'
IMAGEURL '/tmp/'
METADATA
' wms_enable_request' ' *'
'wms_title' 'S57 Charts'
'wms_srs' 'epsg:4326'
'wfs_title' 'S57 Charts'
'wfs_srs' 'epsg:4326'
' wfs_enable_request' ' *'
END
END
LAYER
NAME "Lm_2"
GROUP "Landmarks_Infrastructure"
METADATA
"wms_title" "Lm_2"
"wfs_title" "Lm_2"
"wms_enable_request" "*"
"wfs_enable_request" "*"
"gml_include_items" "all"
END
TYPE POINT
STATUS OFF
TILEINDEX "/tmp/rbase/index/2_LNDMRK_POINT"
TILEITEM "LOCATION"
PROCESSING "CLOSE_CONNECTION=DEFER"
CLASS
EXPRESSION (([CATLMK] == 17) OR ([CATLMK] == 7)) # tower or mast
STYLE
SYMBOL "lndmrk"
COLOR 0 0 0
SIZE 15
END
END
END
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20141002/de2e9646/attachment.htm>
More information about the MapServer-users
mailing list