gistoolkit.datasources.seamless
Class SeamlessDataSource

java.lang.Object
  extended bygistoolkit.datasources.SimpleDataSource
      extended bygistoolkit.datasources.seamless.SeamlessDataSource
All Implemented Interfaces:
DataSource

public class SeamlessDataSource
extends SimpleDataSource

Seamless data sources are just a way of indexing a lot of different shapes in an efficient way. The seamless table contains a series of polygons that are then used to retrieve data from the other shape files. The seamless shape file is a shape file that contains two columns. The name column is the location of the shapes that actually exist in that location. The


Field Summary
 
Fields inherited from class gistoolkit.datasources.SimpleDataSource
 
Constructor Summary
SeamlessDataSource()
          Creates new SeamlessDataSource
SeamlessDataSource(java.lang.String inFileName)
          Creates new SeamlessDataSource
 
Method Summary
 java.lang.String getName()
          Returns the identifier string for the datasource.
 Node getNode()
          Get the configuration information for this data source
 Style getStyle()
          Get the style to use with this datasource.
 boolean isUpdateable()
          Determines if this datasource is updateable.
 void load(java.util.Properties inProperties)
          Initialize the data source from the properties.
 Envelope readEnvelope()
          Returns the bounding rectangle of all the shapes in the Data Source.
protected  GISDataset readShapes(Envelope inEnvelope)
          Reads only the objects from the data source that intersect these Envelope.
 void setFileName(java.lang.String inFileName)
          Set the file name of the index file
 void setName(java.lang.String inName)
          Sets an identifier string for the datasource.
 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, getToProjection, getValidShapeTypes, insert, isCachedProjected, projectBackward, projectForward, queryFromCache, readDataset, readDataset, removeDataSourceListener, rollback, setCache, setCached, setFilter, setFromProjection, setProjection, setToProjection, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeamlessDataSource

public SeamlessDataSource()
Creates new SeamlessDataSource


SeamlessDataSource

public SeamlessDataSource(java.lang.String inFileName)
Creates new SeamlessDataSource

Method Detail

setFileName

public void setFileName(java.lang.String inFileName)
Set the file name of the index file


load

public void load(java.util.Properties inProperties)
Initialize the data source from the properties.


getName

public java.lang.String getName()
Returns the identifier string for the datasource.

Specified by:
getName in interface DataSource
Overrides:
getName in class SimpleDataSource

readEnvelope

public Envelope readEnvelope()
                      throws java.lang.Exception
Returns the bounding rectangle of all the shapes in the Data Source.

Specified by:
readEnvelope in class SimpleDataSource
Throws:
java.lang.Exception

setName

public void setName(java.lang.String inName)
Sets an identifier string for the datasource.

Specified by:
setName in interface DataSource
Overrides:
setName in class SimpleDataSource

isUpdateable

public boolean isUpdateable()
Determines if this datasource is updateable.

Specified by:
isUpdateable in interface DataSource
Overrides:
isUpdateable in class SimpleDataSource

getNode

public Node getNode()
Get the configuration information for this data source

Specified by:
getNode in interface DataSource
Overrides:
getNode in class SimpleDataSource

setNode

public void setNode(Node inNode)
             throws java.lang.Exception
Set the configuration information for this data source

Specified by:
setNode in interface DataSource
Overrides:
setNode in class SimpleDataSource
Throws:
java.lang.Exception

readShapes

protected GISDataset readShapes(Envelope inEnvelope)
                         throws java.lang.Exception
Reads only the objects from the data source that intersect these Envelope.

Specified by:
readShapes in class SimpleDataSource
Throws:
java.lang.Exception

getStyle

public Style getStyle()
Get the style to use with this datasource.

Specified by:
getStyle in interface DataSource
Overrides:
getStyle in class SimpleDataSource