[Gvsig_desarrolladores] GEOMETRIA SELECCIONADA EN GVsig 1.9
quinta
nico200307 en gmail.com
Lun Ene 25 13:23:59 CET 2010
hOLA, estoy comenzando con gvSIG.
Implementando el siguiente codigo para obtener la geometria seleccionada,
tengo errores
BitSet sel = ((FLyrVect)lyrLineas).getSelectionSupport().getSelection();
for (int i = sel.nextSetBit(0); i >= 0; i = sel.nextSetBit(i+1)) {
//Para ver que está dentro la geometría del BoundingBox
//seleccionado.
Rectangle2D bb =
((FLyrVect)lyrLineas).getSource().getShapeBounds(i);
// si intersecta el Rectangle2D con el Rectangle2D
reproyectado
// la geometría en esa posición pertenece a las
seleccionadas.
ViewPort _vp;
if (Utils.rectanglesIntersect(bb, _vp.getAdjustedExtent()))
{
//Obtenemos la geometria
IGeometry ig =
((FLyrVect)lyrLineas).getSource().getShape(i);
}
}
No encuentra getShapeBounds() ni Utils
¿me podeis explicar los cambios?
GRACIAS!
--
View this message in context: http://n2.nabble.com/GEOMETRIA-SELECCIONADA-EN-GVsig-1-9-tp4453652p4453652.html
Sent from the gvSIG desarrolladores mailing list archive at Nabble.com.
Más información sobre la lista de distribución gvSIG_desarrolladores