|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.carto.MxdServer
MapServer.
The MxdServer component provides programmatic access to the contents of a map document on disk, and creates images of the map contents based on user requests. Designed for use in building map-based web services and web applications.
| Constructor Summary | |
MxdServer()
Deprecated. Constructs a MxdServer using ArcGIS Engine. |
|
MxdServer(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. |
|
| Method Summary | |
void |
cancel()
Deprecated. Cancels the current MxdServer operation. |
double |
computeDistance(java.lang.String mapName,
IPoint fromPoint,
IPoint toPoint)
Deprecated. Computes the distance between two points on the specified map. |
double |
computeScale(java.lang.String mapName,
int imageWidthPixels,
IEnvelope extent)
Deprecated. Computes the scale of the specified map, at the given map extent, for an image with the given width, specified in pixels. |
boolean |
equals(java.lang.Object o)
Deprecated. Compare this object with another |
IEnvelope |
exportLayout(IArray mapDescriptors,
int dpi,
int imageWidth,
int imageHeight,
IEnvelope pageExtent,
java.lang.String fileType,
java.lang.String outputFileName)
Deprecated. Generates an image of the layout, based on the given array of map descriptors, and writes the image to a specified file on disk. |
void |
exportLegend(ILegend legend,
IMapDescriptor mapDescriptor,
int dpi,
int imageWidth,
int imageHeight,
IColor backgroundColor,
java.lang.String fileType,
java.lang.String outputFileName)
Deprecated. Exports a legend to an image file. |
IEnvelope |
exportMapImage(IMapDescriptor mapDescriptor,
int dpi,
int imageWidth,
int imageHeight,
java.lang.String fileType,
java.lang.String outputFileName)
Deprecated. Generates an image of the map, based on the given map descriptor, and writes the image to the specified file on disk. |
void |
exportNorthArrow(INorthArrow arrow,
int dpi,
int imageWidth,
int imageHeight,
IColor backgroundColor,
java.lang.String fileType,
java.lang.String outputFileName)
Deprecated. Exports a north arrow to an image file. |
void |
exportScaleBar(IScaleBar scalebar,
int mapImageWidthPixels,
int dpi,
int imageWidth,
int imageHeight,
IColor backgroundColor,
java.lang.String fileType,
java.lang.String outputFileName)
Deprecated. Exports a scale bar to an image file. |
IArray |
find(java.lang.String mapName,
java.lang.String findString,
int layerID)
Deprecated. Returns an array of 'find objects' (that implement the IFindObject interface) that contain the given search string. |
IMxdServer |
getAsIMxdServer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IMxdServerObjects |
getAsIMxdServerObjects()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IMxdServerQuery |
getAsIMxdServerQuery()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IMxdServerStatus |
getAsIMxdServerStatus()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IEnumSpatialBookmark |
getBookmarks(java.lang.String mapName)
Deprecated. The spatial bookmarks saved with the specified map, if any. |
static java.lang.String |
getClsid()
Deprecated. |
java.lang.String |
getDefaultMapName()
Deprecated. The TOC Information. |
java.lang.String |
getFeatureValue(java.lang.String mapName,
int layerID,
IFeature feature,
java.lang.String fieldName)
Deprecated. The value of the specified field for the specified feature. |
ILayer |
getLayer(java.lang.String mapName,
int layerID)
Deprecated. The layer specified by the map name and layer ID. |
IArray |
getLayerDescriptors(java.lang.String mapName)
Deprecated. An array of LayerDescriptor objects for a given map name. |
IMap |
getMap(java.lang.String mapName)
Deprecated. The map corresponding to the specified map name. |
int |
getMapBitmapHandle(IMapDescriptor mapDescriptor,
int dpi,
tagRECT pixelBounds)
Deprecated. Generates a picture of the map, based on the given map descriptor, and returns an HBITMAP handle to the resulting image. |
IArray |
getMapDescriptors()
Deprecated. An array of MapDescriptor objects, where each map descriptor describes the characteristics of a data frame in the document. |
Picture |
getMapPicture(IMapDescriptor mapDescriptor,
int dpi,
tagRECT pixelBounds)
Deprecated. Generates a picture of the map, based on the given map descriptor, and returns the image as an IPictureDisp. |
IPageLayout |
getPageLayout()
Deprecated. The page layout object for the current map document. |
IArray |
getRelatedIdentifyObjects(java.lang.String mapName,
IIdentifyObj identifyObject)
Deprecated. An array of 'identify objects' that are related to the specified identify object. |
Picture |
getThumbnail()
Deprecated. The thumbnail image stored with the map document, if any. |
IArray |
getTOCInfo(java.lang.String mapName,
int layerID)
Deprecated. The TOC Information. |
int |
hashCode()
Deprecated. the hashcode for this object |
IArray |
identify(java.lang.String mapName,
int layerID,
IGeometry shape)
Deprecated. Returns an array of 'identify objects' (that support the IIdentifyObj interface) at the given location. |
IFeatureCursor |
queryByLayer(java.lang.String mapName,
int targetLayerID,
int selectionLayerID,
int selectionMethod,
boolean useSelected,
double bufferDistance,
int bufferDistanceUnits)
Deprecated. Returns a feature cursor for the specified layer based on the input parameters for the purpose of selecting based on another layer. |
IFeatureCursor |
queryFeatures(java.lang.String mapName,
int layerID,
IArray queryFilters)
Deprecated. Returns a feature cursor for the specified layer based on the given array of query filters. |
void |
releaseBitmapHandle(int hBmp)
Deprecated. Companion function to GetBitmapHandle(). |
void |
start(java.lang.String mxdPath)
Deprecated. Initializes the map server with an mxd file stored at the specified path. |
void |
startWithData(IDataset pDataset)
Deprecated. An alternative to calling Start() with a document name, this method synthesizes a map document with a single layer based on the given IDataset object, and initializes the map server for processing. |
void |
stop()
Deprecated. Clears out all of the map objects in memory. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MxdServer()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems
public MxdServer(java.lang.Object obj)
throws java.io.IOException
obj to MxdServer. MxdServer theMxdServer = (MxdServer) obj;
obj - an object returned from ArcGIS Engine or Server
java.io.IOException - if there are interop problems| Method Detail |
public static java.lang.String getClsid()
public IMxdServer getAsIMxdServer()
public IMxdServerQuery getAsIMxdServerQuery()
public IMxdServerObjects getAsIMxdServerObjects()
public IMxdServerStatus getAsIMxdServerStatus()
public boolean equals(java.lang.Object o)
public int hashCode()
public void start(java.lang.String mxdPath)
throws java.io.IOException,
AutomationException
IMxdServer
start in interface IMxdServermxdPath - The mxdPath (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void startWithData(IDataset pDataset)
throws java.io.IOException,
AutomationException
IMxdServer
startWithData in interface IMxdServerpDataset - A reference to a com.esri.arcgis.geodatabase.IDataset (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void stop()
throws java.io.IOException,
AutomationException
IMxdServer
stop in interface IMxdServerjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray getMapDescriptors()
throws java.io.IOException,
AutomationException
IMxdServer
getMapDescriptors in interface IMxdServerjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray getLayerDescriptors(java.lang.String mapName)
throws java.io.IOException,
AutomationException
IMxdServer
getLayerDescriptors in interface IMxdServermapName - The mapName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumSpatialBookmark getBookmarks(java.lang.String mapName)
throws java.io.IOException,
AutomationException
IMxdServer
getBookmarks in interface IMxdServermapName - The mapName (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Picture getThumbnail()
throws java.io.IOException,
AutomationException
IMxdServer
getThumbnail in interface IMxdServerjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Picture getMapPicture(IMapDescriptor mapDescriptor,
int dpi,
tagRECT pixelBounds)
throws java.io.IOException,
AutomationException
IMxdServer
getMapPicture in interface IMxdServermapDescriptor - A reference to a com.esri.arcgis.carto.IMapDescriptor (in)dpi - The dpi (in)pixelBounds - A Structure: com.esri.arcgis.display.tagRECT (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMapBitmapHandle(IMapDescriptor mapDescriptor,
int dpi,
tagRECT pixelBounds)
throws java.io.IOException,
AutomationException
IMxdServer
getMapBitmapHandle in interface IMxdServermapDescriptor - A reference to a com.esri.arcgis.carto.IMapDescriptor (in)dpi - The dpi (in)pixelBounds - A Structure: com.esri.arcgis.display.tagRECT (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void releaseBitmapHandle(int hBmp)
throws java.io.IOException,
AutomationException
IMxdServer
releaseBitmapHandle in interface IMxdServerhBmp - The hBmp (A COM typedef) (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnvelope exportMapImage(IMapDescriptor mapDescriptor,
int dpi,
int imageWidth,
int imageHeight,
java.lang.String fileType,
java.lang.String outputFileName)
throws java.io.IOException,
AutomationException
IMxdServer
exportMapImage in interface IMxdServermapDescriptor - A reference to a com.esri.arcgis.carto.IMapDescriptor (in)dpi - The dpi (in)imageWidth - The imageWidth (in)imageHeight - The imageHeight (in)fileType - The fileType (in)outputFileName - The outputFileName (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnvelope exportLayout(IArray mapDescriptors,
int dpi,
int imageWidth,
int imageHeight,
IEnvelope pageExtent,
java.lang.String fileType,
java.lang.String outputFileName)
throws java.io.IOException,
AutomationException
IMxdServer
exportLayout in interface IMxdServermapDescriptors - A reference to a com.esri.arcgis.system.IArray (in)dpi - The dpi (in)imageWidth - The imageWidth (in)imageHeight - The imageHeight (in)pageExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)fileType - The fileType (in)outputFileName - The outputFileName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void exportLegend(ILegend legend,
IMapDescriptor mapDescriptor,
int dpi,
int imageWidth,
int imageHeight,
IColor backgroundColor,
java.lang.String fileType,
java.lang.String outputFileName)
throws java.io.IOException,
AutomationException
IMxdServer
exportLegend in interface IMxdServerlegend - A reference to a com.esri.arcgis.carto.ILegend (in)mapDescriptor - A reference to a com.esri.arcgis.carto.IMapDescriptor (in)dpi - The dpi (in)imageWidth - The imageWidth (in)imageHeight - The imageHeight (in)backgroundColor - A reference to a com.esri.arcgis.display.IColor (in)fileType - The fileType (in)outputFileName - The outputFileName (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void exportScaleBar(IScaleBar scalebar,
int mapImageWidthPixels,
int dpi,
int imageWidth,
int imageHeight,
IColor backgroundColor,
java.lang.String fileType,
java.lang.String outputFileName)
throws java.io.IOException,
AutomationException
IMxdServer
exportScaleBar in interface IMxdServerscalebar - A reference to a com.esri.arcgis.carto.IScaleBar (in)mapImageWidthPixels - The mapImageWidthPixels (in)dpi - The dpi (in)imageWidth - The imageWidth (in)imageHeight - The imageHeight (in)backgroundColor - A reference to a com.esri.arcgis.display.IColor (in)fileType - The fileType (in)outputFileName - The outputFileName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void exportNorthArrow(INorthArrow arrow,
int dpi,
int imageWidth,
int imageHeight,
IColor backgroundColor,
java.lang.String fileType,
java.lang.String outputFileName)
throws java.io.IOException,
AutomationException
IMxdServer
exportNorthArrow in interface IMxdServerarrow - A reference to a com.esri.arcgis.carto.INorthArrow (in)dpi - The dpi (in)imageWidth - The imageWidth (in)imageHeight - The imageHeight (in)backgroundColor - A reference to a com.esri.arcgis.display.IColor (in)fileType - The fileType (in)outputFileName - The outputFileName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IArray getTOCInfo(java.lang.String mapName,
int layerID)
throws java.io.IOException,
AutomationException
IMxdServer
getTOCInfo in interface IMxdServermapName - The mapName (in)layerID - The layerID (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getDefaultMapName()
throws java.io.IOException,
AutomationException
IMxdServer
getDefaultMapName in interface IMxdServerjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getFeatureValue(java.lang.String mapName,
int layerID,
IFeature feature,
java.lang.String fieldName)
throws java.io.IOException,
AutomationException
IMxdServer
getFeatureValue in interface IMxdServermapName - The mapName (in)layerID - The layerID (in)feature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)fieldName - The fieldName (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFeatureCursor queryFeatures(java.lang.String mapName,
int layerID,
IArray queryFilters)
throws java.io.IOException,
AutomationException
IMxdServerQuery
queryFeatures in interface IMxdServerQuerymapName - The mapName (in)layerID - The layerID (in)queryFilters - A reference to a com.esri.arcgis.system.IArray (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IArray identify(java.lang.String mapName,
int layerID,
IGeometry shape)
throws java.io.IOException,
AutomationException
IMxdServerQuery
identify in interface IMxdServerQuerymapName - The mapName (in)layerID - The layerID (in)shape - A reference to a com.esri.arcgis.geometry.IGeometry (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray getRelatedIdentifyObjects(java.lang.String mapName,
IIdentifyObj identifyObject)
throws java.io.IOException,
AutomationException
IMxdServerQuery
getRelatedIdentifyObjects in interface IMxdServerQuerymapName - The mapName (in)identifyObject - A reference to a com.esri.arcgis.carto.IIdentifyObj (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public double computeScale(java.lang.String mapName,
int imageWidthPixels,
IEnvelope extent)
throws java.io.IOException,
AutomationException
IMxdServerQuery
computeScale in interface IMxdServerQuerymapName - The mapName (in)imageWidthPixels - The imageWidthPixels (in)extent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double computeDistance(java.lang.String mapName,
IPoint fromPoint,
IPoint toPoint)
throws java.io.IOException,
AutomationException
IMxdServerQuery
computeDistance in interface IMxdServerQuerymapName - The mapName (in)fromPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)toPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IArray find(java.lang.String mapName,
java.lang.String findString,
int layerID)
throws java.io.IOException,
AutomationException
IMxdServerQuery
find in interface IMxdServerQuerymapName - The mapName (in)findString - The findString (in)layerID - The layerID (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFeatureCursor queryByLayer(java.lang.String mapName,
int targetLayerID,
int selectionLayerID,
int selectionMethod,
boolean useSelected,
double bufferDistance,
int bufferDistanceUnits)
throws java.io.IOException,
AutomationException
IMxdServerQuery
queryByLayer in interface IMxdServerQuerymapName - The mapName (in)targetLayerID - The targetLayerID (in)selectionLayerID - The selectionLayerID (in)selectionMethod - A com.esri.arcgis.carto.esriLayerSelectionMethod constant (in)useSelected - The useSelected (in)bufferDistance - The bufferDistance (in)bufferDistanceUnits - A com.esri.arcgis.system.esriUnits constant (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IMap getMap(java.lang.String mapName)
throws java.io.IOException,
AutomationException
IMxdServerObjects
getMap in interface IMxdServerObjectsmapName - The mapName (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILayer getLayer(java.lang.String mapName,
int layerID)
throws java.io.IOException,
AutomationException
IMxdServerObjects
getLayer in interface IMxdServerObjectsmapName - The mapName (in)layerID - The layerID (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPageLayout getPageLayout()
throws java.io.IOException,
AutomationException
IMxdServerObjects
getPageLayout in interface IMxdServerObjectsAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void cancel()
throws java.io.IOException,
AutomationException
IMxdServerStatus
cancel in interface IMxdServerStatusjava.io.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 | |||||||||