[mapserver-users] WMS works, WFS doesn't
Julien Cigar
jcigar at ulb.ac.be
Wed Sep 26 05:23:06 PDT 2012
On 09/26/2012 14:17, basvmrs wrote:
> Hi,
>
> I followed the instructions on http://mapserver.org/ogc/wfs_server.html to
> set up a WFS server with the shown example file. I find that WMS works fine,
> but WFS doesn't, even though I am basically using the same configuration.
>
> The WMS server:
> http://wms.cipix4.cipix.nl/?MAP=%2Fhome%2Figis%2Fwww%2Fdata%2Fwms%2Ftutorial%2Fhtdocs%2Fex.map&service=wms&request=GetMap&bbox=-180.000000,-90.000000,180.000000,83.627419&layers=continents&version=1.0.0&srs=epsg:4326&format=jpeg&width=500&height=500
>
> GetFeatureInfo also works:
> http://wms.cipix4.cipix.nl/?MAP=%2Fhome%2Figis%2Fwww%2Fdata%2Fwms%2Ftutorial%2Fhtdocs%2Fex.map&service=wms&version=1.3.0&request=GetFeatureInfo&bbox=-180.000000,-90.000000,180.000000,83.627419&layers=continents&version=1.0.0&srs=epsg:4326&format=jpeg&width=500&height=500&query_layers=continents&info_formate=xml&X=106&Y=80
>
> But now for WFS:
> http://wms.cipix4.cipix.nl/?MAP=%2Fhome%2Figis%2Fwww%2Fdata%2Fwms%2Ftutorial%2Fhtdocs%2Fex.map&service=wfs&request=GetFeature&TYPENAME=continents&version=1.0.0
>
> It says:
> msWFSGetFeature(): WFS server error. TYPENAME 'continents' doesn't exist in
> this server. Please check the capabilities and reformulate your request.
>
> I don't get it: the typename should be the same as the layer name and that
> works fine in the WMS request. /var/log/mapserver reveals nothing
> interesting at all.
>
> My mapfile is:
>
your mapfile is missing .. ?
are you sure that your layer METADATA section contains
"wfs_enable_request" "*" (or "ows_enable_request" "*") ?
*
*
> After a couple of hours of searching I though I should just ask someone.
>
> Thanks!
>
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-works-WFS-doesn-t-tp5004603.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120926/8ef878e0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jcigar.vcf
Type: text/x-vcard
Size: 292 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120926/8ef878e0/attachment.vcf>
More information about the MapServer-users
mailing list