<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.b1
{mso-style-name:b1;
font-family:"Courier New";
color:red;
font-weight:bold;
text-decoration:none none;}
span.m1
{mso-style-name:m1;
color:blue;}
span.pi1
{mso-style-name:pi1;
color:blue;}
span.t1
{mso-style-name:t1;
color:#990000;}
span.ns1
{mso-style-name:ns1;
color:red;}
span.tx1
{mso-style-name:tx1;
font-weight:bold;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>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:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='text-indent:-12.0pt'><span class=b1><span
style='font-size:10.0pt'> </span></span><span class=m1><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><?</span></span><span
class=pi1><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>xml
version="1.0" encoding="ISO-8859-1" </span></span><span
class=m1><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>?></span></span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> <o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:-24.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'><a
href="http://www.tarpogis.org/bin/mapserv?map=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2Fdocs_maps%2Ftarpo%2Fwfs2.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=local_priority_projects"><b><span
style='font-family:"Courier New";color:red'>-</span></b></a> <span class=m1><</span><span
class=t1>ServiceExceptionReport version</span><span class=m1>="</span><b>1.2.0</b><span
class=m1>"</span><span class=ns1> xmlns</span><span class=m1>="</span><b><span
style='color:red'>http://www.opengis.net/ogc</span></b><span class=m1>"</span><span
class=ns1> xmlns:xsi</span><span class=m1>="</span><b><span
style='color:red'>http://www.w3.org/2001/XMLSchema-instance</span></b><span
class=m1>"</span><span class=t1> xsi:schemaLocation</span><span class=m1>="</span><b>http://www.opengis.net/ogc
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd</b><span class=m1>"></span><o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:-24.0pt'><span class=b1><span
style='font-size:10.0pt'> </span></span><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'> <span class=m1><</span><span class=t1>ServiceException
code</span><span class=m1>="</span><b>NoApplicableCode</b><span class=m1>"</span><span
class=t1> locator</span><span class=m1>="</span><b>mapserv</b><span
class=m1>"></span><span class=tx1>msWFSGetFeature(): WFS server error.
ms_error->code not found msWFSLayerWhichShapes(): WFS connection error. WFS
request produced unexpected output (junk?) for layer local_priority_projects.</span><span
class=m1></</span><span class=t1>ServiceException</span><span class=m1>></span>
<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:-12.0pt'><span class=b1><span
style='font-size:10.0pt'> </span></span><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'> <span class=m1></</span><span class=t1>ServiceExceptionReport</span><span
class=m1>></span><o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:-12.0pt'><o:p> </o:p></p>
<p class=MsoNormal>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:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>NAME "TARPO_WFS"<o:p></o:p></p>
<p class=MsoNormal>STATUS ON<o:p></o:p></p>
<p class=MsoNormal>SIZE 400 300<o:p></o:p></p>
<p class=MsoNormal>SYMBOLSET
"/usr/local/apache2/htdocs/docs_maps/etc/symbols.txt"<o:p></o:p></p>
<p class=MsoNormal>EXTENT -79.765391 34.800377 -78.831664 36.167575<o:p></o:p></p>
<p class=MsoNormal>UNITS FEET<o:p></o:p></p>
<p class=MsoNormal>SHAPEPATH "/arcgis/data/rpo/"<o:p></o:p></p>
<p class=MsoNormal>IMAGECOLOR 255 255 255<o:p></o:p></p>
<p class=MsoNormal>FONTSET "/usr/local/apache2/htdocs/docs_maps/etc/fonts.txt"<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>WEB<o:p></o:p></p>
<p class=MsoNormal> IMAGEPATH
"/usr/local/apache2/htdocs/docs_maps/tmp/"<o:p></o:p></p>
<p class=MsoNormal> IMAGEURL "/docs_maps/tmp/"<o:p></o:p></p>
<p class=MsoNormal> METADATA<o:p></o:p></p>
<p class=MsoNormal>
"wfs_title"
"TARPO Local Priority Projects" ## REQUIRED<o:p></o:p></p>
<p class=MsoNormal>
"wfs_onlineresource"
"http://www.tarpogis.org/bin/mapserv.exe?" ## Recommended<o:p></o:p></p>
<p class=MsoNormal>
"wfs_srs"
"EPSG:4326" ## Recommended<o:p></o:p></p>
<p class=MsoNormal> END<o:p></o:p></p>
<p class=MsoNormal>END<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>PROJECTION<o:p></o:p></p>
<p class=MsoNormal> "init=epsg:4326"<o:p></o:p></p>
<p class=MsoNormal>END<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>LAYER<o:p></o:p></p>
<p class=MsoNormal> NAME "local_priority_projects"<o:p></o:p></p>
<p class=MsoNormal> METADATA<o:p></o:p></p>
<p class=MsoNormal> "wfs_version" "1.0.0"<o:p></o:p></p>
<p class=MsoNormal> "wfs_title"
"TARPO Local Priority Projects" ## REQUIRED<o:p></o:p></p>
<p class=MsoNormal> "wfs_srs" "EPSG:
4326"<o:p></o:p></p>
<p class=MsoNormal> "wfs_typename"
"local_priority_projects"<o:p></o:p></p>
<p class=MsoNormal> "wfs_request_method"
"GET"<o:p></o:p></p>
<p class=MsoNormal> "wfs_service" "WFS"<o:p></o:p></p>
<p class=MsoNormal> "wfs_extent" "-79.765391
34.800377 -78.831664 36.167575"<o:p></o:p></p>
<p class=MsoNormal> "gml_featureid" "FID"
## REQUIRED<o:p></o:p></p>
<p class=MsoNormal> "gml_include_items"
"all" ## Optional (serves all attributes for layer)<o:p></o:p></p>
<p class=MsoNormal> END<o:p></o:p></p>
<p class=MsoNormal> TYPE LINE<o:p></o:p></p>
<p class=MsoNormal> STATUS DEFAULT<o:p></o:p></p>
<p class=MsoNormal> CONNECTIONTYPE WFS<o:p></o:p></p>
<p class=MsoNormal> CONNECTION "http://www.tarpogis.org/bin/mapserv?map=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2Fdocs_maps%2Ftarpo%2Fwfs.map&"<o:p></o:p></p>
<p class=MsoNormal> STATUS DEFAULT<o:p></o:p></p>
<p class=MsoNormal> DATA local_priority_projects<o:p></o:p></p>
<p class=MsoNormal> PROJECTION<o:p></o:p></p>
<p class=MsoNormal> "init=epsg:4326"<o:p></o:p></p>
<p class=MsoNormal> END<o:p></o:p></p>
<p class=MsoNormal> DUMP
TRUE ## REQUIRED<o:p></o:p></p>
<p class=MsoNormal> CLASS<o:p></o:p></p>
<p class=MsoNormal> NAME "OBJECTID"<o:p></o:p></p>
<p class=MsoNormal> STYLE<o:p></o:p></p>
<p class=MsoNormal> COLOR 32 32 32<o:p></o:p></p>
<p class=MsoNormal> END<o:p></o:p></p>
<p class=MsoNormal> END<o:p></o:p></p>
<p class=MsoNormal>END # Layer<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>END # Map File<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>**********************************************************</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>September
D Barnes</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Data
& Design Services Manager</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Triangle
J Council of Governments</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>P
O Box 12276</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Research
Triangle Park, NC 27709</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Direct
Line: 919.558.9405</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Fax:
919.549.9390</span><o:p></o:p></p>
</div>
</body>
</html>