[OpenLayers-Users] Get WFS features geometry data
Christine Spietz
spietz at fh-bingen.de
Thu May 24 08:47:30 EDT 2007
Hi Benjamin,
if I understand right, there are only 2 kinds of features in OpenLayers.
(OpenLayers.Feature.Vector and OpenLayers.Feature.WFS)
I think "geometry" is only available in OpenLayers.Feature.Vector, but I did
not really work with the WFS-features.
I made a VectorLayer (OpenLayers.Layer.Vector) and the input of this layer
is a featureCollection with lots of features. I did not set the
'featureClass' and so I think I "automatically" got the Vector-Features in
my Vector-Layer and there is a features variable....
regards
Christine
P.S.: Ja, ich bin die jenige ;-) ...... und habe mich eine Zeit lang mit
Multiple Feature Selection auseinandergesetzt.
> Hi Christine,
>
>> [...]
>> feature = allFeatures[i];
>> geometry = feature.geometry;
>
> Does it mean, that "geometry" variable is always available in
> OpenLayers.Feature or just in OpenLayers.Feature.Vector? Because
> concerning http://dev.openlayers.org/docs/OpenLayers/Feature/Vector.html
> it is only available in OpenLayers.Feature.Vector.
>
> But since I'm using OpenLayers.Layer.WFS and concerning Mr. Christopher
> Schmidt there is indeed a features variable if I don't use "featureClass"
> (although I can't find it in class documentation or source code) I would
> presume "features" is of type OpenLayers.Feature.WFS instead of
> OpenLayers.Feature.Vector or Am I wrong?
>
>> That's how WFS works, though it uses a buffer around the current view -
>> that buffer can be dropped to 1.0 via a 'ratio: 1.0' option to the layer.
>
> Ok, if I understand you well this buffer does only contain the features
> required for current view (if ratio is set to 1.0) or Am I wrong? If so,
> what happens if there are polygons out of view? Are they truncated in some
> way?
>
> regards
>
> Benjamin Kalytta
>
> PS: @Christine: Bist Du die jenige die sich mit dem Thema Multiple Feature
> Selection auseinander gesetzt hatte?
>
> _______________________________________________________________
> SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
> kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
More information about the Users
mailing list