|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 problemspublic 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 problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
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.public ICacheStorageInfo getCacheStorageInfo() throws IOException, AutomationException
getCacheStorageInfo
in interface IMapCooker3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCacheStorageInfoByRef(ICacheStorageInfo ppInfo) throws IOException, AutomationException
setCacheStorageInfoByRef
in interface IMapCooker3
ppInfo
- 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 IMapCooker3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCacheDatasetInfoByRef(ICacheDatasetInfo ppInfo) throws IOException, AutomationException
setCacheDatasetInfoByRef
in interface IMapCooker3
ppInfo
- 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 IMapCooker3
pCacheInfo
- 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 IMapCooker3
pMapOrMapServerInfo
- 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 |