[mapserver-users] Accessing WFS- Service: unexpected output (junk?)
Rahkonen Jukka (MML)
jukka.rahkonen at maanmittauslaitos.fi
Wed Apr 3 23:33:14 PDT 2019
Hi,
I could make some progress by using "wfs_request_method" "GET". Now the error was "WFS server error. Unable to get extents for this layer." Then I set "wfs_extent" "-9999999 -9999999 9999999 9999999" but now I get "Search returned no results. No matching record(s) found."
Hope that this helps you to forward.
-Jukka Rahkonen-
Lähettäjä: mapserver-users <mapserver-users-bounces at lists.osgeo.org> Puolesta Feinen, Jörg
Lähetetty: torstai 4. huhtikuuta 2019 8.43
Vastaanottaja: 'mapserver-users at lists.osgeo.org' <mapserver-users at lists.osgeo.org>
Aihe: [mapserver-users] Accessing WFS- Service: unexpected output (junk?)
Hi all,
i´m quite a noob to WFS and now trying to access a wfs-service (see Mapfile). In QGIS it works well, so service seems ok.
As you can see in this mapfile, we tried a lot - but it didnt succeed.
Any help ?
jörg
(i searched the archive for this error - nothing found)
-------------error
<HTML>
<HEAD><TITLE>MapServer Message</TITLE></HEAD>
<!-- MapServer version 7.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
<BODY BGCOLOR="#FFFFFF">
msDrawMap(): Image handling error. Failed to draw layer named 'BIOTOPE'.
msWFSLayerWhichShapes(): WFS connection error. WFS request produced unexpected output (junk?) for layer BIOTOPE.
</BODY></HTML>
-----------mapfile
UNITS Meters
CONFIG 'PROJ_LIB' '/proj/nad/'
SYMBOLSET '/nkat/symbols/symbols.sym'
FONTSET '/nkat/fonts/fonts.txt'
CONFIG 'MS_ERRORFILE' '/websys/ms_error.txt'
CONFIG 'CURL_CA_BUNDLE' '/ca-bundle.crt'
DEBUG OFF
IMAGETYPE png
IMAGECOLOR 255 255 255
WEB
IMAGEPATH "d:/cache/wfs/"
IMAGEURL "d:/cache/wfs/"
TEMPPATH "d:/cache/wfs/"
END
OUTPUTFORMAT
NAME 'png'
DRIVER AGG/PNG
MIMETYPE 'image/png'
IMAGEMODE RGBA
EXTENSION 'png'
FORMATOPTION 'GAMMA=0.75'
TRANSPARENT on
END
LAYER
NAME BIOTOPE
TYPE POLYGON
STATUS default
#CONNECTION "http://geodienste-umwelt.hessen.de/arcgis/services/inspire/bewirtschaftungsgebiete/MapServer/WFSServer?"
CONNECTION "http://geodienste-umwelt.hessen.de/arcgis/services/inspire/lebensraeume_biotope/MapServer/WFSServer?"
CONNECTIONTYPE WFS
METADATA
#"wfs_typename" 'inspire_bewirtschaftungsgebiete:TWS_HQS_TK25'
"wfs_typename" "inspire_lebensraeume_biotope:BIOTOPE"
"wfs_request_method" "POST"
"wfs_service" "WFS"
"wfs_version" "1.0.0"
"wfs_connectiontimeout" "60"
"wfs_maxfeatures" "10"
#"wfs_onlineresource" "http://geodienste-umwelt.hessen.de/arcgis/services/inspire/bewirtschaftungsgebiete/MapServer/WFSServer?"
"wfs_onlineresource" "http://geodienste-umwelt.hessen.de/arcgis/services/inspire/lebensraeume_biotope/MapServer/WFSServer?"
"wfs_enable_request" "*"
"wfs_title" "TARPO Local Priority Projects" ## REQUIRED
"wfs_srs" "EPSG:25832" ##
END
PROJECTION
"init=epsg:25832"
END
CLASS
# NAME "inspire_bewirtschaftungsgebiete:TWS_HQS_TK25"
NAME "BIOTOPE"
STYLE
COLOR 255 128 128
OUTLINECOLOR 96 96 96
END
END
END # Layer
-----------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20190404/687fcfc3/attachment.htm>
More information about the MapServer-users
mailing list