<html><div style='background-color:'><DIV class=RTE>
<P>Hi Bart/List,</P>
<P>Prior to posting to the list I tried to read all the material I could. I guess the one thing that I'm not too sure of is the WFS Server Mapfile/WFS Client Mapfile. Right now I'm doing all this setup on my local machine. Do I need two mapfiles? The way I understand is:</P>
<P>I point the sample_roi.phtml file to the client mapfile which contains the CONNECTIONTYPE WFS and CONNNECTION <url> and that mapfile inturn points to the server mapfile that knows the physical location of the files. Is this correct or am I just way off.</P>
<P>Thanks again,</P>
<P>Dave Findlay</P>
<P><BR>>From: "Bart van den Eijnden" <BEN@Syncera-ITSolutions.NL><BR>><BR>><BR>>Your second option won't work.<BR>><BR>>Your first option should, but you are missing the CONNECTION with a URL to the WFS service. There should be a CONNECTION but no DATA in your LAYER definition. And then you need to make sure you set up a WFS service with Mapserver on your data which you link in using the CONNECTION.<BR>><BR>>Why do you say with 4.6 the connection is not used anymore?<BR>><BR>>Read the WFS Server HOWTO and the WFS Client HOWTO for more info. Chameleon will be the WFS client to a Mapserver WFS service.<BR>><BR>>Hope this helps.<BR>><BR>>Best regards,<BR>>Bart<BR>><BR>>Bart van den Eijnden<BR>>Syncera IT Solutions<BR>>Postbus 270<BR>>2600 AG DELFT<BR>><BR>>tel.nr.: 015-7512436<BR>>email:
BEN@Syncera-ITSolutions.nl<BR>> >>> "Dave Findlay" <dfindlay_@hotmail.com> 07/27/05 16:30 PM >>><BR>>Hi Bart,<BR>><BR>>Thanks for the advice. I've tried things two ways in my mapfile<BR>><BR>>1.<BR>><BR>>##########################################<BR>>MAP<BR>><BR>><BR>>WEB<BR>><BR>> METADATA<BR>> "wfs_title" "WMS Demo Server"<BR>> "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?"<BR>> "wfs_srs" "NAD83:401"<BR>> END<BR>>END<BR>><BR>>LAYER # Start of Boundaries Layer<BR>><BR>> NAME Boundaries<BR>> CONNECTIONTYPE WFS<BR>> METADATA<BR>><BR>>
"wfs_title" "Boundaries"<BR>> "wfs_service" "WFS"<BR>> "wfs_typename" "Boundaries"<BR>> "wfs_version" "1.0.0"<BR>> "wfs_request_method" "GET"<BR>> "wfs_connectiontimeout" "60"<BR>> "wfs_maxfeatures" "1"<BR>><BR>> END<BR>><BR>> TYPE LINE<BR>> STATUS ON<BR>> DATA "./base_info_boundaries"<BR>> PROJECTION<BR>> "init=nad83:401"<BR>> END<BR>> DUMP TRUE<BR>>
CLASS<BR>> NAME "Boundaries"<BR>> COLOR 80 80 80<BR>> OUTLINECOLOR 80 80 80<BR>> END<BR>> END # End of Boundaries Layer<BR>>########################################<BR>><BR>>AND<BR>><BR>>2.<BR>><BR>>########################################<BR>>MAP<BR>><BR>><BR>>WEB<BR>><BR>> METADATA<BR>> "wfs_title" "WMS Demo Server"<BR>> END<BR>>END<BR>><BR>>LAYER # Start of Boundaries Layer<BR>><BR>> NAME Boundaries<BR>> METADATA<BR>><BR>> "wfs_title" "Boundaries"<BR>><BR>> END<BR>><BR>>
TYPE LINE<BR>> STATUS ON<BR>> DATA "./base_info_boundaries"<BR>> PROJECTION<BR>> "init=nad83:401"<BR>> END<BR>> DUMP TRUE<BR>> CLASS<BR>> NAME "Boundaries"<BR>> COLOR 80 80 80<BR>> OUTLINECOLOR 80 80 80<BR>> END<BR>> END # End of Boundaries Layer<BR>>####################################<BR>><BR>>Both of these result in the same error and a zero string length in the<BR>>$szWFSConnection variable. Oh and I'm using Mapserver 4.6 so the CONNECTION<BR>>is no longer used. Any
ideas?<BR>><BR>>Thanks,<BR>>Dave Findlay<BR>><BR>><BR>><BR>>-----Original Message-----<BR>>From: Bart van den Eijnden [mailto:BEN@Syncera-ITSolutions.NL]<BR>><BR>><BR>>Hi Dave,<BR>><BR>>is your layer a WMS or WFS connectiontype of layer?<BR>><BR>>If it is a WMS, the widget performs a DescribeLayer request to get the WFS<BR>>URL and the name of a typename, something like:<BR>><BR>>service=WMS&request=DescribeLayer&layers=blabla&version=1.1.1<BR>><BR>>So if your layer is WMS, can you check this request?<BR>><BR>>Best regards,<BR>>Bart<BR>><BR>>Bart van den Eijnden<BR>>Syncera IT Solutions<BR>>Postbus 270<BR>>2600 AG DELFT<BR>><BR>>tel.nr.: 015-7512436<BR>>email: BEN@Syncera-ITSolutions.nl<BR>> >>> "Dave Findlay" <dfindlay_@hotmail.com> 07/26/05 22:56 PM
>>><BR>>Hello all,<BR>><BR>><BR>><BR>>I'm having a bit of a problem with the sample_roi. When I try and extract<BR>>wfs data I get :<BR>><BR>><BR>><BR>>"Invalid layer or none selected. Please ensure that the selected layer is a<BR>>WFS or WMS layer."<BR>><BR>><BR>><BR>>Now the layer I'm trying to extract seems to be configured fine in the<BR>>mapfile and if I do a straight:<BR>><BR>><BR>><BR>>http://localhost/cgi-bin/mapserv.exe?MAP=ex2.map<BR>><http://localhost/cgi-bin/mapserv.exe?MAP=ex2.map&SERVICE=WFS&VERSION=1.0.0&<BR>>REQUEST=GetFeature&TYPENAME=Boundaries><BR>>&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=Boundaries<BR>><BR>><BR>><BR>>I get the complete gml in my browser. I noticed that in the<BR>>ExtractWFSData.php file
right around line 247 where it checks for a<BR>>connection the $szWFSConnection<BR>><BR>>actually has a length of zero. I'm assuming this is the problem but I'm not<BR>>sure exactly how to fix it. Any suggestions would be appreciated.<BR>><BR>><BR>><BR>>Cheers,<BR>><BR>><BR>><BR>>Dave Findlay<BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>>_______________________________________________<BR>>Chameleon mailing list<BR>>Chameleon@lists.maptools.org<BR>>http://lists.maptools.org/mailman/listinfo/chameleon<BR>><BR></P></DIV></div></html>