com.esri.arcgis.globecore
Class KmlConvertor

java.lang.Object
  extended by com.esri.arcgis.globecore.KmlConvertor
All Implemented Interfaces:
IKmlConversion, IKmlConvertor, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class KmlConvertor
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IKmlConvertor, IKmlConversion

The Kml Convertor object.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
KmlConvertor()
          Constructs a KmlConvertor using ArcGIS Engine.
KmlConvertor(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
KmlConvertor theKmlConvertor = (KmlConvertor) obj;
 
Method Summary
 byte[] convertToArray()
          The Convert method.
 void convertToFile(String filename)
          The Convert method.
 boolean equals(Object o)
          Compare this object with another
 IEnvelope getBBox()
          The bounding box of the map.
static String getClsid()
          getClsid.
 int getDPI()
          Get DPI property.
 String getEndPointUrl()
          Get EndPointUrl property.
 int getFeatureLimit()
          Get FeatureLimit value.
 int getIconSize()
          Get IconSize property.
 IArray getIDList()
          Returns Layer hierarchy.
 int getImageSize()
          Get ImageSize property.
 IPropertySet getKmlParameters()
          Get list of verious KML parameters.
 IArray getLayerIDListFromMap(IMap pMap)
          Get array of numerical layer IDs in hierarchical order from Map.
 IArray getLayerIDListFromMapServer(IMapServer pMapServer)
          Get array of numerical layer IDs in hierarchical order from MapServer.
 String getLayerIDs()
          Get layer ID string.
 int getPaletteSize()
          Get PaletteSize property.
 double getScale()
          Get Scale property.
 String getWorkingDirectory()
          Get WorkingDirectory property.
 int hashCode()
          the hashcode for this object
 boolean isComposite()
          Get Composite property.
 boolean isIgnoreScaleFactor()
          Get ignore scale factor property.
 boolean isIgnoreVisibility()
          Get ignore visibility property.
 boolean isVectorsToRasters()
          Get VectorsToRasters property.
 byte[] layerToArray(ILayer pLayer, IQueryFilter pQueryFilter, IPropertySet pKmlParameters)
          Converts a layer to KML and outputs a KMZ stream.
 void layerToFile(ILayer pLayer, IQueryFilter pQueryFilter, IPropertySet pKmlParameters, String filename)
          Converts a layer to KML and outputs a KMZ file.
 byte[] mapServerMapToArray(IMapServer pMapServer, IQueryFilter pQueryFilter, IPropertySet pKmlParameters, String[] pLayerIDs)
          Converts MapServer Map in server environment to KML and outputs a KMZ stream.
 void mapServerMapToFile(IMapServer pMapServer, IQueryFilter pQueryFilter, IPropertySet pKmlParameters, String[] pLayerIDs, String filename)
          Converts MapServer Map in server environment to KML and outputs a KMZ file.
 byte[] mapToArray(IMap pMap, IQueryFilter pQueryFilter, IPropertySet pKmlParameters, String[] pLayerIDs)
          Converts Map to KML and outputs a KMZ stream.
 void mapToFile(IMap pMap, IQueryFilter pQueryFilter, IPropertySet pKmlParameters, String[] pLayerIDs, String filename)
          Converts Map to KML and outputs a KMZ file.
 void setBBox(IEnvelope pArea)
          The bounding box of the map.
 void setComposite(boolean pComposite)
          Get Composite property.
 void setDPI(int pDpi)
          Get DPI property.
 void setEndPointUrl(String pUrl)
          Get EndPointUrl property.
 void setFeatureLimit(int pFeatureLimit)
          Get FeatureLimit value.
 void setIconSize(int psize)
          Get IconSize property.
 void setIgnoreScaleFactor(boolean pIgnoreScaleFactor)
          Get ignore scale factor property.
 void setIgnoreVisibility(boolean pIgnoreVisibility)
          Get ignore visibility property.
 void setImageSize(int psize)
          Get ImageSize property.
 void setKmlParameters(IPropertySet pProps)
          Get list of verious KML parameters.
 void setLayerIDs(String pLayerIDs)
          Get layer ID string.
 void setMap(IMap pMap)
          Intialize by IMap object.
 void setMapServer(IMapServer pMapServer)
          Intialize by IMapServer object.
 void setPaletteSize(int psize)
          Get PaletteSize property.
 void setScale(double pScale)
          Get Scale property.
 void setVectorsToRasters(boolean pVectorsToRasters)
          Get VectorsToRasters property.
 void setWorkingDirectory(String pWorkingDirectory)
          Get WorkingDirectory property.
 
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

KmlConvertor

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

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

KmlConvertor

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

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

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

getClsid

public static String getClsid()
getClsid.


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

setMap

public void setMap(IMap pMap)
            throws IOException,
                   AutomationException
Intialize by IMap object.

Product Availability

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

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

setMapServer

public void setMapServer(IMapServer pMapServer)
                  throws IOException,
                         AutomationException
Intialize by IMapServer object.

Product Availability

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

Specified by:
setMapServer in interface IKmlConvertor
Parameters:
pMapServer - A reference to a com.esri.arcgis.carto.IMapServer (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWorkingDirectory

public String getWorkingDirectory()
                           throws IOException,
                                  AutomationException
Get WorkingDirectory property.

Product Availability

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

Specified by:
getWorkingDirectory in interface IKmlConvertor
Returns:
The pWorkingDirectory
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setWorkingDirectory

public void setWorkingDirectory(String pWorkingDirectory)
                         throws IOException,
                                AutomationException
Get WorkingDirectory property.

Product Availability

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

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

getBBox

public IEnvelope getBBox()
                  throws IOException,
                         AutomationException
The bounding box of the map.

Product Availability

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

Specified by:
getBBox in interface IKmlConvertor
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.

setBBox

public void setBBox(IEnvelope pArea)
             throws IOException,
                    AutomationException
The bounding box of the map.

Product Availability

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

Specified by:
setBBox in interface IKmlConvertor
Parameters:
pArea - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

convertToFile

public void convertToFile(String filename)
                   throws IOException,
                          AutomationException
The Convert method.

Product Availability

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

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

convertToArray

public byte[] convertToArray()
                      throws IOException,
                             AutomationException
The Convert method.

Product Availability

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

Specified by:
convertToArray in interface IKmlConvertor
Returns:
An unsigned byte
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLayerIDs

public String getLayerIDs()
                   throws IOException,
                          AutomationException
Get layer ID string.

Product Availability

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

Specified by:
getLayerIDs in interface IKmlConvertor
Returns:
The pLayerIDs
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLayerIDs

public void setLayerIDs(String pLayerIDs)
                 throws IOException,
                        AutomationException
Get layer ID string.

Product Availability

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

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

isComposite

public boolean isComposite()
                    throws IOException,
                           AutomationException
Get Composite property.

Product Availability

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

Specified by:
isComposite in interface IKmlConvertor
Returns:
The pComposite
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setComposite

public void setComposite(boolean pComposite)
                  throws IOException,
                         AutomationException
Get Composite property.

Product Availability

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

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

isVectorsToRasters

public boolean isVectorsToRasters()
                           throws IOException,
                                  AutomationException
Get VectorsToRasters property.

Product Availability

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

Specified by:
isVectorsToRasters in interface IKmlConvertor
Returns:
The pVectorsToRasters
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setVectorsToRasters

public void setVectorsToRasters(boolean pVectorsToRasters)
                         throws IOException,
                                AutomationException
Get VectorsToRasters property.

Product Availability

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

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

getImageSize

public int getImageSize()
                 throws IOException,
                        AutomationException
Get ImageSize property.

Product Availability

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

Specified by:
getImageSize in interface IKmlConvertor
Returns:
The psize
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setImageSize

public void setImageSize(int psize)
                  throws IOException,
                         AutomationException
Get ImageSize property.

Product Availability

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

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

getPaletteSize

public int getPaletteSize()
                   throws IOException,
                          AutomationException
Get PaletteSize property.

Product Availability

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

Specified by:
getPaletteSize in interface IKmlConvertor
Returns:
The psize
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPaletteSize

public void setPaletteSize(int psize)
                    throws IOException,
                           AutomationException
Get PaletteSize property.

Product Availability

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

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

getIconSize

public int getIconSize()
                throws IOException,
                       AutomationException
Get IconSize property.

Product Availability

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

Specified by:
getIconSize in interface IKmlConvertor
Returns:
The psize
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setIconSize

public void setIconSize(int psize)
                 throws IOException,
                        AutomationException
Get IconSize property.

Product Availability

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

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

getScale

public double getScale()
                throws IOException,
                       AutomationException
Get Scale property.

Product Availability

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

Specified by:
getScale in interface IKmlConvertor
Returns:
The pScale
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setScale

public void setScale(double pScale)
              throws IOException,
                     AutomationException
Get Scale property.

Product Availability

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

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

getDPI

public int getDPI()
           throws IOException,
                  AutomationException
Get DPI property.

Product Availability

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

Specified by:
getDPI in interface IKmlConvertor
Returns:
The pDpi
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDPI

public void setDPI(int pDpi)
            throws IOException,
                   AutomationException
Get DPI property.

Product Availability

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

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

getEndPointUrl

public String getEndPointUrl()
                      throws IOException,
                             AutomationException
Get EndPointUrl property.

Product Availability

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

Specified by:
getEndPointUrl in interface IKmlConvertor
Returns:
The pUrl
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setEndPointUrl

public void setEndPointUrl(String pUrl)
                    throws IOException,
                           AutomationException
Get EndPointUrl property.

Product Availability

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

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

isIgnoreScaleFactor

public boolean isIgnoreScaleFactor()
                            throws IOException,
                                   AutomationException
Get ignore scale factor property.

Product Availability

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

Specified by:
isIgnoreScaleFactor in interface IKmlConvertor
Returns:
The pIgnoreScaleFactor
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setIgnoreScaleFactor

public void setIgnoreScaleFactor(boolean pIgnoreScaleFactor)
                          throws IOException,
                                 AutomationException
Get ignore scale factor property.

Product Availability

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

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

isIgnoreVisibility

public boolean isIgnoreVisibility()
                           throws IOException,
                                  AutomationException
Get ignore visibility property.

Product Availability

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

Specified by:
isIgnoreVisibility in interface IKmlConvertor
Returns:
The pIgnoreVisibility
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setIgnoreVisibility

public void setIgnoreVisibility(boolean pIgnoreVisibility)
                         throws IOException,
                                AutomationException
Get ignore visibility property.

Product Availability

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

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

getFeatureLimit

public int getFeatureLimit()
                    throws IOException,
                           AutomationException
Get FeatureLimit value.

Product Availability

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

Specified by:
getFeatureLimit in interface IKmlConvertor
Returns:
The pFeatureLimit
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFeatureLimit

public void setFeatureLimit(int pFeatureLimit)
                     throws IOException,
                            AutomationException
Get FeatureLimit value.

Product Availability

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

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

getKmlParameters

public IPropertySet getKmlParameters()
                              throws IOException,
                                     AutomationException
Get list of verious KML parameters.

Product Availability

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

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

setKmlParameters

public void setKmlParameters(IPropertySet pProps)
                      throws IOException,
                             AutomationException
Get list of verious KML parameters.

Product Availability

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

Specified by:
setKmlParameters in interface IKmlConvertor
Parameters:
pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getIDList

public IArray getIDList()
                 throws IOException,
                        AutomationException
Returns Layer hierarchy.

Product Availability

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

Specified by:
getIDList in interface IKmlConvertor
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.

layerToFile

public void layerToFile(ILayer pLayer,
                        IQueryFilter pQueryFilter,
                        IPropertySet pKmlParameters,
                        String filename)
                 throws IOException,
                        AutomationException
Converts a layer to KML and outputs a KMZ file.

Product Availability

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

Specified by:
layerToFile in interface IKmlConversion
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pQueryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
pKmlParameters - A reference to a com.esri.arcgis.system.IPropertySet (in)
filename - The filename (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

layerToArray

public byte[] layerToArray(ILayer pLayer,
                           IQueryFilter pQueryFilter,
                           IPropertySet pKmlParameters)
                    throws IOException,
                           AutomationException
Converts a layer to KML and outputs a KMZ stream.

Product Availability

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

Specified by:
layerToArray in interface IKmlConversion
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pQueryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
pKmlParameters - A reference to a com.esri.arcgis.system.IPropertySet (in)
Returns:
An unsigned byte
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

mapToFile

public void mapToFile(IMap pMap,
                      IQueryFilter pQueryFilter,
                      IPropertySet pKmlParameters,
                      String[] pLayerIDs,
                      String filename)
               throws IOException,
                      AutomationException
Converts Map to KML and outputs a KMZ file.

Product Availability

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

Specified by:
mapToFile in interface IKmlConversion
Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
pQueryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
pKmlParameters - A reference to a com.esri.arcgis.system.IPropertySet (in)
pLayerIDs - The pLayerIDs (in)
filename - The filename (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

mapToArray

public byte[] mapToArray(IMap pMap,
                         IQueryFilter pQueryFilter,
                         IPropertySet pKmlParameters,
                         String[] pLayerIDs)
                  throws IOException,
                         AutomationException
Converts Map to KML and outputs a KMZ stream.

Product Availability

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

Specified by:
mapToArray in interface IKmlConversion
Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
pQueryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
pKmlParameters - A reference to a com.esri.arcgis.system.IPropertySet (in)
pLayerIDs - The pLayerIDs (in)
Returns:
An unsigned byte
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

mapServerMapToFile

public void mapServerMapToFile(IMapServer pMapServer,
                               IQueryFilter pQueryFilter,
                               IPropertySet pKmlParameters,
                               String[] pLayerIDs,
                               String filename)
                        throws IOException,
                               AutomationException
Converts MapServer Map in server environment to KML and outputs a KMZ file.

Product Availability

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

Specified by:
mapServerMapToFile in interface IKmlConversion
Parameters:
pMapServer - A reference to a com.esri.arcgis.carto.IMapServer (in)
pQueryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
pKmlParameters - A reference to a com.esri.arcgis.system.IPropertySet (in)
pLayerIDs - The pLayerIDs (in)
filename - The filename (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

mapServerMapToArray

public byte[] mapServerMapToArray(IMapServer pMapServer,
                                  IQueryFilter pQueryFilter,
                                  IPropertySet pKmlParameters,
                                  String[] pLayerIDs)
                           throws IOException,
                                  AutomationException
Converts MapServer Map in server environment to KML and outputs a KMZ stream.

Product Availability

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

Specified by:
mapServerMapToArray in interface IKmlConversion
Parameters:
pMapServer - A reference to a com.esri.arcgis.carto.IMapServer (in)
pQueryFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
pKmlParameters - A reference to a com.esri.arcgis.system.IPropertySet (in)
pLayerIDs - The pLayerIDs (in)
Returns:
An unsigned byte
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLayerIDListFromMap

public IArray getLayerIDListFromMap(IMap pMap)
                             throws IOException,
                                    AutomationException
Get array of numerical layer IDs in hierarchical order from Map.

Product Availability

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

Specified by:
getLayerIDListFromMap in interface IKmlConversion
Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (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.

getLayerIDListFromMapServer

public IArray getLayerIDListFromMapServer(IMapServer pMapServer)
                                   throws IOException,
                                          AutomationException
Get array of numerical layer IDs in hierarchical order from MapServer.

Product Availability

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

Specified by:
getLayerIDListFromMapServer in interface IKmlConversion
Parameters:
pMapServer - A reference to a com.esri.arcgis.carto.IMapServer (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.