|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.MxdServer
MapServer
.
public class MxdServer
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(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 |
---|
public MxdServer() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic MxdServer(Object obj) throws IOException
MxdServer theMxdServer = (MxdServer) obj;
obj
to MxdServer
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void start(String mxdPath) throws IOException, AutomationException
start
in interface IMxdServer
mxdPath
- The mxdPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startWithData(IDataset pDataset) throws IOException, AutomationException
startWithData
in interface IMxdServer
pDataset
- A reference to a com.esri.arcgis.geodatabase.IDataset (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void stop() throws IOException, AutomationException
stop
in interface IMxdServer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getMapDescriptors() throws IOException, AutomationException
getMapDescriptors
in interface IMxdServer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getLayerDescriptors(String mapName) throws IOException, AutomationException
getLayerDescriptors
in interface IMxdServer
mapName
- The mapName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumSpatialBookmark getBookmarks(String mapName) throws IOException, AutomationException
getBookmarks
in interface IMxdServer
mapName
- The mapName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Picture getThumbnail() throws IOException, AutomationException
getThumbnail
in interface IMxdServer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Picture getMapPicture(IMapDescriptor mapDescriptor, int dpi, tagRECT pixelBounds) throws IOException, AutomationException
getMapPicture
in interface IMxdServer
mapDescriptor
- A reference to a com.esri.arcgis.carto.IMapDescriptor (in)dpi
- The dpi (in)pixelBounds
- A Structure: com.esri.arcgis.system.tagRECT (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMapBitmapHandle(IMapDescriptor mapDescriptor, int dpi, tagRECT pixelBounds) throws IOException, AutomationException
getMapBitmapHandle
in interface IMxdServer
mapDescriptor
- A reference to a com.esri.arcgis.carto.IMapDescriptor (in)dpi
- The dpi (in)pixelBounds
- A Structure: com.esri.arcgis.system.tagRECT (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void releaseBitmapHandle(int hBmp) throws IOException, AutomationException
releaseBitmapHandle
in interface IMxdServer
hBmp
- The hBmp (A COM typedef) (in)
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, String fileType, String outputFileName) throws IOException, AutomationException
exportMapImage
in interface IMxdServer
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)
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, String fileType, String outputFileName) throws IOException, AutomationException
exportLayout
in interface IMxdServer
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void exportLegend(ILegend legend, IMapDescriptor mapDescriptor, int dpi, int imageWidth, int imageHeight, IColor backgroundColor, String fileType, String outputFileName) throws IOException, AutomationException
exportLegend
in interface IMxdServer
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)
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, String fileType, String outputFileName) throws IOException, AutomationException
exportScaleBar
in interface IMxdServer
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void exportNorthArrow(INorthArrow arrow, int dpi, int imageWidth, int imageHeight, IColor backgroundColor, String fileType, String outputFileName) throws IOException, AutomationException
exportNorthArrow
in interface IMxdServer
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getTOCInfo(String mapName, int layerID) throws IOException, AutomationException
getTOCInfo
in interface IMxdServer
mapName
- The mapName (in)layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDefaultMapName() throws IOException, AutomationException
getDefaultMapName
in interface IMxdServer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFeatureValue(String mapName, int layerID, IFeature feature, String fieldName) throws IOException, AutomationException
getFeatureValue
in interface IMxdServer
mapName
- The mapName (in)layerID
- The layerID (in)feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)fieldName
- The fieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureCursor queryFeatures(String mapName, int layerID, IArray queryFilters) throws IOException, AutomationException
queryFeatures
in interface IMxdServerQuery
mapName
- The mapName (in)layerID
- The layerID (in)queryFilters
- A reference to a com.esri.arcgis.system.IArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray identify(String mapName, int layerID, IGeometry shape) throws IOException, AutomationException
identify
in interface IMxdServerQuery
mapName
- The mapName (in)layerID
- The layerID (in)shape
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getRelatedIdentifyObjects(String mapName, IIdentifyObj identifyObject) throws IOException, AutomationException
getRelatedIdentifyObjects
in interface IMxdServerQuery
mapName
- The mapName (in)identifyObject
- A reference to a com.esri.arcgis.carto.IIdentifyObj (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double computeScale(String mapName, int imageWidthPixels, IEnvelope extent) throws IOException, AutomationException
computeScale
in interface IMxdServerQuery
mapName
- The mapName (in)imageWidthPixels
- The imageWidthPixels (in)extent
- 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 double computeDistance(String mapName, IPoint fromPoint, IPoint toPoint) throws IOException, AutomationException
computeDistance
in interface IMxdServerQuery
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray find(String mapName, String findString, int layerID) throws IOException, AutomationException
find
in interface IMxdServerQuery
mapName
- The mapName (in)findString
- The findString (in)layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureCursor queryByLayer(String mapName, int targetLayerID, int selectionLayerID, int selectionMethod, boolean useSelected, double bufferDistance, int bufferDistanceUnits) throws IOException, AutomationException
queryByLayer
in interface IMxdServerQuery
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMap getMap(String mapName) throws IOException, AutomationException
getMap
in interface IMxdServerObjects
mapName
- The mapName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILayer getLayer(String mapName, int layerID) throws IOException, AutomationException
getLayer
in interface IMxdServerObjects
mapName
- The mapName (in)layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPageLayout getPageLayout() throws IOException, AutomationException
getPageLayout
in interface IMxdServerObjects
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void cancel() throws IOException, AutomationException
cancel
in interface IMxdServerStatus
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 |