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

Donald Kerr donald.kerr at dkerr.co.uk
Tue Jun 26 09:07:23 PDT 2012


Andreas,

I thinks that's the direction I'm going to take. I've been getting some
assistance on the mapserver users list. I originally hit some issues with
filter BBOX but I have that resolved now.

Many thanks.

Regards,

Donald



-----Original Message-----
From: andreas.hocevar at gmail.com [mailto:andreas.hocevar at gmail.com] On Behalf
Of Andreas Hocevar
Sent: 26 June 2012 16:58
To: Donald Kerr
Cc: openlayers-users at lists.osgeo.org
Subject: Re: [OpenLayers-Users] OpenLayers.Protocol.WFS Output to GML
without Drawing


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=GetFea
ture&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