Hi there,
BugID 1768 seems to say that Mapserver and WFS should work okay now.
Well I'm trying to access WFS from Mapinfo and it doesn't work. Cadcorp is fine
as long as you don't validate the capabilities when getting the data.
I'm using MS4W that I downloaded on 30th May - the most recent version
mapserv - v says it is version 4.8.3, but I thought the latest MS4W was 4.8.4
or 4.9 ??
Cadcorp uses a GET, Mapinfo seems to use a POST and gives the following error
message
"The WFS Server returned data which was neither in the requested format nor a
recognised WFS service exception:POST body is short
In response to a DescribeFeatureType Request the WFS server returned an invalid
feature type"
I'll enclose as much info as I can
First the URL used - it's inside a firewall so you cannot use it
http://pptraven9062751/cgi-bin/mapserv.exe?
MAP=/ms4w/apps/mapFiles/wfs/OracleWardsBline.map&SERVICE=WFS&VERSION=1.0.0&REQUE
ST=getfeature&outputformat=gml2&TYPENAME=Wards,Boundaryline
Next an extract of the xml the request produces - just a part !
<?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://pptraven9062751/OGCSchemas/wfs/1.0.0/WFS-basic.xsd
http://mapserver.gis.umn.edu/mapserver http://pptraven9062751/cgi-
bin/mapserv.exe?
MAP=/ms4w/apps/mapfiles/wfs/oraclewardsbline.map&SERVICE=WFS&VERSION=1.0.0&REQUE
ST=DescribeFeatureType&TYPENAME=Wards&OUTPUTFORMAT=XMLSCHEMA">
- <gml:boundedBy>
- <gml:Box srsName="EPSG:27700">
<gml:coordinates>314267.500000,730400.000000
374138.000000,788757.500000</gml:coordinates>
</gml:Box>
</gml:boundedBy>
- <gml:featureMember>
- <ms:Wards>
- <gml:boundedBy>
- <gml:Box srsName="EPSG:27700">
<gml:coordinates>342132.220000,750079.800000
351165.730000,758279.200000</gml:coordinates>
</gml:Box>
</gml:boundedBy>
- <ms:msGeometry>
- <gml:Polygon srsName="EPSG:27700">
- <gml:outerBoundaryIs>
- <gml:LinearRing>
<gml:coordinates>343825.914560,755970.083930 343888.400000,755995.060000
344032.410000,756050.900000 344218.880000,756123.370000
344243.800000,756133.070000 344255.350000,756134.450000
344266.420000,756130.760000 344280.730000,756117.830000
344391.510000,755999.670000 344406.280000,755977.970000
344417.820000,755956.280000 344427.050000,755934.130000
344436.290000,755905.510000 344440.430000,755891.210000
344444.130000,755876.430000 344450.130000,755866.270000
344459.830000,755859.820000 344473.210000,755851.970000
344493.980000,755844.120000 344523.520000,755835.810000
344549.370000,755826.130000 344579.830000,755810.890000
344600.140000,755801.660000 344613.980000,755793.350000
344623.680000,755785.040000 344636.140000,755796.580000
344655.990000,755821.050000 344671.220000,755839.040000
344686.910000,755853.820000 344708.140000,755870.430000
344769.530000,755913.820000 344875.700000,755995.520000
344903.390000,756014.900000 344949.090000,756040.750000
345093.210000,756132.150000
** and lastly the map file used
## WFS Wards
#
#
NAME "testwfsoracle"
STATUS ON
SIZE 800 800
SYMBOLSET ../etc/symbols.sym
EXTENT 250800 376700 600900 791400
UNITS METERS
SHAPEPATH "../data"
IMAGECOLOR 255 255 255
#IMAGETYPE jpeg
FONTSET ../etc/fonts.txt
CONFIG PROJ_LIB "c:\ms4w\proj\nad\"
#
# Start of web interface definition
#
WEB
#
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
# of the drive where the .MAP file resides.
#
IMAGEPATH "C:/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms4w/ms_tmp/"
METADATA
"wfs_title" "TEST ORACLE WFS"
"ows_schemas_location" "http://pptraven9062751/OGCSchemas"
"wfs_onlineresource" "http://pptraven9062751/cgi-bin/mapserv.exe?
MAP=/ms4w/apps/mapfiles/wfs/oraclewardsbline.map&"
"wfs_srs" "EPSG:27700 EPSG:27700 EPSG:27700 EPSG:27700" # not needed if
init=espg used
"wfs_abstract" "Developed by R watters & H thomson"
END
END
PROJECTION
"init=EPSG:27700" ##required
END
#QUERYMAP
# STYLE HILITE
# COLOR 255 0 0
#END
#
# Start of layer definitions
#
LAYER
NAME "Boundaryline"
STATUS DEFAULT
TYPE LINE
#CONNECTIONTYPE WFS
#CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?
CONNECTIONTYPE oraclespatial
CONNECTION "wfs/*******@GISPAI"
#DATA "wards"
#DATA "GEOMETRY from OSMM.BOUNDARYLINE (SELECT
DESCRIPTIVEGROUP,DESCRIPTIVETERM,FEATURECODE,PHYSICALPRESENCE,THEME FROM
OSMM.BOUNDARYLINE) USING UNIQUE MI_PRINX SRID 81989 VERSION 10g"
DATA "GEOMETRY from (SELECT
DESCRIPTIVEGROUP,DESCRIPTIVETERM,FEATURECODE,PHYSICALPRESENCE,THEME,MI_PRINX,GEO
METRY FROM OSMM.BOUNDARYLINE) USING UNIQUE MI_PRINX SRID 81989 VERSION 10g"
DUMP TRUE
METADATA
"wfs_title" "Boundaryline"
"wms_extent" "250800 376700 600900 791400"
"wfs_version" "1.0.0"
"wfs_srs" "EPSG:27700"
"wfs_typename" "boundary"
#"wfs_request_method" "GET"
#"wfs_service" "WFS"
"gml_include_items" "all"
END
#CLASS
# NAME "boundary"
# STYLE
# COLOR 0 0 0
# END
#END
END # layer
LAYER
NAME "Wards"
STATUS DEFAULT
TYPE POLYGON
#CONNECTIONTYPE WFS
#CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?
#CONNECTIONTYPE oraclespatial
#CONNECTION "wfs/*******@GISPAI"
DATA "wards"
DUMP TRUE
METADATA
"wfs_title" "Wards"
"wfs_version" "1.0.0"
"wfs_srs" "EPSG:27700"
"wfs_extent" "250800 600900 376700 791400"
"wfs_typename" "boundary"
"wfs_request_method" "POST"
#"wfs_service" "WFS"
"gml_include_items" "all"
END
#CLASS
# NAME "wards"
# STYLE
# COLOR 0 0 0
# END
#END
END # layer
END # MAP
Reporter: ThomsonHAC@angus.gov.uk Date: 2006/06/05 - 15:54