|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.SimpleDataSource
gistoolkit.datasources.shapefile.ReadOnlyShapeFileDataSource
Reads a single shape file.
Field Summary |
Fields inherited from class gistoolkit.datasources.SimpleDataSource |
|
Constructor Summary | |
ReadOnlyShapeFileDataSource()
Creates a new instance of ReadOnlyShapeFileDataSource |
|
ReadOnlyShapeFileDataSource(java.lang.String inFileName)
Creates a new instance of the ReadOnlyShapeFileDataSource with this file as the input. |
Method Summary | |
boolean |
checkDate()
Checks if the file date has changed since the last time we read it, returns true if it is the same. |
Node |
getNode()
Get the configuration information for this data source |
GISDataset |
readDataset(Envelope inEnvelope)
Reads only the objects from the data source that intersect this envelope. |
Envelope |
readEnvelope()
Returns the bounding rectangle of all the shapes in the Data Source. |
protected GISDataset |
readShapes(Envelope inEnvelope)
This method should return the shapes from the data source |
void |
setFileName(java.lang.String inName)
Set the file name for the data source do not include the extension. |
void |
setNode(Node inNode)
Set the configuration information for this data source |
Methods inherited from class gistoolkit.datasources.SimpleDataSource |
addDataSourceListener, clearCache, commit, delete, doCommit, doDelete, doInsert, doRollback, doUpdate, filterDataset, fireCommit, fireDelete, fireInsert, fireRead, fireRollBack, fireUpdate, getCached, getCacheDataset, getCacheEnvelope, getEnvelope, getFilter, getFromProjection, getName, getStyle, getToProjection, getValidShapeTypes, insert, isCachedProjected, isUpdateable, projectBackward, projectForward, queryFromCache, readDataset, removeDataSourceListener, rollback, setCache, setCached, setFilter, setFromProjection, setName, setProjection, setToProjection, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReadOnlyShapeFileDataSource()
public ReadOnlyShapeFileDataSource(java.lang.String inFileName) throws java.io.FileNotFoundException
Method Detail |
public GISDataset readDataset(Envelope inEnvelope) throws java.lang.Exception
readDataset
in interface DataSource
readDataset
in class SimpleDataSource
java.lang.Exception
public boolean checkDate()
public void setFileName(java.lang.String inName) throws java.lang.Exception
java.lang.Exception
public Node getNode()
getNode
in interface DataSource
getNode
in class SimpleDataSource
public void setNode(Node inNode) throws java.lang.Exception
setNode
in interface DataSource
setNode
in class SimpleDataSource
java.lang.Exception
public Envelope readEnvelope() throws java.lang.Exception
readEnvelope
in class SimpleDataSource
java.lang.Exception
protected GISDataset readShapes(Envelope inEnvelope) throws java.lang.Exception
readShapes
in class SimpleDataSource
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |