gistoolkit.datasources.webservice
Class OGCWebServiceDataSource

java.lang.Object
  extended bygistoolkit.datasources.SimpleDataSource
      extended bygistoolkit.datasources.webservice.OGCWebServiceDataSource
All Implemented Interfaces:
DataSource, RasterDatasource

public class OGCWebServiceDataSource
extends SimpleDataSource
implements RasterDatasource

Data source for reading images from an OGC WebMapService.


Field Summary
 
Fields inherited from class gistoolkit.datasources.SimpleDataSource
 
Constructor Summary
OGCWebServiceDataSource()
          Creates new OGCWebServiceDataSource
 
Method Summary
 void connect()
          Connect to the data source
 Layer[] getAvailableLayers()
          Retrieve the available layers
 java.lang.String[] getAvailableMapFormats()
          Retrieve the available map formats
 Layer[] getLayers()
          Retrieve the list of layers
 java.lang.String getName()
          Returns the identifier string for the datasource.
 Node getNode()
          Get the configuration information for this data source
 java.lang.String getService()
          Retrive the name of the service
 java.lang.String getURLBase()
          Retrieve the base URL for reading information from this datasource
 boolean isUpdateable()
          Determines if this datasource is updateable.
 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 setImageHeight(int inHeight)
          Set the height of the image to retrieve.
 void setImageWidth(int inWidth)
          Set the width of the image to retrieve.
 void setLayers(Layer[] inLayers)
          Set the list of layers
 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
 void setSelectedMapFormat(java.lang.String inFormat)
          Set the Selected map format
 void setService(java.lang.String inService)
          set the service name of the service when connecting to an ESRI service
 void setURLBase(java.lang.String inURLBase)
          Set the base URL for reading information from this datasource
 
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, getStyle, 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
 
Methods inherited from interface gistoolkit.datasources.DataSource
addDataSourceListener, commit, delete, getEnvelope, getFilter, getFromProjection, getStyle, getToProjection, insert, readDataset, readDataset, removeDataSourceListener, rollback, setFilter, setFromProjection, setToProjection, update
 

Constructor Detail

OGCWebServiceDataSource

public OGCWebServiceDataSource()
Creates new OGCWebServiceDataSource

Method Detail

setURLBase

public void setURLBase(java.lang.String inURLBase)
Set the base URL for reading information from this datasource


getURLBase

public java.lang.String getURLBase()
Retrieve the base URL for reading information from this datasource


setService

public void setService(java.lang.String inService)
set the service name of the service when connecting to an ESRI service


getService

public java.lang.String getService()
Retrive the name of the service


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

getName

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

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

getLayers

public Layer[] getLayers()
Retrieve the list of layers


setLayers

public void setLayers(Layer[] inLayers)
Set the list of layers


isUpdateable

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

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

connect

public void connect()
             throws java.lang.Exception
Connect to the data source

Throws:
java.lang.Exception

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

getAvailableLayers

public Layer[] getAvailableLayers()
Retrieve the available layers


setImageWidth

public void setImageWidth(int inWidth)
Set the width of the image to retrieve. The data source can use this information to generate the appropriate rastor shapes. Several shapes may be generated or just one that cover this area. This is just a suggestion.

Specified by:
setImageWidth in interface RasterDatasource

setImageHeight

public void setImageHeight(int inHeight)
Set the height of the image to retrieve. The data source can use this information to generate the appropriate rastor shapes. Several shapes may be generated or just one that cover this area. This is just a suggestion.

Specified by:
setImageHeight in interface RasterDatasource

getAvailableMapFormats

public java.lang.String[] getAvailableMapFormats()
Retrieve the available map formats


setSelectedMapFormat

public void setSelectedMapFormat(java.lang.String inFormat)
Set the Selected map format


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

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