[Mapserver-users] WFS layers
Bart van den Eijnden
bartvde at xs4all.nl
Tue Mar 16 10:32:39 PST 2004
Hi,
I don't know if this could be the cause of your problem, but do you have a
TEMPLATE set in your CLASS? BTW do you have any errors in the web server
error log?
Here is a WFS LAYER that works for me:
CONNECTIONTYPE WFS
CONNECTION
"http://localhost/cgi-bin/mapserv_41.exe?map=c:/ms4w/apps/geodan_sample/map/sample_wms_wfs_server.map&SERVICE=WFS&VERSION=1.0.0&TYPENAME=popplace"
LabelItem "Name"
CLASS
TEMPLATE "ttt_query.html"
NAME "Large Cities"
LABEL
COLOR 118 129 27
FONT fritqat-italic
TYPE truetype
SIZE 8
POSITION AUTO
#PARTIALS FALSE
OUTLINECOLOR 255 255 255
FORCE TRUE
END
COLOR 0 0 0
END
CLASS
TEMPLATE "ttt_query.html"
SYMBOL 3
SIZE 4
NAME "Cities"
COLOR 0 0 0
END
TOLERANCE 5
END
Best regards,
Bart
On Mon, 15 Mar 2004 12:31:53 -0800 (PST), we wei <mapgisnewbies at yahoo.com>
wrote:
> Hi all,
>
> I have a question about WFS. I have already compiled
> mapserver with WFS server and client. And the
> mapserver is the latest version that I got from the
> nightly built. And I tested this setting running WFS
> service thru a browser as follow:
>
> http://localhost/cgi-bin/mapserv_wfs?map=/opt/mapfiles/wfs.map&service
> =WFS&version=1.0.0&request=getfeature&typename=mylayer
>
> And it works okay. I can successfully got all the
> features in GML formats.
>
> However, when I tried to make add this WFS service as
> the data sources in a layer of my demo application.
> It does not work.
>
> It returns to me nothing because of the error occured.
>
> And I got a gml.tmp file with the follow result:
>
> ?xml version='1.0' encoding="ISO-8859-1" ?>
> <wfs:FeatureCollection
> xmlns="http://www.ttt.org/myns"
> xmlns:myns="http://www.ttt.org/myns"
> 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://ogc.dmsolutions.ca/wfs/1.0.0/WFS-basic.xsd
> http://www.ttt.org/myns
> http://http://localhost/cgi-bin/mapserv_wfs?map=/opt/mapfiles/wfs.map;SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=mylayer">
> <gml:boundedBy>
> <gml:null>inapplicable</gml:null>
> </gml:boundedBy>
> </wfs:FeatureCollection>
>
>
> It seems to me that I could this gml file doesn't not
> contain any features so that the image of the layer
> couldn't be drawns.
>
> I don't know if I am right but I suspect that the
> resultcache is empty so that it couldn't output
> anything to this GML file.
>
> I did put "Dump true" in my mapfile. And I put
> ConnectionType WFS and
> Connection
> "http://localhost/cgi-bin/mapserv_wfs?map=/opt/mapfiles/wfs.map&service
> =WFS&version=1.0.0&request=getfeature&typename=mylayer"
>
> in my mapfile too.
>
> I just wonder if anyone could give me some hints on
> this problem ?
>
> I am new to this GIS stuff. Any help would be greatly
> appreciated :)
>
> Thanks in advance!
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam
> http://mail.yahoo.com
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
--
More information about the MapServer-users
mailing list