|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.MapCooker
public class MapCooker
A map cache generator class.
| Constructor Summary | |
|---|---|
MapCooker()
Constructs a MapCooker using ArcGIS Engine. |
|
MapCooker(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MapCooker theMapCooker = (MapCooker) 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 |
cleanUPState(Object pMapOrMapServerInfo,
Object pLayerOrMapLayerInfo,
IGeometry pGeometry,
ILongArray pLevels,
ITrackCancel pTrackCancel)
Cleans up the state of current caching job. |
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,
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. |
ICacheDatasetInfo |
getCacheDatasetInfo()
The map cache dataset info. |
String |
getCacheDirectory(ILayer pLayer)
Gets cache directory for a given layer. |
ICacheStorageInfo |
getCacheStorageInfo()
The map cache storage info. |
static String |
getClsid()
getClsid. |
IEnvelope |
getExtent()
The map cache extent. |
String |
getFormat()
The tile cache format. |
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. |
void |
getStatusTileCount(int[] pTileCount)
number of tiles processed in the current job |
byte[] |
getTile(ILayer pLayer,
int level,
int row,
int column)
Gets a tile for a given tile location from a given layer. |
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 |
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 |
setCacheDatasetInfoByRef(ICacheDatasetInfo ppInfo)
The map cache dataset info. |
void |
setCacheOnDemand(boolean pCacheOnDemand)
Indicates if the service is cached on demand. |
void |
setCacheStorageInfoByRef(ICacheStorageInfo ppInfo)
The map cache storage info. |
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 |
setMaxTileCount(int pNumTiles)
The maximum number of map tiles to be generated. |
void |
setPath(String pPath)
The map cache path. |
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(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(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. |
void |
writeTilingSchemeEx(ITileCacheInfo pCacheInfo,
ITileImageInfo pTileImageInfo,
ICacheStorageInfo pCacheStorageInfo,
ICacheDatasetInfo pCacheDatasetInfo,
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 MapCooker()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public MapCooker(Object obj)
throws IOException
MapCooker theMapCooker = (MapCooker) obj;
obj to MapCooker.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public String getPath()
throws IOException,
AutomationException
getPath in interface IMapCookerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPath(String pPath)
throws IOException,
AutomationException
setPath in interface IMapCookerpPath - 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 IMapCookerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setExtent(IEnvelope ppExtent)
throws IOException,
AutomationException
setExtent in interface IMapCookerppExtent - 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 IMapCookerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFormat(String pFormat)
throws IOException,
AutomationException
setFormat in interface IMapCookerpFormat - 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 IMapCookerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAntialiasing(boolean pAntialiasing)
throws IOException,
AutomationException
setAntialiasing in interface IMapCookerpAntialiasing - 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 IMapCookerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTileCacheInfoByRef(ITileCacheInfo ppCacheInfo)
throws IOException,
AutomationException
setTileCacheInfoByRef in interface IMapCookerppCacheInfo - 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 IMapCookerIOException - 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 IMapCookerlocation - 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 IMapCookerpMap - 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 IMapCookername - 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 IMapCookerpLayer - 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 IMapCookerIOException - 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 IMapCookerpDisplay - 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 IMapCookerpLayer - 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 IMapCookernumLevels - 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 IMapCookerpMap - 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 IMapCookerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean hasLayerCache(ILayer pLayer)
throws IOException,
AutomationException
hasLayerCache in interface IMapCookerpLayer - 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 IMapCookerpLayer - 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 IMapCookerpLayer - 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 IMapCookerpLayer - 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 IMapCookerpLevel - 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 IMapCookerlevel - 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 IMapCookerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMaxTileCount(int pNumTiles)
throws IOException,
AutomationException
setMaxTileCount in interface IMapCookerpNumTiles - 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 IMapCookerIOException - 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 IMapCookerpMap - 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 IMapCookerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITileImageInfo getTileImageInfo()
throws IOException,
AutomationException
getTileImageInfo in interface IMapCooker2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTileImageInfoByRef(ITileImageInfo ppInfo)
throws IOException,
AutomationException
setTileImageInfoByRef in interface IMapCooker2ppInfo - 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 IMapCooker2pCacheOnDemand - 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 IMapCooker2IOException - 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 IMapCooker2pCacheInfo - 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 IMapCooker2pScales - 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 IMapCooker2pMap - 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 IMapCooker2pMap - 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 IMapCooker2pTileCount - The pTileCount (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ICacheStorageInfo getCacheStorageInfo()
throws IOException,
AutomationException
getCacheStorageInfo in interface IMapCooker3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCacheStorageInfoByRef(ICacheStorageInfo ppInfo)
throws IOException,
AutomationException
setCacheStorageInfoByRef in interface IMapCooker3ppInfo - A reference to a com.esri.arcgis.carto.ICacheStorageInfo (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ICacheDatasetInfo getCacheDatasetInfo()
throws IOException,
AutomationException
getCacheDatasetInfo in interface IMapCooker3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCacheDatasetInfoByRef(ICacheDatasetInfo ppInfo)
throws IOException,
AutomationException
setCacheDatasetInfoByRef in interface IMapCooker3ppInfo - A reference to a com.esri.arcgis.carto.ICacheDatasetInfo (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeTilingSchemeEx(ITileCacheInfo pCacheInfo,
ITileImageInfo pTileImageInfo,
ICacheStorageInfo pCacheStorageInfo,
ICacheDatasetInfo pCacheDatasetInfo,
String cacheDir,
String layerName)
throws IOException,
AutomationException
writeTilingSchemeEx in interface IMapCooker3pCacheInfo - A reference to a com.esri.arcgis.carto.ITileCacheInfo (in)pTileImageInfo - A reference to a com.esri.arcgis.carto.ITileImageInfo (in)pCacheStorageInfo - A reference to a com.esri.arcgis.carto.ICacheStorageInfo (in)pCacheDatasetInfo - A reference to a com.esri.arcgis.carto.ICacheDatasetInfo (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 cleanUPState(Object pMapOrMapServerInfo,
Object pLayerOrMapLayerInfo,
IGeometry pGeometry,
ILongArray pLevels,
ITrackCancel pTrackCancel)
throws IOException,
AutomationException
cleanUPState in interface IMapCooker3pMapOrMapServerInfo - A reference to another Object (IUnknown) (in)pLayerOrMapLayerInfo - A reference to another Object (IUnknown) (in)pGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||