com.iver.cit.gvsig.fmap.drivers
Interface BoundedShapes

All Known Implementing Classes:
DemoSHPDriver, DXFDriver, MemoryDriver

public interface BoundedShapes

Interfaz a implementar por los drivers que puedan satisfacer de manera rápida una llamada a getShapeBounds. Esto hará que el procesado de la capa sea un poco más rápido


Method Summary
 java.awt.geom.Rectangle2D getShapeBounds(int index)
          Obtiene el Rectángulo de la geometría iésima
 int getShapeType(int index)
          Devuelve el tipo de la geometría.
 

Method Detail

getShapeBounds

public java.awt.geom.Rectangle2D getShapeBounds(int index)
                                         throws java.io.IOException
Obtiene el Rectángulo de la geometría iésima

Parameters:
index - Índice
Returns:
Rectángulo.
Throws:
java.io.IOException

getShapeType

public int getShapeType(int index)
Devuelve el tipo de la geometría. Con .shp está claro. Con PostGIS, existe una función: GeometryType(geometry) Returns the type of the geometry as a string. Eg: 'LINESTRING', 'POLYGON', 'MULTIPOINT', etc. OGC SPEC s2.1.1.1 - Returns the name of the instantiable subtype of Geometry of which this Geometry instance is a member. The name of the instantiable subtype of Geometry is returned as a string. NOTA: CREO QUE ESTO NO TIENE SENTIDO CON BASES DE DATOS. LA ESTRATEGIA CON BASES DE DATOS DEBE SER PEDIR LAS GEOMETRIES CONTENIDAS EN UN RECTANGULO, Y PREGUNTARLE A CADA GEOMETRY SU BOUNDINGBOX (Y GUARDARLO CON UN SHAPEINFO). TENGO LA SENSACIÓN QUE ESTO LO VAMOS A USAR SOLO CON SHAPES

Parameters:
index -
Returns: