com.esri.arcgis.carto
Class MxdServer

java.lang.Object
  extended by com.esri.arcgis.carto.MxdServer
All Implemented Interfaces:
IMxdServer, IMxdServerObjects, IMxdServerQuery, IMxdServerStatus, com.esri.arcgis.interop.RemoteObjRef, Serializable

Deprecated. This class has been replaced by MapServer.

public class MxdServer
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IMxdServer, IMxdServerQuery, IMxdServerObjects, IMxdServerStatus

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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
MxdServer()
          Deprecated. Constructs a MxdServer using ArcGIS Engine.
MxdServer(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
MxdServer theMxdServer = (MxdServer) obj;
 
Method Summary
 void cancel()
          Deprecated. Cancels the current MxdServer operation.
 double computeDistance(String mapName, IPoint fromPoint, IPoint toPoint)
          Deprecated. Computes the distance between two points on the specified map.
 double computeScale(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(Object o)
          Deprecated. Compare this object with another
 IEnvelope exportLayout(IArray mapDescriptors, int dpi, int imageWidth, int imageHeight, IEnvelope pageExtent, String fileType, 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, String fileType, String outputFileName)
          Deprecated. Exports a legend to an image file.
 IEnvelope exportMapImage(IMapDescriptor mapDescriptor, int dpi, int imageWidth, int imageHeight, String fileType, 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, String fileType, 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, String fileType, String outputFileName)
          Deprecated. Exports a scale bar to an image file.
 IArray find(String mapName, String findString, int layerID)
          Deprecated. Returns an array of 'find objects' (that implement the IFindObject interface) that contain the given search string.
 IEnumSpatialBookmark getBookmarks(String mapName)
          Deprecated. The spatial bookmarks saved with the specified map, if any.
static String getClsid()
          Deprecated. getClsid.
 String getDefaultMapName()
          Deprecated. The TOC Information.
 String getFeatureValue(String mapName, int layerID, IFeature feature, String fieldName)
          Deprecated. The value of the specified field for the specified feature.
 ILayer getLayer(String mapName, int layerID)
          Deprecated. The layer specified by the map name and layer ID.
 IArray getLayerDescriptors(String mapName)
          Deprecated. An array of LayerDescriptor objects for a given map name.
 IMap getMap(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(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(String mapName, int layerID)
          Deprecated. The TOC Information.
 int hashCode()
          Deprecated. the hashcode for this object
 IArray identify(String mapName, int layerID, IGeometry shape)
          Deprecated. Returns an array of 'identify objects' (that support the IIdentifyObj interface) at the given location.
 IFeatureCursor queryByLayer(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(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(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
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

MxdServer

public MxdServer()
          throws IOException,
                 UnknownHostException
Deprecated. 
Constructs a MxdServer using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

MxdServer

public MxdServer(Object obj)
          throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
MxdServer theMxdServer = (MxdServer) obj;

Construct a MxdServer using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to MxdServer.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
Deprecated. 
getClsid.


equals

public boolean equals(Object o)
Deprecated. 
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
Deprecated. 
the hashcode for this object

Overrides:
hashCode in class Object

start

public void start(String mxdPath)
           throws IOException,
                  AutomationException
Deprecated. 
Initializes the map server with an mxd file stored at the specified path. The path must be able to be located by the server machine.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
start in interface IMxdServer
Parameters:
mxdPath - The mxdPath (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

startWithData

public void startWithData(IDataset pDataset)
                   throws IOException,
                          AutomationException
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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
startWithData in interface IMxdServer
Parameters:
pDataset - A reference to a com.esri.arcgis.geodatabase.IDataset (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

stop

public void stop()
          throws IOException,
                 AutomationException
Deprecated. 
Clears out all of the map objects in memory. The client must call one of the Start methods again before attempting any other operations.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
stop in interface IMxdServer
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMapDescriptors

public IArray getMapDescriptors()
                         throws IOException,
                                AutomationException
Deprecated. 
An array of MapDescriptor objects, where each map descriptor describes the characteristics of a data frame in the document. The properties of a map descriptor object can be altered in order to draw the map image with different state than the default.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getMapDescriptors in interface IMxdServer
Returns:
A reference to a com.esri.arcgis.system.IArray
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLayerDescriptors

public IArray getLayerDescriptors(String mapName)
                           throws IOException,
                                  AutomationException
Deprecated. 
An array of LayerDescriptor objects for a given map name. Each layer descriptor describes the characteristics of a layer in the map. Default layer properties can be changed to change output.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getLayerDescriptors in interface IMxdServer
Parameters:
mapName - The mapName (in)
Returns:
A reference to a com.esri.arcgis.system.IArray
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBookmarks

public IEnumSpatialBookmark getBookmarks(String mapName)
                                  throws IOException,
                                         AutomationException
Deprecated. 
The spatial bookmarks saved with the specified map, if any.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getBookmarks in interface IMxdServer
Parameters:
mapName - The mapName (in)
Returns:
A reference to a com.esri.arcgis.carto.IEnumSpatialBookmark
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getThumbnail

public Picture getThumbnail()
                     throws IOException,
                            AutomationException
Deprecated. 
The thumbnail image stored with the map document, if any. If the document has no thumbnail stored with it, this method will return E_FAIL and the returned IPictureDisp object will be null.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getThumbnail in interface IMxdServer
Returns:
A reference to a com.esri.arcgis.support.ms.stdole.Picture (A com.esri.arcgis.support.ms.stdole.Picture COM typedef)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMapPicture

public Picture getMapPicture(IMapDescriptor mapDescriptor,
                             int dpi,
                             tagRECT pixelBounds)
                      throws IOException,
                             AutomationException
Deprecated. 
Generates a picture of the map, based on the given map descriptor, and returns the image as an IPictureDisp. If pMapDescriptor is null, it draws a picture of the default map at the default extent.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getMapPicture in interface IMxdServer
Parameters:
mapDescriptor - A reference to a com.esri.arcgis.carto.IMapDescriptor (in)
dpi - The dpi (in)
pixelBounds - A Structure: com.esri.arcgis.system.tagRECT (in)
Returns:
A reference to a com.esri.arcgis.support.ms.stdole.Picture (A com.esri.arcgis.support.ms.stdole.Picture COM typedef)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMapBitmapHandle

public int getMapBitmapHandle(IMapDescriptor mapDescriptor,
                              int dpi,
                              tagRECT pixelBounds)
                       throws IOException,
                              AutomationException
Deprecated. 
Generates a picture of the map, based on the given map descriptor, and returns an HBITMAP handle to the resulting image. If you call this function, you absolutely MUST call ReleaseBitmapHandle() with the returned bitmap handle.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getMapBitmapHandle in interface IMxdServer
Parameters:
mapDescriptor - A reference to a com.esri.arcgis.carto.IMapDescriptor (in)
dpi - The dpi (in)
pixelBounds - A Structure: com.esri.arcgis.system.tagRECT (in)
Returns:
The hBmp (A COM typedef)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

releaseBitmapHandle

public void releaseBitmapHandle(int hBmp)
                         throws IOException,
                                AutomationException
Deprecated. 
Companion function to GetBitmapHandle(). Releases the bitmap handle that is returned from that function.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
releaseBitmapHandle in interface IMxdServer
Parameters:
hBmp - The hBmp (A COM typedef) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exportMapImage

public IEnvelope exportMapImage(IMapDescriptor mapDescriptor,
                                int dpi,
                                int imageWidth,
                                int imageHeight,
                                String fileType,
                                String outputFileName)
                         throws IOException,
                                AutomationException
Deprecated. 
Generates an image of the map, based on the given map descriptor, and writes the image to the specified file on disk. Supported file types are: 'bmp', 'jpg', 'tif', 'png'/'png8', 'png24', 'emf' and 'pcx'.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
exportMapImage in interface IMxdServer
Parameters:
mapDescriptor - 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)
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exportLayout

public IEnvelope exportLayout(IArray mapDescriptors,
                              int dpi,
                              int imageWidth,
                              int imageHeight,
                              IEnvelope pageExtent,
                              String fileType,
                              String outputFileName)
                       throws IOException,
                              AutomationException
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. Supported Image types are: 'bmp', 'jpg', 'tif', 'png', 'emf', 'eps', 'pdf', 'ai', 'pcx'.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
exportLayout in interface IMxdServer
Parameters:
mapDescriptors - 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)
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exportLegend

public void exportLegend(ILegend legend,
                         IMapDescriptor mapDescriptor,
                         int dpi,
                         int imageWidth,
                         int imageHeight,
                         IColor backgroundColor,
                         String fileType,
                         String outputFileName)
                  throws IOException,
                         AutomationException
Deprecated. 
Exports a legend to an image file. The client can create the pLegend object and set its desired properties appropriately. If pLegend is null, a default legend for the default map will be generated.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
exportLegend in interface IMxdServer
Parameters:
legend - 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)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exportScaleBar

public void exportScaleBar(IScaleBar scalebar,
                           int mapImageWidthPixels,
                           int dpi,
                           int imageWidth,
                           int imageHeight,
                           IColor backgroundColor,
                           String fileType,
                           String outputFileName)
                    throws IOException,
                           AutomationException
Deprecated. 
Exports a scale bar to an image file. The client can create the pScaleBar object and set its desired properties appropriately. If pScaleBar is null, a default scale bar will be generated for the default map.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
exportScaleBar in interface IMxdServer
Parameters:
scalebar - 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)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exportNorthArrow

public void exportNorthArrow(INorthArrow arrow,
                             int dpi,
                             int imageWidth,
                             int imageHeight,
                             IColor backgroundColor,
                             String fileType,
                             String outputFileName)
                      throws IOException,
                             AutomationException
Deprecated. 
Exports a north arrow to an image file. The client can create the pArrow object and set its desired properties appropriately. If pArrow is null, a default north arrow will be generated for the default map.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
exportNorthArrow in interface IMxdServer
Parameters:
arrow - 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)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTOCInfo

public IArray getTOCInfo(String mapName,
                         int layerID)
                  throws IOException,
                         AutomationException
Deprecated. 
The TOC Information.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getTOCInfo in interface IMxdServer
Parameters:
mapName - The mapName (in)
layerID - The layerID (in)
Returns:
A reference to a com.esri.arcgis.system.IArray
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDefaultMapName

public String getDefaultMapName()
                         throws IOException,
                                AutomationException
Deprecated. 
The TOC Information.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getDefaultMapName in interface IMxdServer
Returns:
The mapName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFeatureValue

public String getFeatureValue(String mapName,
                              int layerID,
                              IFeature feature,
                              String fieldName)
                       throws IOException,
                              AutomationException
Deprecated. 
The value of the specified field for the specified feature.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getFeatureValue in interface IMxdServer
Parameters:
mapName - The mapName (in)
layerID - The layerID (in)
feature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
fieldName - The fieldName (in)
Returns:
The fieldValue
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryFeatures

public IFeatureCursor queryFeatures(String mapName,
                                    int layerID,
                                    IArray queryFilters)
                             throws IOException,
                                    AutomationException
Deprecated. 
Returns a feature cursor for the specified layer based on the given array of query filters. If there is more than one query filter in the array, they are 'ANDed' together.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
queryFeatures in interface IMxdServerQuery
Parameters:
mapName - The mapName (in)
layerID - The layerID (in)
queryFilters - A reference to a com.esri.arcgis.system.IArray (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureCursor
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

identify

public IArray identify(String mapName,
                       int layerID,
                       IGeometry shape)
                throws IOException,
                       AutomationException
Deprecated. 
Returns an array of 'identify objects' (that support the IIdentifyObj interface) at the given location. If layerID is equal to -1, the top-most visible layer with any results is used. If layerID is equal to -2, all visible layers will be queried.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
identify in interface IMxdServerQuery
Parameters:
mapName - The mapName (in)
layerID - The layerID (in)
shape - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Returns:
A reference to a com.esri.arcgis.system.IArray
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRelatedIdentifyObjects

public IArray getRelatedIdentifyObjects(String mapName,
                                        IIdentifyObj identifyObject)
                                 throws IOException,
                                        AutomationException
Deprecated. 
An array of 'identify objects' that are related to the specified identify object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getRelatedIdentifyObjects in interface IMxdServerQuery
Parameters:
mapName - The mapName (in)
identifyObject - A reference to a com.esri.arcgis.carto.IIdentifyObj (in)
Returns:
A reference to a com.esri.arcgis.system.IArray
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

computeScale

public double computeScale(String mapName,
                           int imageWidthPixels,
                           IEnvelope extent)
                    throws IOException,
                           AutomationException
Deprecated. 
Computes the scale of the specified map, at the given map extent, for an image with the given width, specified in pixels.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
computeScale in interface IMxdServerQuery
Parameters:
mapName - The mapName (in)
imageWidthPixels - The imageWidthPixels (in)
extent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Returns:
The scale
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

computeDistance

public double computeDistance(String mapName,
                              IPoint fromPoint,
                              IPoint toPoint)
                       throws IOException,
                              AutomationException
Deprecated. 
Computes the distance between two points on the specified map. The result is in the map units of the specified map.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
computeDistance in interface IMxdServerQuery
Parameters:
mapName - 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)
Returns:
The distance
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

find

public IArray find(String mapName,
                   String findString,
                   int layerID)
            throws IOException,
                   AutomationException
Deprecated. 
Returns an array of 'find objects' (that implement the IFindObject interface) that contain the given search string. If layerID is equal to -1, all layers are searched.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
find in interface IMxdServerQuery
Parameters:
mapName - The mapName (in)
findString - The findString (in)
layerID - The layerID (in)
Returns:
A reference to a com.esri.arcgis.system.IArray
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryByLayer

public IFeatureCursor queryByLayer(String mapName,
                                   int targetLayerID,
                                   int selectionLayerID,
                                   int selectionMethod,
                                   boolean useSelected,
                                   double bufferDistance,
                                   int bufferDistanceUnits)
                            throws IOException,
                                   AutomationException
Deprecated. 
Returns a feature cursor for the specified layer based on the input parameters for the purpose of selecting based on another layer.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
queryByLayer in interface IMxdServerQuery
Parameters:
mapName - 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)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureCursor
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMap

public IMap getMap(String mapName)
            throws IOException,
                   AutomationException
Deprecated. 
The map corresponding to the specified map name. Pass in a blank string for mapName to get the default map. If the mapName does not correspond to any map in the document, E_INVALIDARG is returned and ppMap will be null.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getMap in interface IMxdServerObjects
Parameters:
mapName - The mapName (in)
Returns:
A reference to a com.esri.arcgis.carto.IMap
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLayer

public ILayer getLayer(String mapName,
                       int layerID)
                throws IOException,
                       AutomationException
Deprecated. 
The layer specified by the map name and layer ID. If the mapName is blank, the default map will be assumed. If the map or layer specified is not found, an E_INVALIDARG error will be returned.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getLayer in interface IMxdServerObjects
Parameters:
mapName - The mapName (in)
layerID - The layerID (in)
Returns:
A reference to a com.esri.arcgis.carto.ILayer
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPageLayout

public IPageLayout getPageLayout()
                          throws IOException,
                                 AutomationException
Deprecated. 
The page layout object for the current map document.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getPageLayout in interface IMxdServerObjects
Returns:
A reference to a com.esri.arcgis.carto.IPageLayout
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

cancel

public void cancel()
            throws IOException,
                   AutomationException
Deprecated. 
Cancels the current MxdServer operation.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
cancel in interface IMxdServerStatus
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.