[OpenLayers-Users] creating a persistent vector/feature object from wfs

G. Allegri giohappy at gmail.com
Thu Jun 12 08:34:49 EDT 2008


Ok, I had already tried Layer.GML putting the whole wfs request url
inside it, but it didn't seem to work...

OpenLayers.Layer.GML("IET_GML","http://localhost/IETclient/wxsIET.php?TYPENAME=ammsimple3&FORMAT=GML&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A3003&BBOX=1612519,5108846.747534517,1661798.7475345167,5158126.495069034")

What's wrong with this?

2008/6/12 Christopher Schmidt <crschmidt at metacarta.com>:
> On Thu, Jun 12, 2008 at 01:54:31PM +0200, G. Allegri wrote:
>> Hello list.
>> I need to call a wfs to retrieve a multipolygon vector layer. As it's
>> quite huge (about 15000 vertices), I'd like to call it once (full
>> extent) and then "copy" it in a vector object to avoid calling wfs
>> when zooming and panning.
>
> In this case, you probably just want to use Layer.GML. Layer.GML takes a
> single URL and loads remote data based on it, and does not update when
> the map extent changes. Layer.WFS is really
> "Layer.LoadDataWhenDraggingAround": if you just want Layer.LoadData,
> then use Layer.GML.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>



More information about the Users mailing list