Hi Michaud,
no bornes are point and titre are polygon, here what i did to bornes:
public Geometry selectedBornes() {
Geometry geometry;
geometry = searchBorne().get(getSelectedRowIndex()).getGeometry();
return geometry;
}
with i'll not have a problem converting to geometry iin the method
toShape(), but in polygon i do have to do that see below:
and here what i did to polygon
public Collection selectedFeatures() {
ArrayList selectedFeatures = new ArrayList();
for(BasicFeature basicFeature : TitreList) {
selectedFeatures.add(search().getGeometry());
}
return selectedFeatures;
}
// and for toshape():
final GeometryCollection gc =
zoomToSelectedItemsPlugIn.toGeometryCollection(selectedFeatures());
final Shape shape =
context.getLayerViewPanel().getViewport().getJava2DConverter().toShape(gc);
--
*Asma OUQALLI*
Élève ingénieur : 3ème Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
Ecole Hassania des Travaux Publics.
Mobile : +212 672 48 23 15.
Email : [email protected]
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel