[mapserver-users] Providing WFS through MapServer with Shapefiles?
Bistrais, Bob
Bob.Bistrais at maine.gov
Mon Jun 15 09:03:53 PDT 2009
Found the problem! In order for MapServer layers to work in WFS, the
dump true parameter must be set in the map file. I had encountered this
before, but forgot. My WFS layers from SDE already had dump true set.
________________________________
From: Bistrais, Bob
Sent: Monday, June 15, 2009 11:44 AM
To: Rafael Almeida Fernandez Soto
Cc: mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] Providing WFS through MapServer with
Shapefiles?
I tried, but that didn't seem to fix the problem.
________________________________
From: Rafael Almeida Fernandez Soto [mailto:rafael at opengeo.com.br]
Sent: Sunday, June 14, 2009 7:10 PM
To: Bistrais, Bob
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Providing WFS through MapServer with
Shapefiles?
Try to remove all WMS metadata!
2009/6/14 Bistrais, Bob <Bob.Bistrais at maine.gov>
I'm trying to set up some layers with WFS capability. I have some that
are shapefile format. The shapefiles do not work as WFS. I have
tested, and they work fine both through Ka-Map and as a WMS service. I
should also note that I have successfully WFS-enabled layers from SDE
data. Here is the map file metadata...
In the main .map file:
METADATA
"wfs_title" "wfs_test"
"wfs_onlineresource"
"http://localhost/cgi-bin/mapserv.exe?map=../../apps/ka-map-1.0/htdocs/m
egug/WFStest.map&"
"wfs_srs" "EPSG:26919"
"wfs_request_method" "GET"
"wfs_service" "WFS"
And in a layer file:
METADATA
"gml_featureid" "OBJECTID"
"gml_include_items" "all"
"wfs_abstract" "County boundaries from Counties250"
"wms_title" "Counties"
"wms_srs" "EPSG:26919"
"wms_server_version" "1.1.1"
"wms_include_items" "all"
"wms_abstract" "County boundaries from Counties250"
"opacity" "75"
"queryable" "true"
"DESCRIPTION" "Counties"
"SEARCHFIELD" "COUNTY"
"fields" "COUNTY:County"
"hyperlink" "COUNTY"
END
Does anyone have any advice on how to make this work in WFS?
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
RAFAEL Almeida Fernandez Soto :: rafael at opengeo.com.br
Consultant in FOSS GIS :: 55 21 2518-6233 :: 55 71 8802-0600
OpenGEO :: On-demand training and solutions :: www.opengeo.com.br
GEO Livre community:: Because Geoinformation should be free ::
www.geolivre.org.br
Be free by using Free Software, such as MapServer, PostgreSQL/PostGIS,
gvSIG...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090615/0548c948/attachment.htm>
More information about the MapServer-users
mailing list