WFS mapserver problem II
nelson guda
nelson.guda at GMAIL.COM
Wed Dec 26 14:50:57 PST 2007
Here is some more information on my problem:
When I do a "GetCapabilities" (below), I get what looks like a good
response except that feature type list is empty:
<FeatureTypeList>
<Operations>
<Query/>
</Operations>
</FeatureTypeList>
request:
<http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/
maps/ira.map&VERSION=1.0.0&SERVICE=wfs&REQUEST=GetCapabilities>
When I to a "GetFeature" (below), I get this response:
<ServiceExceptionReport
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/wms/1.1.1/OGC-exception.xsd">
<ServiceException>
msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -6
downloading WFS layer ira
msHTTPExecuteRequests(): HTTP request error. HTTP: request failed
with curl error code 6 (Couldn't resolve host
'thewildwoodstudios') for http://thewildwoodstudios/cgi-bin/
mapserv?map=../roadlessland/maps/ira_q.map&
</ServiceException>
</ServiceExceptionReport>
request:
<http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/
maps/
ira_q.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=ira>
I do have this mapserver set up and working for WMS (you can see an
example here: <http://roadlessland.org/map.php?state=MT>
Many thanks for any help that people can give me.
nelson
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&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureT
ype&TYPENAME=ira&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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20071226/897aa2b3/attachment.htm>
More information about the MapServer-users
mailing list