Revision 4193 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/VectorialEditableAdapter.java
VectorialEditableAdapter.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.32 2006-02-23 17:55:45 fjp |
|
48 |
* Revision 1.33 2006-02-24 07:57:58 fjp |
|
49 |
* FUNCIONA!!! (Creo) |
|
50 |
* |
|
51 |
* Revision 1.32 2006/02/23 17:55:45 fjp |
|
49 | 52 |
* Preparando para poder editar con el EditionManager |
50 | 53 |
* |
51 | 54 |
* Revision 1.31 2006/02/21 16:44:08 fjp |
... | ... | |
558 | 561 |
* |
559 | 562 |
* @param feat geometr?a a guardar. |
560 | 563 |
* |
561 |
* @return DOCUMENT ME!
|
|
564 |
* @return calculatedIndex
|
|
562 | 565 |
* |
563 | 566 |
* @throws DriverIOException |
564 | 567 |
* @throws IOException |
565 | 568 |
*/ |
566 | 569 |
public int doAddRow(IRow feat) throws DriverIOException, IOException { |
567 |
int virtualIndex=super.doAddRow(feat);
|
|
570 |
int calculatedIndex=super.doAddRow(feat);
|
|
568 | 571 |
// Actualiza el ?ndice espacial |
569 | 572 |
IGeometry g = ((IFeature)feat).getGeometry(); |
570 | 573 |
Rectangle2D r = g.getBounds2D(); |
571 | 574 |
index.insert(new Envelope(r.getX(), r.getX() + r.getWidth(), r.getY(), |
572 |
r.getY() + r.getHeight()), new Integer(virtualIndex));
|
|
575 |
r.getY() + r.getHeight()), new Integer(calculatedIndex));
|
|
573 | 576 |
|
574 |
return virtualIndex;
|
|
577 |
return calculatedIndex;
|
|
575 | 578 |
} |
576 | 579 |
/** |
577 | 580 |
* Se desmarca como invalidada en el fichero de expansion o como eliminada |
Also available in: Unified diff