|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.terraserver.TerraserverDataSource
Allows the retrieval of image data from terraserver.
Field Summary | |
static int |
DOQ
|
static int |
DRG
|
java.lang.String |
myDiskCache
Location of the disk cache. |
static int |
TILE_HEIGHT
|
static int |
TILE_WIDTH
|
Constructor Summary | |
TerraserverDataSource()
Creates new TerraserverDataSource |
Method Summary | |
void |
addDataSourceListener(DataSourceListener inDataSourceListener)
Adds a datasource listener to this datasource. |
void |
commit()
Update Terraserver, .... |
void |
delete(Record inRecord)
Delete data from Terraserver, .... |
int |
getColor(double inX,
double inY,
int inUTMZone,
int inResolution,
int inScaleFactor,
TerraserverPerformanceLog inLog)
returns the color of the pixel at the given location in UTM coordinates. |
java.lang.String |
getDiskCache()
Return the location on the disk where the caching of tiles should take place |
static int[] |
getDOQResolutions()
Retrieve the list of valid resolutions |
static int[] |
getDRGResolutions()
Retrieve the list of valid resolutions |
Envelope |
getEnvelope()
Returns the bounding rectangle of all the shapes in the shape file. |
Filter |
getFilter()
Terraserver datasource does not use filters, always returns null. |
Projection |
getFromProjection()
Gets the projection to use to convert from the storage media, source projection. |
int |
getImageHeight()
Return the height of the image to generate |
int |
getImageType()
Return the type of image to retrieve, choices are DOQ, or DRG |
int |
getImageWidth()
Return the width of the image to generate |
int |
getMaxRetrySeconds()
Get the Maximum retry time. |
int |
getMemoryCache()
Return the number of tiles to keep in memory. |
java.lang.String |
getName()
Return the name of this datasource for display to the user. |
Node |
getNode()
Get the configuration information for this data source |
int |
getOptimization()
Retrieve the optimization level for this image |
Style |
getStyle()
Get the style to use with this datasource. |
Projection |
getToProjection()
Return the projection this data source is to project to. |
java.lang.String |
getURLBase()
Returns the URL location of the tile.asp script on terraserver |
void |
insert(Record inRecord)
Update Terraserver, .... |
boolean |
isUpdateable()
Determines if this datasource is updateable. |
void |
load(java.util.Properties inProperties)
Initialize the data source from the properties. |
GISDataset |
readDataset()
Reading all data from terraserver is not an option, nothing is returned. |
GISDataset |
readDataset(Envelope inEnvelope)
Reads only the items from the datasource that are within the envelope. |
void |
removeDataSourceListener(DataSourceListener inDataSourceListener)
Removes the datasource lisener from this datasource. |
void |
rollback()
Update Terraserver, .... |
void |
setDiskCache(java.lang.String inDirectory)
Set the location on the disk where the caching of tiles should take place |
void |
setFilter(Filter inFilter)
Terraserver datasource does not use filters, nothing is done with these. |
void |
setFromProjection(Projection inProjection)
Sets the projection to use to convert from the storage media, source projection. |
void |
setImageHeight(int inHeight)
Set the height of the image. |
void |
setImageType(int inImageType)
Set the type of image to retrieve, choices are DOQ, or DRG |
void |
setImageWidth(int inWidth)
Set the width of the image. |
void |
setMaxRetrySeconds(int inSeconds)
Set the Maximum retry time. |
void |
setMemoryCache(int inMemoryCache)
Set the number of tiles to keep in memory. |
void |
setName(java.lang.String inName)
Set the name of this datasource for display purposes. |
void |
setNode(Node inNode)
Set the configuration information for this data source |
void |
setOptimization(int inOptimize)
Set the optimization level for this image |
void |
setPerformanceOutputStream(java.io.PrintStream inOutputStream)
|
void |
setResolution(int inResolution)
Set the resolution to use. |
void |
setToProjection(Projection inProjection,
boolean inCacheProjected)
Allows another projection to be used to convert to the screen projection. |
void |
setURLBase(java.lang.String inURLBase)
Sets the URL location of the tile.asp script on terraserver |
void |
update(Record inRecord)
Update Terraserver, .... |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TILE_WIDTH
public static final int TILE_HEIGHT
public static final int DOQ
public static final int DRG
public java.lang.String myDiskCache
Constructor Detail |
public TerraserverDataSource()
Method Detail |
public void setPerformanceOutputStream(java.io.PrintStream inOutputStream)
public static int[] getDOQResolutions()
public static int[] getDRGResolutions()
public int getImageType()
public void setImageType(int inImageType)
public void setResolution(int inResolution) throws java.lang.Exception
java.lang.Exception
public void setMaxRetrySeconds(int inSeconds)
public int getMaxRetrySeconds()
public java.lang.String getName()
getName
in interface DataSource
public void setName(java.lang.String inName)
setName
in interface DataSource
public void setFromProjection(Projection inProjection) throws java.lang.Exception
setFromProjection
in interface DataSource
java.lang.Exception
public Projection getFromProjection()
DataSource
getFromProjection
in interface DataSource
public void setToProjection(Projection inProjection, boolean inCacheProjected) throws java.lang.Exception
setToProjection
in interface DataSource
java.lang.Exception
public Projection getToProjection()
getToProjection
in interface DataSource
public void setImageWidth(int inWidth)
setImageWidth
in interface RasterDatasource
public int getImageWidth()
public void setImageHeight(int inHeight)
setImageHeight
in interface RasterDatasource
public int getImageHeight()
public void setOptimization(int inOptimize)
public int getOptimization()
public Envelope getEnvelope() throws java.lang.Exception
getEnvelope
in interface DataSource
java.lang.Exception
public void update(Record inRecord) throws java.lang.Exception
update
in interface DataSource
java.lang.Exception
public void commit() throws java.lang.Exception
commit
in interface DataSource
java.lang.Exception
public void delete(Record inRecord) throws java.lang.Exception
delete
in interface DataSource
java.lang.Exception
public void insert(Record inRecord) throws java.lang.Exception
insert
in interface DataSource
java.lang.Exception
public void rollback() throws java.lang.Exception
rollback
in interface DataSource
java.lang.Exception
public boolean isUpdateable()
isUpdateable
in interface DataSource
public GISDataset readDataset() throws java.lang.Exception
readDataset
in interface DataSource
java.lang.Exception
public GISDataset readDataset(Envelope inEnvelope) throws java.lang.Exception
readDataset
in interface DataSource
java.lang.Exception
public void addDataSourceListener(DataSourceListener inDataSourceListener)
addDataSourceListener
in interface DataSource
public void removeDataSourceListener(DataSourceListener inDataSourceListener)
removeDataSourceListener
in interface DataSource
public void load(java.util.Properties inProperties)
public java.lang.String getURLBase()
public void setURLBase(java.lang.String inURLBase)
public int getColor(double inX, double inY, int inUTMZone, int inResolution, int inScaleFactor, TerraserverPerformanceLog inLog) throws java.net.MalformedURLException
java.net.MalformedURLException
public void setMemoryCache(int inMemoryCache)
public int getMemoryCache()
public void setDiskCache(java.lang.String inDirectory)
public java.lang.String getDiskCache()
public Node getNode()
getNode
in interface DataSource
public void setNode(Node inNode) throws java.lang.Exception
setNode
in interface DataSource
java.lang.Exception
public void setFilter(Filter inFilter)
setFilter
in interface DataSource
public Filter getFilter()
getFilter
in interface DataSource
public Style getStyle()
getStyle
in interface DataSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |