[mapserver-users] WFS set up
Alberto Najera
anajera at bicimapas.com.mx
Tue May 22 10:06:05 PDT 2012
Hello
I am setting up a map file for WFS access but I do not get a response when
testing for capabilities, just a 404 error. Following the guidelines in the
Mapserver documentation, the CGI was compiled using "-with-wfs" and I am
using this URL to test capabilities:
http://173.236.45.118/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapab
ilities
The data file is SHP and this is the map file (named BiciMapasWFS.map):
MAP
NAME "BiciMapasWFS"
UNITS dd
SIZE 640 480
IMAGECOLOR 244 244 244
IMAGETYPE png
SHAPEPATH "/home/bicimapas/mapdata/"
EXTENT -99.269569 19.479910 -99.224060 19.524080
FONTSET "/home/bicimapas/mapdata/fontset.txt"
WEB
TEMPLATE "/home/bicimapas/www/bcmpms.html"
IMAGEPATH "/home/bicimapas/www/images/"
IMAGEURL "/images/"
MAXSCALEDENOM 15000
METADATA
"wfs_title" "BiciMapasMS"
"wfs_onlineresource"
"http://173.236.45.118/cgi-bin/mapserv?map=/home/bicimapas/mapdata/BiciMapas
WFS.map&"
"wfs_srs" "EPSG:4326"
"wfs_enable_request" "*"
END
END
PROJECTION
"init=epsg:4326"
END
LAYER
NAME "caminos"
DATA "CaminosMS"
STATUS on
TYPE line
METADATA
"wfs_title" "caminos"
"wfs_srs" "EPSG:4326"
"gml_include_items" "all"
"gml_featureid" "ID"
"wfs_enable_request" "*"
END
PROJECTION
"init=epsg:4326"
END
CLASS
NAME "Caminos"
STYLE
WIDTH 2
COLOR 0 0 0
END
END # class Calles
END # layer roads
END # mapfile
What am I missing?
Thanks
Alberto Najera
More information about the MapServer-users
mailing list