[OpenLayers-Users] OpenLayers.Protocol.WFS Output to GML without Drawing

Andreas Hocevar ahocevar at opengeo.org
Tue Jun 26 08:57:42 PDT 2012


Hi,

the easiest is to create a plain WFS request. WFS supports multiple
type names in one request, and so does e.g. GeoServer:

http://localhost:8080/geoserver/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=layer1,layer2

You can provide this as download link directly, without OpenLayers involved.

Andreas.

On Mon, Jun 25, 2012 at 10:27 PM, Donald Kerr <donald.kerr at dkerr.co.uk> wrote:
> Is it possible to combine multiple WFS requests using
> OpenLayers.Protocol.WFS and output that as a single GML file without
> rendering a map i.e. use OpenLayers.Protocol.WFS for the combining part,
> make the request then directing that request to some output - no actual
> drawing a map, just manipulation of the data?
>
> To explain what I'm trying to do: I want to output several WFS layers as GML
> so that they can be imported to another program as a single GML file. I
> would like to make this file available as a url, i.e. right click - save as,
> so that the user could then import the lot as a single file. I'm using
> Mapserver as the WFS server and I don't think I can combine WFS layers at
> the server level (similar question asked at mapserver-users).
>
> Many thanks.
>
> Regards,
>
> Donald
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list