[mapserver-users] WFS with several SRS?
Yewondwossen ASSEFA
yassefa at dmsolutions.ca
Tue Nov 8 05:39:10 PST 2011
Hi,
Multiple SRS is only valid for wfs 1.1 and higher.
The support of it in MapServer was added only for MapServer 6.0 [1].
Hope this helps.
[1] http://trac.osgeo.org/mapserver/ticket/3227
best regards,
Y. Assefa
On 11-11-08 05:37 AM, sulu wrote:
> I would like to offer a WFS-Service which supports several different
> projections.
>
> ("WFS_SRS" "EPSG:31254 EPSG:3785 EPSG:4326 EPSG:31284 EPSG:32632
> EPSG:25832 EPSG:21781")
>
> My mapserver is of version 5.6.6 on a Centos-Box
>
> MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR
> INPUT=GDAL INPUT=SHAPEFILE
>
>
> As expected the default SRS is 31254.
>
> A GetFeature-Call with this EPSG works just fine:
> Example:
> http://vogis.cnv.at/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=nutzungs-grenzen&SRSNAME=epsg:31254
>
> But if i try a other SRS from the WFS_SRS (e.g. 4326) above i receive:
> ...
> msWFSGetFeature(): WFS server error. Invalid GetFeature Request: SRSNAME
> value should be valid for all the TYPENAMES. Please check the capabilities
> and reformulate your request.
> ...
>
> As you can see in the Mapfile below, i avoided specifying any projection in
> the layer section so i have to wonder what i am doing wrong?
>
> Thanks
> Andy
>
> ----------------------------------------------------------------------------------------------------
> MAPFILE
> ----------------------------------------------------------------------------------------------------
>
> MAP
>
> EXTENT -70000 180000 5000 280000 #for EPSG:31254
> FONTSET ./fontset
> IMAGETYPE png
> MAXSIZE 8000
> RESOLUTION 96
> SYMBOLSET ./etc/symbol/symbols.sym
>
>
> # Debugging
> CONFIG "MS_ERRORFILE" "/tmp/mapserver_wfs_error.txt"
> DEBUG 5
>
> WEB
>
> METADATA
> "WFS_TITLE" "DKM Vorarlberg"
> "WFS_SRS" "EPSG:31254 EPSG:3785 EPSG:4326 EPSG:31284
> EPSG:32632 EPSG:25832 EPSG:21781"
> "WFS_ABSTRACT" "Geodaten des Bundeslandes Vorarlberg als OGC-WFS"
>
> "WMS_SRS" "EPSG:4326 EPSG:31254 EPSG:31284 EPSG:32632
> EPSG:25832 EPSG:21781"
> "WMS_TITLE" "DKM Vorarlberg"
> "WMS_ABSTRACT" "Geodaten des Bundeslandes Vorarlberg als OGC-WMS"
> #"WMS_ONLINERESOURCE"
> "http://vogis.cnv.at/mapserver/mapserv?map=wfs.map&version=1.1.0"
> "WMS_FORMATLIST" "image/gif,image/png,image/jpeg,image/tif"
> "WMS_FEATURE_INFO_MIME_TYPE" "text/html"
>
> END
> END
>
> OUTPUTFORMAT
> NAME jpg
> DRIVER "GDAL/JPEG"
> MIMETYPE "image/jpeg"
> IMAGEMODE RGB
> EXTENSION "jpg"
> END
>
> OUTPUTFORMAT
> NAME jpg
> DRIVER "GDAL/JPEG"
> MIMETYPE "image/jpg"
> IMAGEMODE RGB
> EXTENSION "jpg"
> END
>
> OUTPUTFORMAT
> NAME gif
> DRIVER "GD/GIF"
> MIMETYPE "image/gif"
> IMAGEMODE PC256
> EXTENSION "gif"
> END
>
> OUTPUTFORMAT
> NAME png
> # Driver AGG/PNG weil der GDAL-Driver Probleme bei der Transparenz hat
> DRIVER "AGG/PNG"
> MIMETYPE "image/png"
> IMAGEMODE RGBA
> EXTENSION "png"
> TRANSPARENT ON
> FORMATOPTION "INTERLACE=OFF"
> END
>
> OUTPUTFORMAT
> NAME wbmp
> DRIVER "GD/WBMP"
> MIMETYPE "image/wbmp"
> IMAGEMODE PC256
> EXTENSION "wbmp"
> END
>
> OUTPUTFORMAT
> NAME GTiff
> DRIVER "GDAL/GTiff"
> MIMETYPE "image/tiff"
> IMAGEMODE RGB
> EXTENSION "tif"
> END
>
>
> # Start of LAYER DEFINITIONS ---------------------------------------------
>
> # --------------------------------------------------
> # Layer: Nutzungs-Grenzen
> # --------------------------------------------------
> LAYER
> NAME "nutzungs-grenzen"
> #GROUP "nutzungs-grenzen"
> METADATA
> 'OWS_TITLE' 'Nutzungs-Grenzen'
> "WFS_TITLE" "Nutzungs-Grenzen"
>
> "GML_INCLUDE_ITEMS" "all"
> "GML_FEATUREID" "ID"
>
> END
>
> MAXFEATURES 1000
> EXTENT -70000 180000 -1000 280000 #for EPSG:31254
>
> DATA "/data/Geodaten/Grenzen/DKM/Vorarlberg/Nutzung/NFL"
>
> OPACITY 100
>
> TYPE polygon
> MINSCALEDENOM 100
> MAXSCALEDENOM 5001
> STATUS ON
> DUMP TRUE
>
> CLASS
> NAME "Nutzungs-Grenzen"
> STYLE
> WIDTH 0.25
> ANTIALIAS false
> OUTLINECOLOR 0 130 0
> BACKGROUNDCOLOR 0 130 0
> END #end style
> END
> PROCESSING "CLOSE_CONNECTION=DEFER"
> END #end layer
>
>
> END #end map
>
>
>
>
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-with-several-SRS-tp6973831p6973831.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list