proprietary.datasources.ermapper
Class ERMapperDatasource

java.lang.Object
  extended bygistoolkit.datasources.SimpleDataSource
      extended byproprietary.datasources.ermapper.ERMapperDatasource
All Implemented Interfaces:
DataSource, RasterDatasource

public class ERMapperDatasource
extends SimpleDataSource
implements RasterDatasource

Class to allow reading images using the ERMapper wavelet protocol.


Field Summary
 
Fields inherited from class gistoolkit.datasources.SimpleDataSource
 
Constructor Summary
ERMapperDatasource()
          Creates a new instance of ERMapperDatasource
ERMapperDatasource(java.lang.String inLocation)
          Creates a new instance of ERMapperDatasource with the given location.
 
Method Summary
 java.lang.String getFileLocation()
          Get the file or URL where the data source is to draw it's data.
 int getImageHeight()
          Get the height (in pixels) of the image to retrieve.
 int getImageWidth()
          Get the width (in pixels) of the image to retrieve.
 Node getNode()
          Get the configuration information for this layer.
 GISDataset readDataset()
          Reads all the objects from the data source.
 GISDataset readDataset(Envelope inEnvelope)
          Reads only the objects from the data source that intersect these 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 setFileLocation(java.lang.String inLocation)
          Set the file or URL where the data source is to draw it's data.
 void setImageHeight(int inHeight)
          Set the height (in pixels) of the image to retrieve.
 void setImageWidth(int inWidth)
          Set the width (in pixels) of the image to retrieve.
 void setNode(Node inNode)
          Set the configuration information for this layer.
 
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, 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
 
Methods inherited from interface gistoolkit.datasources.DataSource
addDataSourceListener, commit, delete, getEnvelope, getFilter, getFromProjection, getName, getStyle, getToProjection, insert, isUpdateable, removeDataSourceListener, rollback, setFilter, setFromProjection, setName, setToProjection, update
 

Constructor Detail

ERMapperDatasource

public ERMapperDatasource()
Creates a new instance of ERMapperDatasource


ERMapperDatasource

public ERMapperDatasource(java.lang.String inLocation)
Creates a new instance of ERMapperDatasource with the given location.

Method Detail

setImageHeight

public void setImageHeight(int inHeight)
Set the height (in pixels) of the image to retrieve.

Specified by:
setImageHeight in interface RasterDatasource

getImageHeight

public int getImageHeight()
Get the height (in pixels) of the image to retrieve.


setImageWidth

public void setImageWidth(int inWidth)
Set the width (in pixels) of the image to retrieve.

Specified by:
setImageWidth in interface RasterDatasource

getImageWidth

public int getImageWidth()
Get the width (in pixels) of the image to retrieve.


setFileLocation

public void setFileLocation(java.lang.String inLocation)
Set the file or URL where the data source is to draw it's data.


getFileLocation

public java.lang.String getFileLocation()
Get the file or URL where the data source is to draw it's data.


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

readDataset

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

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

readDataset

public GISDataset readDataset()
                       throws java.lang.Exception
Reads all the objects from the data source.

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

readShapes

protected GISDataset readShapes(Envelope inEnvelope)
                         throws java.lang.Exception
This method should return the shapes from the data source

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

getNode

public Node getNode()
Get the configuration information for this layer.

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 layer.

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