[geotk] graphically select features

sorel johann johann.sorel at geomatys.fr
Wed Oct 27 07:45:09 EDT 2010


Hello,

sorry for the late answer.

If you are using a swing widget selection toolbar, your layer must be 
selectable first.
Once you have drawn the selection shape the map pane should repaint and 
change the style
of the selected features.You can then grab the selected feature ids on 
the map layer
(Id ids = layer.getSelectionFilter())

If you have a FeatureCollection and a JTS geometry. you can call the 
subCollection method
with an intersect filter using this geometry. The result will be a new 
collection with only the
features in the given area.

johann


Le 14/10/2010 11:16, Riou Yvan N2A (DAS SDMOL) a écrit :
> Good morning,
> May it be possible to get an source code example showing how to select 
> features against a featurecollection after drawing a shape with the 
> mouse in the JMap2D component ?
> Thanks a lot for your help
> yvan
>
>
> _______________________________________________
> Geotoolkit mailing list
> Geotoolkit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geotoolkit

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geotoolkit/attachments/20101027/a33c4a36/attachment.html


More information about the Geotoolkit mailing list