|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.fmap.driver.vect.shp.MemoryShpDriver
SHP driver for a file that is completely loaded into memory.
FalseByteBuffer
Field Summary | |
static double |
POINT_TOL
|
Constructor Summary | |
MemoryShpDriver()
|
Method Summary | |
boolean |
accept(java.io.File f)
Says whether a file is a SHP file. |
boolean |
canAlterTable()
|
void |
close()
Closes the file an dtries to preven memory leaks |
java.lang.String |
getDataDriverName()
Obtiene el nombre del driver que leerá la tabla de datos de la capa |
java.io.File |
getDataFile(java.io.File f)
Gets the data file (attributes file, in this case a DBF file) that corresponds to the given SHP file |
java.io.File |
getFile()
Gets the main SHP file object. |
java.lang.String |
getFilePath()
|
java.awt.geom.Rectangle2D |
getFullExtent()
Gets the extent of the geometries of this driver |
int[] |
getIntersectingIndices(java.awt.geom.Rectangle2D rect,
int max)
Gets the indices of the geometries intersecting the given rectangle |
java.lang.String |
getName()
Gets the driver name |
IGeometry |
getShape(int index)
Gets the geometry for an index |
java.awt.geom.Rectangle2D |
getShapeBounds(int index)
Gets the extent of one geometry of this driver. |
int |
getShapeCount()
Obtiene el número de geometrías que contiene la capa |
int |
getShapeType()
Devuelve el tipo de los shapes que hay en el fichero. |
int |
getShapeType(int index)
Gets the shape type of the geometry of interest. |
java.io.File |
getShxFile(java.io.File f)
Gets the associated SHX file |
void |
initialize()
Initializes the driver |
void |
initialize(ITableDefinition layerDef)
Initializes the driver |
boolean |
isWritable()
|
boolean |
isWriteAll()
Unused. |
void |
open(java.io.File f)
Opens the file with using standard Java I/O system and loads it completely into memory |
void |
reload()
Reloads the driver (reopens file and initializes) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final double POINT_TOL
Constructor Detail |
public MemoryShpDriver()
Method Detail |
public java.lang.String getFilePath()
getFilePath
in interface VectorialFileDriver
public void close() throws java.io.IOException
close
in interface VectorialFileDriver
java.io.IOException
com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#close()
public void open(java.io.File f) throws java.io.IOException
open
in interface VectorialFileDriver
f
- the file to be opened
java.io.IOException
- Si se produce algún errorcom.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#open(java.io.File)
public IGeometry getShape(int index) throws java.io.IOException
getShape
in interface VectorialDriver
index
- index of the geometry of interest
java.io.IOException
public int getShapeCount()
VectorialDriver
getShapeCount
in interface VectorialDriver
com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#getShapeCount()
public int getShapeType()
VectorialDriver
getShapeType
in interface VectorialDriver
com.iver.cit.gvsig.fmap.drivers.VectorialDriver#getShapeType()
public void initialize() throws java.io.IOException
initialize
in interface VectorialFileDriver
java.io.IOException
- Si se produce algún errorcom.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#initialize()
public java.awt.geom.Rectangle2D getFullExtent() throws java.io.IOException
getFullExtent
in interface VectorialDriver
java.io.IOException
- Si se produce algún errorcom.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#getFullExtent()
public java.awt.geom.Rectangle2D getShapeBounds(int index) throws java.io.IOException
getShapeBounds
in interface VectorialDriver
index
- the index of the geometry of interest
java.io.IOException
public boolean accept(java.io.File f)
accept
in interface VectorialFileDriver
f
- the file of interest
public java.lang.String getName()
getName
in interface Driver
public java.lang.String getDataDriverName()
ExternalData
getDataDriverName
in interface ExternalData
public java.io.File getDataFile(java.io.File f)
getDataFile
in interface VectorialFileDriver
public java.io.File getShxFile(java.io.File f)
f
- a certain SHP file
public int getShapeType(int index)
getShapeType()
getShapeType
in interface BoundedShapes
index
- the index of the geometry of interest
public java.io.File getFile()
getFile
in interface VectorialFileDriver
public void reload() throws java.io.IOException
reload
in interface VectorialDriver
java.io.IOException
public void initialize(ITableDefinition layerDef)
layerDef
- the table definition to initialize the driverpublic boolean isWritable()
isWritable
in interface VectorialDriver
public boolean canAlterTable()
public boolean isWriteAll()
public int[] getIntersectingIndices(java.awt.geom.Rectangle2D rect, int max) throws java.io.IOException
getIntersectingIndices
in interface BoundedShapes
rect
- the rectangle of interestmax
- the maximum number of indices to be returned
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |