Hi all,

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.

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?

thanks much in advance,
nelson

Here is the WFS call that I've been trying:

<http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/ maps/ ira_q.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ira&Filt er=%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>

This is the filter:
<Filter><Contains><PropertyName>Geometry<PropertyName><gml:Point><gml:co ordinates>-112.96142578125,45.521743896993634</gml:coordinates></ gml:Point></Contains></Filter>

This is the result I get:
<?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:// schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd http://mapserver.gis.umn.edu/mapserver http:// thewildwoodstudios/cgi-bin/mapserv?map=../roadlessland/maps/ ira_q.map&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureT ype&amp;TYPENAME=ira&amp;OUTPUTFORMAT=XMLSCHEMA">
   <gml:boundedBy>
      <gml:null>missing</gml:null>
   </gml:boundedBy>
</wfs:FeatureCollection>


Here is the mapfile that I set up:

#################
MAP

NAME "roadless"
STATUS ON
SIZE 800 600
STATUS ON
EXTENT -124.40950012207 18.2457218170166 -65.7071533203125 49.0011405944824
SHAPEPATH "../shapefiles"
FONTSET ../fonts/fonts.txt


PROJECTION
"init=epsg:54004"
END

WEB
        IMAGEPATH "/tmp/"
        IMAGEURL "/tmp/"
        METADATA
                "wfs_version"   "1.0.0"
                "wfs_title"   "ira_wfs"
"wfs_onlineresource" "http://thewildwoodstudios/cgi-bin/mapserv? map=../roadlessland/maps/ira_q.map&"
                "wfs_srs" "EPSG:4326 EPSG:54004"
        END
END



LAYER
        NAME "ira"
        TYPE POLYGON
        CONNECTIONTYPE WFS
CONNECTION "http://thewildwoodstudios/cgi-bin/mapserv?map=../ roadlessland/maps/ira_q.map&"
        METADATA
                "wfs_version"   "1.0.0"
                "wfs_title"    "ira"
                "wfs_typename"  "ira"
                "gml_include_items" "all"
        END

        PROJECTION
                "proj=latlong"
                "ellps=GRS80"
                "datum=NAD27"
        END
        
        DUMP TRUE

        
        DATA ira_by_name_nad83
        STATUS ON
        CLASS
                STYLE
                        COLOR 255 0 0
                END
        END
END 

Reply via email to