|
|||||||||||
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
es.prodevelop.gvsig.mobile.fmap.driver.vect.shp.DiskShpDriver
SHP driver via JNI when the file does not have to be loaded into memory.
ShpReader
Field Summary |
Fields inherited from class es.prodevelop.gvsig.mobile.fmap.driver.vect.shp.MemoryShpDriver |
POINT_TOL |
Constructor Summary | |
DiskShpDriver()
|
Method Summary | |
boolean |
accept(java.io.File f)
Says whether a file is a SHP file. |
boolean |
canAlterTable()
|
void |
close()
Closes the file |
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.awt.geom.Rectangle2D |
getFullExtent()
Gets the extent of the geometries of this driver |
long |
getHandler()
|
int[] |
getIntersectingIndices(java.awt.geom.Rectangle2D rect,
int max)
Gets the indices of the geometries intersecting the given rectangle |
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 SHX associated with the given SHP file |
void |
initialize()
Initializes the driver |
void |
initialize(ITableDefinition layerDef)
Initializes the driver with the given table definition. |
boolean |
isWritable()
|
boolean |
isWriteAll()
Currently unused. |
void |
open(java.io.File f)
Opens the file with through JNI functions |
void |
reload()
Reloads this driver (reopens and initializes) |
void |
setHandler(long h)
Sets the main file handler |
Methods inherited from class es.prodevelop.gvsig.mobile.fmap.driver.vect.shp.MemoryShpDriver |
getDataDriverName, getFilePath, getName |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DiskShpDriver()
Method Detail |
public void close() throws java.io.IOException
close
in interface VectorialFileDriver
close
in class MemoryShpDriver
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
open
in class MemoryShpDriver
f
- the file to be opened
java.io.IOException
com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#open(java.io.File)
public IGeometry getShape(int index) throws java.io.IOException
getShape
in interface VectorialDriver
getShape
in class MemoryShpDriver
index
- index of the geometry of interest
java.io.IOException
public int getShapeCount()
VectorialDriver
getShapeCount
in interface VectorialDriver
getShapeCount
in class MemoryShpDriver
com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#getShapeCount()
public int getShapeType()
VectorialDriver
getShapeType
in interface VectorialDriver
getShapeType
in class MemoryShpDriver
com.iver.cit.gvsig.fmap.drivers.VectorialDriver#getShapeType()
public void initialize() throws java.io.IOException
initialize
in interface VectorialFileDriver
initialize
in class MemoryShpDriver
java.io.IOException
com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#initialize()
public java.awt.geom.Rectangle2D getFullExtent() throws java.io.IOException
getFullExtent
in interface VectorialDriver
getFullExtent
in class MemoryShpDriver
java.io.IOException
com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#getFullExtent()
public boolean accept(java.io.File f)
MemoryShpDriver
accept
in interface VectorialFileDriver
accept
in class MemoryShpDriver
f
- the file of interest
com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#accept(java.io.File)
public java.io.File getDataFile(java.io.File f)
MemoryShpDriver
getDataFile
in interface VectorialFileDriver
getDataFile
in class MemoryShpDriver
com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#getDataFile(java.io.File)
public java.io.File getShxFile(java.io.File f)
getShxFile
in class MemoryShpDriver
f
- a file objects that points to a SHP file
public int getShapeType(int index)
getShapeType()
getShapeType
in interface BoundedShapes
getShapeType
in class MemoryShpDriver
index
- the index of the geometry of interest
public java.io.File getFile()
MemoryShpDriver
getFile
in interface VectorialFileDriver
getFile
in class MemoryShpDriver
public void reload() throws java.io.IOException
reload
in interface VectorialDriver
reload
in class MemoryShpDriver
java.io.IOException
public void initialize(ITableDefinition layerDef)
initialize
in class MemoryShpDriver
layerDef
- the table definitiion to be usedpublic boolean isWritable()
isWritable
in interface VectorialDriver
isWritable
in class MemoryShpDriver
public boolean canAlterTable()
canAlterTable
in class MemoryShpDriver
public boolean isWriteAll()
isWriteAll
in class MemoryShpDriver
public long getHandler()
public void setHandler(long h)
h
- the new handlerpublic java.awt.geom.Rectangle2D getShapeBounds(int index) throws java.io.IOException
getShapeBounds
in interface VectorialDriver
getShapeBounds
in class MemoryShpDriver
index
- the index of the geometry of interest
java.io.IOException
public int[] getIntersectingIndices(java.awt.geom.Rectangle2D rect, int max) throws java.io.IOException
getIntersectingIndices
in interface BoundedShapes
getIntersectingIndices
in class MemoryShpDriver
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 |