[mapserver-users] wfs getfeature returns invalid xml when using gml_constants

Peter Freimuth freimuth69 at gmail.com
Fri Apr 19 17:24:08 PDT 2013


Hi Mapserver users,
maybe somebody can help me to get my WFS working:

<!-- MapServer version 6.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS 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 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->

ubuntu 12.04 LTS

This is the Layer definition from the map file:

LAYER
     ...
       METADATA
           "wfs_title" "Image Catalog"
           "ows_extent"  "211500 2231500 261500 2281500"
           "wfs_srs" "EPSG:4326 EPSG:3857 EPSG:32615 EPSG:32616 EPSG:32617"
           "wfs_featureid" "id" ## REQUIRED since 4.10
           "gml_include_items" "all"
           "gml_exclude_items" ""
           "wfs_enable_request"  "*"
           "wfs_getfeature_formatlist"  "GEOJSON,SHAPEZIP,CSV"
           "gml_constants" "dataaccessbaseurl,datapreviewbaseurl"
           "gml_dataaccessbaseurl_type" "Character"
           "gml_dataaccessbaseurl_value" "http://10.10.4.41/cgi-bin/test.cgi?SERVICE=WCS&REQUEST=GetCoverage&IDENTIFIER=testdata_raw&VERSION=1.1.0"
           "gml_datapreviewbaseurl_type" "Character"
           "gml_datapreviewbaseurl_value" "http://10.10.4.41/cgi-bin/test.cgi?SERVICE=WMS&REQUEST=GetMap&LAYERS=testdata_view&VERSION=1.3.0"
           "gml_types" "auto"
           "wfs_geomtype"  "Polygon"
       END
      …
END

When i execute a GetFeature request Firefox shows the following error:

http://10.10.4.41/cgi-bin/PlenumWCS.cgi?SERVICE=WFS&VERSION=1.1.0&REQUEST=getfeature&TYPENAME=catalog&MAXFEATURES=100

XML Parsing Error: not well-formed
Location: http://10.10.4.41/cgi-bin/test.cgi?SERVICE=WFS&VERSION=1.1.0&REQUEST=getfeature&TYPENAME=catalog&MAXFEATURES=100
Line Number 35, Column 102: <ms:dataaccessbaseurl>http://10.10.4.41/cgi-bin/test.cgi?SERVICE=WCS&REQUEST=GetCoverage&IDENTIFIER=testdata_raw&VERSION=1.1.0</ms:dataaccessbaseurl>


The XML doc seems to be ok when i check the page source.

Any idea how this can be resolved. I would expect that the character field can handle also a url string.

Thanks for any hint to resolve the issue.
Kind regards,
Peter

-- 
Peter Freimuth 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130419/19864b63/attachment.htm>


More information about the MapServer-users mailing list