<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    sorry for the late answer.<br>
    <br>
    If you are using a swing widget selection toolbar, your layer must
    be selectable first.<br>
    Once you have drawn the selection shape the map pane should repaint
    and change the style<br>
    of the selected features.You can then grab the selected feature ids
    on the map layer<br>
    (Id ids = layer.getSelectionFilter())<br>
    <br>
    If you have a FeatureCollection and a JTS geometry. you can call the
    subCollection method<br>
    with an intersect filter using this geometry. The result will be a
    new collection with only the<br>
    features in the given area.<br>
    <br>
    johann<br>
    <br>
    <br>
    Le 14/10/2010 11:16, Riou Yvan N2A (DAS SDMOL) a &eacute;crit&nbsp;:
    <blockquote
cite="mid:F8D0FCF49FBCA441B7EFD629E4625867FB9E75@wappmese1be1.ad.gendarmerie.fr"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta content="MSHTML 6.00.6000.17023" name="GENERATOR">
      <div><font face="Arial" size="2"><span class="846011209-14102010">Good
            morning,</span></font></div>
      <div><font face="Arial" size="2"><span class="846011209-14102010"></span></font>&nbsp;</div>
      <div><font face="Arial" size="2"><span class="846011209-14102010">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 ?</span></font></div>
      <div><font face="Arial" size="2"><span class="846011209-14102010"></span></font>&nbsp;</div>
      <div><font face="Arial" size="2"><span class="846011209-14102010">Thanks
            a lot for your help</span></font></div>
      <div>&nbsp;</div>
      <div><span class="846011209-14102010"><font face="Arial" size="2">yvan</font></span></div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Geotoolkit mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geotoolkit@lists.osgeo.org">Geotoolkit@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geotoolkit">http://lists.osgeo.org/mailman/listinfo/geotoolkit</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>