|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.ImageCooker
public class ImageCooker
ImageCooker Class.
Constructor Summary | |
---|---|
ImageCooker()
Constructs a ImageCooker using ArcGIS Engine. |
|
ImageCooker(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ImageCooker theImageCooker = (ImageCooker) obj; |
Method Summary | |
---|---|
void |
addCachedLayers(IMap pMap)
Adds all cached layers in the map cache. |
void |
addLayer(String name,
ILayer pLayer)
Adds a layer to the map cache. |
void |
clear(IEnvelope pExtent,
ITrackCancel pTrackCancel)
Clears cache tiles with a given extent. |
void |
clear(ILayer pLayer,
IEnvelope pExtent)
Clears cache for a given layer within a given extent. |
void |
clearAll()
Clears cache for all layers. |
void |
connect(String location,
IImageServer pImageServer)
Connects an image server object to its cache location. |
void |
connect(String location,
String name,
IMap pMap)
Connects to a given map and its cache. |
void |
delete()
Deletes map service cache directory. |
void |
deleteByExtent(IMap pMap,
ILayer pLayer,
IEnvelope pExtent,
ILongArray pLevels,
ITrackCancel pTrackCancel)
Deletes cache for a given layer within a given extent. |
void |
draw(ILayer pLayer,
IDisplay pDisplay,
ITrackCancel pTrackCancel)
Draws a given layer to the specified display. |
boolean |
equals(Object o)
Compare this object with another |
void |
exit()
Exits the map cache generator host process. |
void |
generate(IMap pMap,
ILayer pLayer,
IDisplay pDisplay,
ITrackCancel pTrackCancel)
Fully generates cache for a given layer. |
String |
getCacheDirectory(ILayer pLayer)
Gets cache directory for a given layer. |
void |
getCacheDirectory(String[] pCacheDir)
Gets the cache directory/location. |
static String |
getClsid()
getClsid. |
IEnvelope |
getExtent()
The map cache extent. |
String |
getFormat()
The tile cache format. |
double |
getMaximumImageCellsize()
The maximum source image cellsize below which data are available. |
int |
getMaxTileCount()
The maximum number of map tiles to be generated. |
int |
getNumLevels()
The number of map cache levels. |
String |
getPath()
The map cache path. |
IName |
getServerObjectName()
The ArcGIS server object to run the image cooker. |
void |
getStatusTileCount(int[] pTileCount)
number of tiles processed in the current job |
int |
getThreadCount()
The number of Image Cooker instances for building tile cache. |
byte[] |
getTile(ILayer pLayer,
int level,
int row,
int column)
Gets a tile for a given tile location from a given layer. |
byte[] |
getTile(int level,
int row,
int column)
Gets a tile at a given LOD, and column and row location. |
ITileCacheInfo |
getTileCacheInfo()
The tile cache info. |
ITileImageInfo |
getTileImageInfo()
The map cache tile image info. |
boolean |
hasCache()
Indicates if there is any cache. |
int |
hashCode()
the hashcode for this object |
boolean |
hasLayerCache(ILayer pLayer)
Indicates if there is a cache for a given layer. |
boolean |
isAntialiasing()
Indicates if antialiasing should be used. |
boolean |
isCacheOnDemand()
Indicates if the service is cached on demand. |
void |
putTile(ILayer pLayer,
int level,
int row,
int column,
byte[] ppTile)
Puts a tile for a given tile location for a given layer. |
void |
putTile(int level,
int row,
int column,
byte[] ppTile)
Puts a tile at a given LOD, and column and row location. |
void |
putTilePosition(int level,
int row,
int column)
Sets the current map tile position. |
void |
queryTilePosition(int[] pLevel,
int[] pRow,
int[] pColumn)
Queries for the current map tile position. |
void |
setAntialiasing(boolean pAntialiasing)
Indicates if antialiasing should be used. |
void |
setCacheOnDemand(boolean pCacheOnDemand)
Indicates if the service is cached on demand. |
void |
setDefaultLODInfos(int numLevels)
Sets default LOD Info for a given number of levels. |
void |
setExtent(IEnvelope ppExtent)
The map cache extent. |
void |
setFormat(String pFormat)
The tile cache format. |
void |
setMaximumImageCellsize(double pMaxPS)
The maximum source image cellsize below which data are available. |
void |
setMaxTileCount(int pNumTiles)
The maximum number of map tiles to be generated. |
void |
setPath(String pPath)
The map cache path. |
void |
setServerObjectNameByRef(IName ppName)
The ArcGIS server object to run the image cooker. |
void |
setThreadCount(int pThreadCount)
The number of Image Cooker instances for building tile cache. |
void |
setTileCacheInfoByRef(ITileCacheInfo ppCacheInfo)
The tile cache info. |
void |
setTileImageInfoByRef(ITileImageInfo ppInfo)
The map cache tile image info. |
void |
snap(IDisplay pDisplay,
IEnvelope pExtent)
Snaps a view extent to one of map cache levels. |
void |
update(IImageServer pImageServer,
IEnvelope pExtent,
ILongArray pLevels,
int updateMode,
ITrackCancel pTrackCancel)
Updates cache within a given extent. |
void |
update(IMap pMap,
ILayer pLayer,
IDisplay pDisplay,
IEnvelope pExtent,
ILongArray pLevels,
int updateMode,
ITrackCancel pTrackCancel)
Updates cache for a given layer within a given extent. |
void |
updateByGeometry(IImageServer pImageServer,
IGeometry pGeometry,
ILongArray pLevels,
int updateMode,
ITrackCancel pTrackCancel)
Updates cache within an area of interest defined by a given geometry. |
void |
updateByGeometry(IMap pMap,
ILayer pLayer,
IDisplay pDisplay,
IGeometry pGeometry,
ILongArray pLevels,
int updateMode,
ITrackCancel pTrackCancel)
Deletes cache for a given layer within a given extent. |
void |
updateMapServerCacheScales(IDoubleArray pScales)
Updates Map Server's Cache Scales. |
void |
writeTilingScheme(ITileCacheInfo pCacheInfo,
ITileImageInfo pTileImageInfo,
String cacheDir,
String layerName)
Writes the tiling scheme for the service. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public ImageCooker() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic ImageCooker(Object obj) throws IOException
ImageCooker theImageCooker = (ImageCooker) obj;
obj
to ImageCooker
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void connect(String location, IImageServer pImageServer) throws IOException, AutomationException
connect
in interface IImageCooker
location
- The location (in)pImageServer
- A reference to a com.esri.arcgis.carto.IImageServer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clear(IEnvelope pExtent, ITrackCancel pTrackCancel) throws IOException, AutomationException
clear
in interface IImageCooker
pExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getTile(int level, int row, int column) throws IOException, AutomationException
getTile
in interface IImageCooker
level
- The level (in)row
- The row (in)column
- The column (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void putTile(int level, int row, int column, byte[] ppTile) throws IOException, AutomationException
putTile
in interface IImageCooker
level
- The level (in)row
- The row (in)column
- The column (in)ppTile
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getCacheDirectory(String[] pCacheDir) throws IOException, AutomationException
getCacheDirectory
in interface IImageCooker
pCacheDir
- The pCacheDir (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void update(IImageServer pImageServer, IEnvelope pExtent, ILongArray pLevels, int updateMode, ITrackCancel pTrackCancel) throws IOException, AutomationException
update
in interface IImageCooker
pImageServer
- A reference to a com.esri.arcgis.carto.IImageServer (in)pExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)pLevels
- A reference to a com.esri.arcgis.system.ILongArray (in)updateMode
- A com.esri.arcgis.carto.esriMapCacheUpdateMode constant (in)pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void updateByGeometry(IImageServer pImageServer, IGeometry pGeometry, ILongArray pLevels, int updateMode, ITrackCancel pTrackCancel) throws IOException, AutomationException
updateByGeometry
in interface IImageCooker
pImageServer
- A reference to a com.esri.arcgis.carto.IImageServer (in)pGeometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)pLevels
- A reference to a com.esri.arcgis.system.ILongArray (in)updateMode
- A com.esri.arcgis.carto.esriMapCacheUpdateMode constant (in)pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getThreadCount() throws IOException, AutomationException
getThreadCount
in interface IImageCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setThreadCount(int pThreadCount) throws IOException, AutomationException
setThreadCount
in interface IImageCooker
pThreadCount
- The pThreadCount (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMaximumImageCellsize() throws IOException, AutomationException
getMaximumImageCellsize
in interface IImageCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMaximumImageCellsize(double pMaxPS) throws IOException, AutomationException
setMaximumImageCellsize
in interface IImageCooker
pMaxPS
- The pMaxPS (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName getServerObjectName() throws IOException, AutomationException
getServerObjectName
in interface IImageCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setServerObjectNameByRef(IName ppName) throws IOException, AutomationException
setServerObjectNameByRef
in interface IImageCooker
ppName
- A reference to a com.esri.arcgis.system.IName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getPath() throws IOException, AutomationException
getPath
in interface IMapCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPath(String pPath) throws IOException, AutomationException
setPath
in interface IMapCooker
pPath
- The pPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getExtent() throws IOException, AutomationException
getExtent
in interface IMapCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setExtent(IEnvelope ppExtent) throws IOException, AutomationException
setExtent
in interface IMapCooker
ppExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFormat() throws IOException, AutomationException
getFormat
in interface IMapCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFormat(String pFormat) throws IOException, AutomationException
setFormat
in interface IMapCooker
pFormat
- The pFormat (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isAntialiasing() throws IOException, AutomationException
isAntialiasing
in interface IMapCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAntialiasing(boolean pAntialiasing) throws IOException, AutomationException
setAntialiasing
in interface IMapCooker
pAntialiasing
- The pAntialiasing (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITileCacheInfo getTileCacheInfo() throws IOException, AutomationException
getTileCacheInfo
in interface IMapCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTileCacheInfoByRef(ITileCacheInfo ppCacheInfo) throws IOException, AutomationException
setTileCacheInfoByRef
in interface IMapCooker
ppCacheInfo
- A reference to a com.esri.arcgis.carto.ITileCacheInfo (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getNumLevels() throws IOException, AutomationException
getNumLevels
in interface IMapCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void connect(String location, String name, IMap pMap) throws IOException, AutomationException
connect
in interface IMapCooker
location
- The location (in)name
- The name (in)pMap
- A reference to a com.esri.arcgis.carto.IMap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addCachedLayers(IMap pMap) throws IOException, AutomationException
addCachedLayers
in interface IMapCooker
pMap
- A reference to a com.esri.arcgis.carto.IMap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addLayer(String name, ILayer pLayer) throws IOException, AutomationException
addLayer
in interface IMapCooker
name
- The name (in)pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clear(ILayer pLayer, IEnvelope pExtent) throws IOException, AutomationException
clear
in interface IMapCooker
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)pExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clearAll() throws IOException, AutomationException
clearAll
in interface IMapCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void snap(IDisplay pDisplay, IEnvelope pExtent) throws IOException, AutomationException
snap
in interface IMapCooker
pDisplay
- A reference to a com.esri.arcgis.display.IDisplay (in)pExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void draw(ILayer pLayer, IDisplay pDisplay, ITrackCancel pTrackCancel) throws IOException, AutomationException
draw
in interface IMapCooker
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)pDisplay
- A reference to a com.esri.arcgis.display.IDisplay (in)pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultLODInfos(int numLevels) throws IOException, AutomationException
setDefaultLODInfos
in interface IMapCooker
numLevels
- The numLevels (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void generate(IMap pMap, ILayer pLayer, IDisplay pDisplay, ITrackCancel pTrackCancel) throws IOException, AutomationException
generate
in interface IMapCooker
pMap
- A reference to a com.esri.arcgis.carto.IMap (in)pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)pDisplay
- A reference to a com.esri.arcgis.display.IDisplay (in)pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean hasCache() throws IOException, AutomationException
hasCache
in interface IMapCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean hasLayerCache(ILayer pLayer) throws IOException, AutomationException
hasLayerCache
in interface IMapCooker
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public byte[] getTile(ILayer pLayer, int level, int row, int column) throws IOException, AutomationException
getTile
in interface IMapCooker
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)level
- The level (in)row
- The row (in)column
- The column (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void putTile(ILayer pLayer, int level, int row, int column, byte[] ppTile) throws IOException, AutomationException
putTile
in interface IMapCooker
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)level
- The level (in)row
- The row (in)column
- The column (in)ppTile
- An unsigned byte (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCacheDirectory(ILayer pLayer) throws IOException, AutomationException
getCacheDirectory
in interface IMapCooker
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryTilePosition(int[] pLevel, int[] pRow, int[] pColumn) throws IOException, AutomationException
queryTilePosition
in interface IMapCooker
pLevel
- The pLevel (out: use single element array)pRow
- The pRow (out: use single element array)pColumn
- The pColumn (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void putTilePosition(int level, int row, int column) throws IOException, AutomationException
putTilePosition
in interface IMapCooker
level
- The level (in)row
- The row (in)column
- The column (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMaxTileCount() throws IOException, AutomationException
getMaxTileCount
in interface IMapCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMaxTileCount(int pNumTiles) throws IOException, AutomationException
setMaxTileCount
in interface IMapCooker
pNumTiles
- The pNumTiles (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void exit() throws IOException, AutomationException
exit
in interface IMapCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void update(IMap pMap, ILayer pLayer, IDisplay pDisplay, IEnvelope pExtent, ILongArray pLevels, int updateMode, ITrackCancel pTrackCancel) throws IOException, AutomationException
update
in interface IMapCooker
pMap
- A reference to a com.esri.arcgis.carto.IMap (in)pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)pDisplay
- A reference to a com.esri.arcgis.display.IDisplay (in)pExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)pLevels
- A reference to a com.esri.arcgis.system.ILongArray (in)updateMode
- A com.esri.arcgis.carto.esriMapCacheUpdateMode constant (in)pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void delete() throws IOException, AutomationException
delete
in interface IMapCooker
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITileImageInfo getTileImageInfo() throws IOException, AutomationException
getTileImageInfo
in interface IMapCooker2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTileImageInfoByRef(ITileImageInfo ppInfo) throws IOException, AutomationException
setTileImageInfoByRef
in interface IMapCooker2
ppInfo
- A reference to a com.esri.arcgis.carto.ITileImageInfo (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCacheOnDemand(boolean pCacheOnDemand) throws IOException, AutomationException
setCacheOnDemand
in interface IMapCooker2
pCacheOnDemand
- The pCacheOnDemand (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCacheOnDemand() throws IOException, AutomationException
isCacheOnDemand
in interface IMapCooker2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeTilingScheme(ITileCacheInfo pCacheInfo, ITileImageInfo pTileImageInfo, String cacheDir, String layerName) throws IOException, AutomationException
writeTilingScheme
in interface IMapCooker2
pCacheInfo
- A reference to a com.esri.arcgis.carto.ITileCacheInfo (in)pTileImageInfo
- A reference to a com.esri.arcgis.carto.ITileImageInfo (in)cacheDir
- The cacheDir (in)layerName
- The layerName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void updateMapServerCacheScales(IDoubleArray pScales) throws IOException, AutomationException
updateMapServerCacheScales
in interface IMapCooker2
pScales
- A reference to a com.esri.arcgis.system.IDoubleArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteByExtent(IMap pMap, ILayer pLayer, IEnvelope pExtent, ILongArray pLevels, ITrackCancel pTrackCancel) throws IOException, AutomationException
deleteByExtent
in interface IMapCooker2
pMap
- A reference to a com.esri.arcgis.carto.IMap (in)pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)pExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)pLevels
- A reference to a com.esri.arcgis.system.ILongArray (in)pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void updateByGeometry(IMap pMap, ILayer pLayer, IDisplay pDisplay, IGeometry pGeometry, ILongArray pLevels, int updateMode, ITrackCancel pTrackCancel) throws IOException, AutomationException
updateByGeometry
in interface IMapCooker2
pMap
- A reference to a com.esri.arcgis.carto.IMap (in)pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)pDisplay
- A reference to a com.esri.arcgis.display.IDisplay (in)pGeometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)pLevels
- A reference to a com.esri.arcgis.system.ILongArray (in)updateMode
- A com.esri.arcgis.carto.esriMapCacheUpdateMode constant (in)pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getStatusTileCount(int[] pTileCount) throws IOException, AutomationException
getStatusTileCount
in interface IMapCooker2
pTileCount
- The pTileCount (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |