<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Chris,<br>
<br>
this is the sample MAP file I have just used to test this approach. I
can do a GetFeature request to my localhost server and get the GML
returned by the DM Solutions WFS service:<br>
<br>
<a class="moz-txt-link-freetext" href="http://localhost/cgi-bin/backup/mapserv_46.exe?map=c:\ms4w\apps\chameleon\samples\map\samplewfs.map&request=GetFeature&service=WFS&version=1.0.0&typename=park">http://localhost/cgi-bin/backup/mapserv_46.exe?map=c:\ms4w\apps\chameleon\samples\map\samplewfs.map&request=GetFeature&service=WFS&version=1.0.0&typename=park</a><br>
<br>
This is the MAP file used:<br>
<br>
NAME DEMO<br>
STATUS ON<br>
SIZE 400 300<br>
EXTENT -2594561 -712631 3467361 3840000<br>
UNITS METERS<br>
SHAPEPATH "../data"<br>
IMAGECOLOR 255 255 255<br>
TRANSPARENT FALSE<br>
<br>
WEB<br>
IMAGEPATH "/ms4w/tmp/ms_tmp/" <br>
IMAGEURL "/ms_tmp/"<br>
METADATA<br>
wfs_onlineresource
<a class="moz-txt-link-rfc2396E" href="http://localhost/cgi-bin/backup/mapserv_46.exe?map=c:\ms4w\apps\chameleon\samples\map\samplewfs.map&">"http://localhost/cgi-bin/backup/mapserv_46.exe?map=c:\ms4w\apps\chameleon\samples\map\samplewfs.map&"</a><br>
wfs_title "test wfs"<br>
END<br>
END<br>
<br>
PROJECTION<br>
"init=epsg:42304"<br>
END<br>
<br>
LAYER<br>
CONNECTION <a class="moz-txt-link-rfc2396E" href="http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?">"http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?"</a><br>
CONNECTIONTYPE WFS<br>
NAME park<br>
METADATA<br>
wfs_typename "park"<br>
wfs_title "park layer"<br>
wfs_version "1.0.0"<br>
END<br>
TYPE POLYGON<br>
DUMP TRUE<br>
CLASS<br>
STYLE<br>
SYMBOL 0<br>
COLOR 255 0 0<br>
OUTLINECOLOR 255 0 0<br>
END<br>
END<br>
STATUS ON<br>
PROJECTION<br>
"init=epsg:42304"<br>
END<br>
END<br>
<br>
END<br>
<br>
Hope this helps.<br>
<br>
Best regards,<br>
Bart<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:chris@narx.net">chris@narx.net</a> wrote:
<blockquote cite="mid1130830599.43671b079ab55@webmail.narx.net"
type="cite">
<pre wrap="">Hi Bart, thanks for the reply.
Care to submit a small mapfile sample of what you think may work ? :)
I have played around with the metadata such as the online resource url but no
such luck
Thanks :)
Quoting Bart van den Eijnden <a class="moz-txt-link-rfc2396E" href="mailto:bartvde@XS4ALL.NL"><bartvde@XS4ALL.NL></a>:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
this could be done I think. On your middle tier, you would have a
Mapserver WFS client layer, which you also expose as a WFS server layer
on the middle tier. The middle tier will then request the remote
Mapserver WFS.
So in summary, on your middle tier you would have a WFS Client layer in
your MAP file, and you would also expose your middle tier as a WFS
server using the appropriate wfs server metadata.
Does this make sense :-) ?
Best regards,
Bart
Chris Tweedie wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Morning list,
A current work in progress requires extensive use of mapserver's WMS service
chaining. My question is that as far as i can tell, there is no way to do a
similar method using remote WFS services.
To clarify, i am not after MS as a WFS Client (eg. render the WFS response
</pre>
</blockquote>
<pre wrap="">as an
</pre>
<blockquote type="cite">
<pre wrap="">image) but simply forward the response on to the client. For example,
1. Client (WFS Request) --> Core Mapserver (Forward request) --> Remote
Mapserver
2. Remote Mapserver (GML Response) --> Core Mapserver (Forward request) -->
Client
I hope mapserver could be enabled as a sort of pseudo OWS "proxy" but I have
</pre>
</blockquote>
<pre wrap="">had
</pre>
<blockquote type="cite">
<pre wrap="">a look around without much success,
Ideally, if there was a new meta tag such as
"wfs_response_method" "GML"
or something similar attached to the layer, then this would suit my purpose
exactly. Since the response is currently stored as a GML file in the ms_tmp
directory anyway, it seems a simple manner of just forwarding on the request
instead of rendering it using GDAL/OGR.
Any feedback would be appreciated,
Chris Tweedie
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
</pre>
</blockquote>
<br>
</body>
</html>