MS WFS "Chaining"
Bart van den Eijnden
bartvde at XS4ALL.NL
Tue Nov 1 11:54:17 PST 2005
Hi Chris,
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:
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
This is the MAP file used:
NAME DEMO
STATUS ON
SIZE 400 300
EXTENT -2594561 -712631 3467361 3840000
UNITS METERS
SHAPEPATH "../data"
IMAGECOLOR 255 255 255
TRANSPARENT FALSE
WEB
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
METADATA
wfs_onlineresource
"http://localhost/cgi-bin/backup/mapserv_46.exe?map=c:\ms4w\apps\chameleon\samples\map\samplewfs.map&"
wfs_title "test wfs"
END
END
PROJECTION
"init=epsg:42304"
END
LAYER
CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?"
CONNECTIONTYPE WFS
NAME park
METADATA
wfs_typename "park"
wfs_title "park layer"
wfs_version "1.0.0"
END
TYPE POLYGON
DUMP TRUE
CLASS
STYLE
SYMBOL 0
COLOR 255 0 0
OUTLINECOLOR 255 0 0
END
END
STATUS ON
PROJECTION
"init=epsg:42304"
END
END
END
Hope this helps.
Best regards,
Bart
chris at narx.net wrote:
>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 <bartvde at XS4ALL.NL>:
>
>
>
>>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:
>>
>>
>>
>>>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
>>>
>>>
>>as an
>>
>>
>>>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
>>>
>>>
>>had
>>
>>
>>>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.
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>
>----------------------------------------------------------------
>This message was sent using IMP, the Internet Messaging Program.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20051101/425fc186/attachment.htm>
More information about the MapServer-users
mailing list