Hi,
One way would be to return a MultiPolygon instead of a Collection
in selectedBornes method
I assume bornes are Polygon (and did not check the code, just to give
you the idea)
ArrayList<Polygon> selectedBornes = new ArrayList<Polygon>();
for(BasicFeature basicFeature : BornesList) {
selectedBornes.add((Polygon)search().getGeometry());
}
return new
GeometryFactory().createMultiPolygon(selectedBornes.toArray(new
Polygon[selectedBornes.size()]));
Michaël
the log says that it cannot cast a collection of geometry to polygon.
How can i do the cast without error.
--
*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] <mailto:[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
------------------------------------------------------------------------------
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