WFS-Server delivers no features
Dirk Jesko
ml.dje at GEOCONTENT.DE
Mon Nov 12 02:19:33 PST 2007
Hello,
I am trying to setup a WFS- and WMS-Server on the same data. See the map
file below.
If I query server via WMS, several points are displayed, but if I query
the same area via WFS (without any filter), the returned GML contains
only a <gml:boundedBy> element, but no features. I already checked the
query sent to the Postgres database. It has a non-empty result.
Therefore, I assume that the problem must be on the mapserver side, but
I have no idea. Is there anything wrong with the mapfile?
The results of the GetCapabilities and DescribeFeaturetype queries are
correct.
Thanks for any help,
Dirk Jesko
We use the following mapserver version:
MapServer version 4.10.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
The mapfile looks like this:
MAP
NAME "GCO"
STATUS ON
IMAGETYPE jpeg
IMAGECOLOR 255 255 255
EXTENT 11.66 52.14 11.68 52.16
SIZE 500 500
SHAPEPATH "."
SYMBOLSET "symbols.sym"
PROJECTION
"init=epsg:4326"
END
WEB
METADATA
"wfs_title" "GCO (WFS)"
"wfs_onlineresource" "http://.../cgi-bin/wfs_gco.exe?"
"wfs_srs" "EPSG:4326"
"wms_title" "GCO (WMS)"
"wms_abstract" "..."
"wms_onlineresource" "http://.../cgi-bin/wfs_gco.exe?"
"wms_srs" "EPSG:4326 EPSG:31466 EPSG:31467 EPSG:31468 EPSG:31469
EPSG:32632 EPSG:32633 EPSG:80000"
"wms_encoding" "UTF-8"
"wms_feature_info_mime_type" "application/vnd.ogc.gml"
END
MAXSCALE 100000
MINSCALE 1
IMAGEPATH "D:/www/htdocs/mstmp/"
IMAGEURL "/mstmp/"
END
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
FORMATOPTION "INTERLACE=ON"
END
OUTPUTFORMAT
NAME png
DRIVER "GD/GIF"
MIMETYPE "image/gif"
IMAGEMODE PC256
EXTENSION ""
FORMATOPTION "INTERLACE=ON"
TRANSPARENT ON
END
LAYER
NAME "gco"
GROUP "gco"
CONNECTIONTYPE postgis
CONNECTION "user=... password=... dbname=... host=... port=..."
DATA "the_geom from geoobj.gco using unique id using
SRID=4326"
STATUS ON
TYPE POINT
DUMP TRUE
PROJECTION
"init=epsg:4326"
END
MAXSCALE 100000
MINSCALE 1
METADATA
"wfs_title" "gco"
"wfs_extent" "11.66 52.14 11.68 52.16"
"gml_featureid" "id"
"gml_include_items" "all"
"gml_exclude_items" "quellen"
"wms_title" "gco"
"wms_group_title" "gco"
END
CLASS
STYLE
SYMBOL "circle"
OUTLINECOLOR -1 -1 -1
COLOR 0 0 255
SIZE 3
END
END
END
END
More information about the MapServer-users
mailing list