<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
 <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Here is some more information on my problem:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">When I do a "GetCapabilities" (below), I get what looks like a good response except that feature type list is empty:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">&lt;FeatureTypeList&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">  &lt;Operations&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">    &lt;Query/&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">  &lt;/Operations&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">&lt;/FeatureTypeList&gt;</font></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">request:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;<a href="http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira.map&amp;VERSION=1.0.0&amp;SERVICE=wfs&amp;REQUEST=GetCapabilities">http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira.map&amp;VERSION=1.0.0&amp;SERVICE=wfs&amp;REQUEST=GetCapabilities</a>&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">When I to a "GetFeature" (below), I get this response:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">&lt;ServiceExceptionReport</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">xmlns="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:schemaLocation="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a> <a href="http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd">http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd</a>"&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">  &lt;ServiceException&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -6 downloading WFS layer ira</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 6 (Couldn&amp;#39;t resolve host &amp;#39;thewildwoodstudios&amp;#39;) for <a href="http://thewildwoodstudios/cgi-bin/mapserv?map=../roadlessland/maps/ira_q.map&amp;amp">http://thewildwoodstudios/cgi-bin/mapserv?map=../roadlessland/maps/ira_q.map&amp;amp</a>;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">  &lt;/ServiceException&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">&lt;/ServiceExceptionReport&gt;</font></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">request:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;<a href="http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira_q.map&amp;VERSION=1.0.0&amp;SERVICE=WFS&amp;REQUEST=GetFeature&amp;TYPENAME=ira">http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira_q.map&amp;VERSION=1.0.0&amp;SERVICE=WFS&amp;REQUEST=GetFeature&amp;TYPENAME=ira</a>&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I do have this mapserver set up and working for WMS (you can see an example here: &lt;<a href="http://roadlessland.org/map.php?state=MT">http://roadlessland.org/map.php?state=MT</a>&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Many thanks for any help that people can give me.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">nelson</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi all,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I am trying to set up mapserver as a WFS server.  I am getting the correct response from Get Capabilities, but when I try a sample call I keep getting a null result.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">All I want to be able to do is find the id (feature name "ID") of a polygon that contains a given point.  I'll put all the relevant info below.  I can't figure out what is wrong. Can anybody help out?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">thanks much in advance,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">nelson</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Here is the WFS call that I've been trying:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;<a href="http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira_q.map&amp;VERSION=1.0.0&amp;SERVICE=WFS&amp;REQUEST=GetFeature&amp;TYPENAME=ira&amp;Filter=%3CFilter%3E%3CContains%3E%3CPropertyName%3EGeometry%3C/PropertyName%3E%3Cgml:Point%3E%3Cgml:coordinates%3E-112.99163818359375,45.547716775429045%3C/gml:coordinates%3E%3C/gml:Point%3E%3C/Contains%3E%3C/Filter%3E">http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira_q.map&amp;VERSION=1.0.0&amp;SERVICE=WFS&amp;REQUEST=GetFeature&amp;TYPENAME=ira&amp;Filter=%3CFilter%3E%3CContains%3E%3CPropertyName%3EGeometry%3C/PropertyName%3E%3Cgml:Point%3E%3Cgml:coordinates%3E-112.99163818359375,45.547716775429045%3C/gml:coordinates%3E%3C/gml:Point%3E%3C/Contains%3E%3C/Filter%3E</a>&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This is the filter:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;Filter&gt;&lt;Contains&gt;&lt;PropertyName&gt;Geometry&lt;PropertyName&gt;&lt;gml:Point&gt;&lt;gml:coordinates&gt;-112.96142578125,45.521743896993634&lt;/gml:coordinates&gt;&lt;/gml:Point&gt;&lt;/Contains&gt;&lt;/Filter&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This is the result I get:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">&lt;?xml version='1.0' encoding="ISO-8859-1" ?&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">&lt;wfs:FeatureCollection</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">   xmlns:ms="<a href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a>"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">   xmlns:wfs="<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">   xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">   xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">   xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">   xsi:schemaLocation="<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a> <a href="http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd</a> </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">                       <a href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a> <a href="http://thewildwoodstudios/cgi-bin/mapserv?map=../roadlessland/maps/ira_q.map&amp;amp;SERVICE=WFS&amp;amp;VERSION=1.0.0&amp;amp;REQUEST=DescribeFeatureType&amp;amp;TYPENAME=ira&amp;amp;OUTPUTFORMAT=XMLSCHEMA">http://thewildwoodstudios/cgi-bin/mapserv?map=../roadlessland/maps/ira_q.map&amp;amp;SERVICE=WFS&amp;amp;VERSION=1.0.0&amp;amp;REQUEST=DescribeFeatureType&amp;amp;TYPENAME=ira&amp;amp;OUTPUTFORMAT=XMLSCHEMA</a>"&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">   &lt;gml:boundedBy&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">      &lt;gml:null&gt;missing&lt;/gml:null&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">   &lt;/gml:boundedBy&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Monaco" size="2" style="font: 10.0px Monaco">&lt;/wfs:FeatureCollection&gt;</font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br class="webkit-block-placeholder"></span></font></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Here is the mapfile that I set up:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">#################</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div>MAP</div><div><br class="webkit-block-placeholder"></div><div>NAME "roadless"</div><div>STATUS ON</div><div>SIZE 800 600</div><div>STATUS ON</div><div>EXTENT -124.40950012207 18.2457218170166 -65.7071533203125 49.0011405944824</div><div>SHAPEPATH "../shapefiles"</div><div>FONTSET ../fonts/fonts.txt</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>PROJECTION</div><div>"init=epsg:54004"</div><div>END</div><div><br class="webkit-block-placeholder"></div><div>WEB</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>IMAGEPATH "/tmp/"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>IMAGEURL "/tmp/"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>METADATA</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"wfs_version"   "1.0.0"</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"wfs_title"   "ira_wfs"</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"wfs_onlineresource"  "<a href="http://thewildwoodstudios/cgi-bin/mapserv?map=../roadlessland/maps/ira_q.map&amp;">http://thewildwoodstudios/cgi-bin/mapserv?map=../roadlessland/maps/ira_q.map&amp;</a>"</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"wfs_srs" "EPSG:4326 EPSG:54004"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>END  </div><div>END</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>LAYER</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>NAME "ira"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>TYPE POLYGON</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>CONNECTIONTYPE WFS</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>CONNECTION "<a href="http://thewildwoodstudios/cgi-bin/mapserv?map=../roadlessland/maps/ira_q.map&amp;">http://thewildwoodstudios/cgi-bin/mapserv?map=../roadlessland/maps/ira_q.map&amp;</a>"</div><div>  <span class="Apple-tab-span" style="white-space:pre">        </span>METADATA</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"wfs_version"   "1.0.0"</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"wfs_title"    "ira"  </div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"wfs_typename"  "ira"</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"gml_include_items" "all"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>END</div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>PROJECTION</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"proj=latlong"</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"ellps=GRS80"</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"datum=NAD27"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>END </div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DUMP TRUE          </div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DATA ira_by_name_nad83</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>STATUS ON</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>CLASS</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>STYLE</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>COLOR 255 0 0</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>END </div><div><span class="Apple-tab-span" style="white-space:pre">        </span>END</div><div>END </div></div> </body></html>