|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.ImageServerLP
public class ImageServerLP
Image Server LAN Proxy.
This object is new at ArcGIS 9.3.
| Constructor Summary | |
|---|---|
ImageServerLP()
Constructs a ImageServerLP using ArcGIS Engine. |
|
ImageServerLP(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ImageServerLP theImageServerLP = (ImageServerLP) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
IImageResult |
exportImage(IGeoImageDescription pImageDescription,
IImageType pImageType)
Exports into a well-known image for a given image description. |
static String |
getClsid()
getClsid. |
IName |
getFullName()
The AGSServerConnectionName object associated with the server object. |
int |
getHttpTimeout()
The maximum time in seconds to wait for a response from the server (Internet only). |
byte[] |
getImage(IGeoImageDescription pImageDescription)
Gets an image for a given image description. |
IImageServiceInfo |
getServiceInfo()
The properties of the image service provided. |
float |
getVersion()
The Image Server version number. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
setHttpTimeout(int secs)
The maximum time in seconds to wait for a response from the server (Internet only). |
| 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 ImageServerLP()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public ImageServerLP(Object obj)
throws IOException
ImageServerLP theImageServerLP = (ImageServerLP) obj;
obj to ImageServerLP.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public IName getFullName()
throws IOException,
AutomationException
getFullName in interface IAGSServerObject2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHttpTimeout(int secs)
throws IOException,
AutomationException
setHttpTimeout in interface IAGSServerObject2secs - The secs (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getHttpTimeout()
throws IOException,
AutomationException
getHttpTimeout in interface IAGSServerObject2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public float getVersion()
throws IOException,
AutomationException
Returns the version number of the Image Server
getVersion in interface IImageServerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IImageServiceInfo getServiceInfo()
throws IOException,
AutomationException
Returns information of the image service. The information includes description, spatial reference, extent, pixel size about the image data.
getServiceInfo in interface IImageServerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public byte[] getImage(IGeoImageDescription pImageDescription)
throws IOException,
AutomationException
Gets the image data in byte array from the image service using the given GeoImageDescription.
Gets the image data for a given image description. The returned image data contains first pixel values and then followed by NoData (transparency) bit mask, i.e. <pixels><mask>. The pixel values are organized in a band interleaved by pixel format, as the following:
v[0,0,0], v[1,0,0], v[2,0,0],…, v[nBands-1,0,0],
v[0,0,1], v[1,0,1], v[2,0,1],…, v[nBands-1, 0,1], …,
v[0,nRows-1,nCols-1], …, v[nBands-1,nRows-1,nCols-1]
PT_U2 1
PT_U4 1
PT_UCHAR 1
PT_CHAR 1
PT_USHORT 2
PT_SHORT 2
PT_ULONG 4
PT_LONG 4
PT_FLOAT 4
PT_DOUBLE 8
The location of the pixel at band b, row I, and column j can be calculated using the following formula:
location = ((i*nCols+j)*nBands+b)*pixelsize (in bytes)
The pixel data are always in Intel (Little Endian) byte order. For pixel types of more than 1 byte, byte swapping may be needed.
The NoData mask is a bit mask, one bit per pixels of all bands, with no padding to the byte boundary for a row. Value 1 indicates the pixel is valid, and 0 indicates NoData. The mask value for a pixel at row I and column j can be calculated as the following:
Bit[] = {0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01}
l = i*nCols+j
m[l/8] & Bit[l%8]
The NoData immediately follows pixel data. The size of NoData mask in bytes is (nCols*nRows+7)/8.
The NoData mask is optional. If the total size of the returned image data greater than the pixel data size i.e. nRows*nCols*nBands*pixelsize, then the NoData mask is present.
If LZ77 compressed, the returned image data must be uncompressed (zlib). The uncompressed image data follow the same format as above.
If JPEG compressed, the returned image data are organized as JPEG data stream followed NoData mask, and followed by the size of the JPEG stream, i.e. <JPEG><mask><size>. The NoData mask is the same format as above, but is LZ77 compressed. The JPEG data stream size <size> is a 4-byte integer in Intel byte order.
getImage in interface IImageServerpImageDescription - A reference to a com.esri.arcgis.carto.IGeoImageDescription (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IGeoImageDescription
public IImageResult exportImage(IGeoImageDescription pImageDescription,
IImageType pImageType)
throws IOException,
AutomationException
Exports image data from the image server using the GeoImageDescription and ImagType.
Exports a well-known image for a given image description. The supported formats include JPEG (plus transparency mask), PNG, BMP, and TIFF. The JPEG (plus transparency mask) format is the same as the JPEG compressed image returned from GetImage.
exportImage in interface IImageServerpImageDescription - A reference to a com.esri.arcgis.carto.IGeoImageDescription (in)pImageType - A reference to a com.esri.arcgis.carto.IImageType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IGeoImageDescription
public void interfaceSupportsErrorInfo(GUID riid)
throws IOException,
AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (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 | ||||||||