[mapserver-users] WFS error
S D Barnes
sbarnes at tjcog.org
Wed Oct 28 08:29:05 PDT 2009
Hi. I'm a rote beginner at MapServer, but I've run into a problem that I
can't find a reference for online. I'm attempting to set up a WFS, but I
keep on getting this error spit back at me when doing a getfeature:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<http://www.tarpogis.org/bin/mapserv?map=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2
Fdocs_maps%2Ftarpo%2Fwfs2.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&T
YPENAME=local_priority_projects> - <ServiceExceptionReport version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
<ServiceException code="NoApplicableCode"
locator="mapserv">msWFSGetFeature(): WFS server error. ms_error->code not
found msWFSLayerWhichShapes(): WFS connection error. WFS request produced
unexpected output (junk?) for layer
local_priority_projects.</ServiceException>
</ServiceExceptionReport>
A getcapabilities request comes back fine, but not a getfeature request.
>From what I've read it looks as though the getfeature query is returning a
null set. I'm not sure what is wrong, but my bet is that it's some sort of
beginner's mistake. Any help would be most appreciated. Here's the
mapfile:
NAME "TARPO_WFS"
STATUS ON
SIZE 400 300
SYMBOLSET "/usr/local/apache2/htdocs/docs_maps/etc/symbols.txt"
EXTENT -79.765391 34.800377 -78.831664 36.167575
UNITS FEET
SHAPEPATH "/arcgis/data/rpo/"
IMAGECOLOR 255 255 255
FONTSET "/usr/local/apache2/htdocs/docs_maps/etc/fonts.txt"
WEB
IMAGEPATH "/usr/local/apache2/htdocs/docs_maps/tmp/"
IMAGEURL "/docs_maps/tmp/"
METADATA
"wfs_title" "TARPO Local Priority Projects" ## REQUIRED
"wfs_onlineresource" "http://www.tarpogis.org/bin/mapserv.exe?" ##
Recommended
"wfs_srs" "EPSG:4326" ## Recommended
END
END
PROJECTION
"init=epsg:4326"
END
LAYER
NAME "local_priority_projects"
METADATA
"wfs_version" "1.0.0"
"wfs_title" "TARPO Local Priority Projects" ## REQUIRED
"wfs_srs" "EPSG: 4326"
"wfs_typename" "local_priority_projects"
"wfs_request_method" "GET"
"wfs_service" "WFS"
"wfs_extent" "-79.765391 34.800377 -78.831664 36.167575"
"gml_featureid" "FID" ## REQUIRED
"gml_include_items" "all" ## Optional (serves all attributes for layer)
END
TYPE LINE
STATUS DEFAULT
CONNECTIONTYPE WFS
CONNECTION
"http://www.tarpogis.org/bin/mapserv?map=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2
Fdocs_maps%2Ftarpo%2Fwfs.map&"
STATUS DEFAULT
DATA local_priority_projects
PROJECTION
"init=epsg:4326"
END
DUMP TRUE ## REQUIRED
CLASS
NAME "OBJECTID"
STYLE
COLOR 32 32 32
END
END
END # Layer
END # Map File
**********************************************************
September D Barnes
Data & Design Services Manager
Triangle J Council of Governments
P O Box 12276
Research Triangle Park, NC 27709
Direct Line: 919.558.9405
Fax: 919.549.9390
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091028/8c275562/attachment.htm>
More information about the MapServer-users
mailing list