|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.BasicGeoprocessor
public class BasicGeoprocessor
A basic geoprocessor.
Constructor Summary | |
---|---|
BasicGeoprocessor()
Constructs a BasicGeoprocessor using ArcGIS Engine. |
|
BasicGeoprocessor(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. BasicGeoprocessor theBasicGeoprocessor = (BasicGeoprocessor) obj; |
Method Summary | |
---|---|
IFeatureClass |
clip(ITable inputTable,
boolean useSelectedInput,
ITable clipTable,
boolean useSelectedClip,
double tolerance,
IFeatureClassName outputName)
Clips features. |
ITable |
dissolve(ITable inputTable,
boolean useSelected,
String dissolveField,
String summaryFields,
IDatasetName outputName)
Dissolves features. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
ISpatialReference |
getSpatialReference()
The output spatial reference. |
int |
hashCode()
the hashcode for this object |
IFeatureClass |
intersect(ITable inputTable,
boolean useSelectedInput,
ITable overlayTable,
boolean useSelectedOverlay,
double tolerance,
IFeatureClassName outputName)
Intersects features. |
IFeatureClass |
merge(IArray tables,
ITable fieldsTable,
IFeatureClassName outputName)
Merges features. |
void |
setCancelTrackerByRef(ITrackCancel rhs1)
The cancel tracker. |
void |
setSpatialReference(ISpatialReference ppSpatialRef)
The output spatial reference. |
IFeatureClass |
union(ITable inputTable,
boolean useSelectedInput,
ITable overlayTable,
boolean useSelectedOverlay,
double tolerance,
IFeatureClassName outputName)
Creates a union of features. |
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 BasicGeoprocessor() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic BasicGeoprocessor(Object obj) throws IOException
BasicGeoprocessor theBasicGeoprocessor = (BasicGeoprocessor) obj;
obj
to BasicGeoprocessor
.
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 setCancelTrackerByRef(ITrackCancel rhs1) throws IOException, AutomationException
setCancelTrackerByRef
in interface IBasicGeoprocessor
rhs1
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference getSpatialReference() throws IOException, AutomationException
IBasicGeoprocessor.SpatialReference should be set to an appropriate to high or low precision based on the target workspace. For more details see the SpatialReference documentation, particularly the ISpatialReferenceResolution interface.
getSpatialReference
in interface IBasicGeoprocessor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSpatialReference(ISpatialReference ppSpatialRef) throws IOException, AutomationException
setSpatialReference
in interface IBasicGeoprocessor
ppSpatialRef
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITable dissolve(ITable inputTable, boolean useSelected, String dissolveField, String summaryFields, IDatasetName outputName) throws IOException, AutomationException
Dissolve aggregates features of an input layer based on values of a specified attribute; and can be used to create either a new layer or a stand alone summary table.
The useSelected state refers to whether or not a selected subset of the InputTable is to be dissolved. True signifies that a selected subset will be dissolved. False signifies that Dissolve will ignore any selected subset and will dissolve the entire set.
The summaryFields argument is a comma-delimited string that lists the generated summary fields. The syntax for the summaryFields argument is <operation_code1>.<field_name1>, <operation_codeN>.<field_nameN>. Operation codes include: Dissolve, Count, Minimum, Maximum, Sum, Average, Variance and StdDev.
To perform a spatial dissolve (i.e. output features instead of a summary table) the Dissolve operation code must be used in conjunction with the shape field at the beginning of the summaryFields string. Example: "Dissolve.Shape, Sum.Area, StdDev.Area, etc..." To create a stand alone summary table simply remove "Dissolve.Shape".
To include the dissolved field in the output, you must add it to the summary fields. For example, if you were disolving on a field called name, set the summary fields to: "Minimum.Name, Sum.Area, etc..." to include the name field in the output.
dissolve
in interface IBasicGeoprocessor
inputTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)useSelected
- The useSelected (in)dissolveField
- The dissolveField (in)summaryFields
- The summaryFields (in)outputName
- A reference to a com.esri.arcgis.geodatabase.IDatasetName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureClass merge(IArray tables, ITable fieldsTable, IFeatureClassName outputName) throws IOException, AutomationException
Merge combines layers of the same geometry type into a single feature class.
The fieldsTable object refers to the specified input table that defines the fields to be used in the output.
merge
in interface IBasicGeoprocessor
tables
- A reference to a com.esri.arcgis.system.IArray (in)fieldsTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)outputName
- A reference to a com.esri.arcgis.geodatabase.IFeatureClassName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureClass clip(ITable inputTable, boolean useSelectedInput, ITable clipTable, boolean useSelectedClip, double tolerance, IFeatureClassName outputName) throws IOException, AutomationException
Clip extracts features of a point, line, or polygon layer based on the spatial extent of an overlay polygon layer. The attributes of the input feature class are carried over to the output feature class.
The inputTable is the data to be clipped.
The clipTable parameter is the data that will be used to perform the clip.
The useSelectedInput state refers to whether or not a selected subset of the InputTable is to be clipped. True signifies that a selected subset will be clipped. False signifies that clip operation will ignore any selected subset.
The useSelectedClip state refers to whether or not a selected subset of the clipTable is to be used in the clip operation. True signifies that the selected subset will serve as the clip layer. False signifies that the clip operation will ignore any selected subset.
Passing 0.0 causes the default tolerance to be used. The default tolerance is 1/10,000 of the extent of the data frame's spatial domain.
clip
in interface IBasicGeoprocessor
inputTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)useSelectedInput
- The useSelectedInput (in)clipTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)useSelectedClip
- The useSelectedClip (in)tolerance
- The tolerance (in)outputName
- A reference to a com.esri.arcgis.geodatabase.IFeatureClassName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureClass intersect(ITable inputTable, boolean useSelectedInput, ITable overlayTable, boolean useSelectedOverlay, double tolerance, IFeatureClassName outputName) throws IOException, AutomationException
Intersect clips the features of a line or polygon layer with features of an overlay polygon layer. The output feature class will have the attributes of both input and overlay layers.
The useSelectedInput state refers to whether or not a selected subset of the InputTable is to be intersected. True signifies that a selected subset will be intersected. False signifies that intersect operation will ignore any selected subset.
The useSelectedOverlay state refers to whether or not a selected subset of the overlayTable is to be used in the intersect operation. True signifies that the selected subset will serve as the overlay layer. False signifies that the intersect operation will ignore any selected subset.
Passing 0.0 causes the default tolerance to be used. The default tolerance is 1/10,000 of the extent of the data frame's spatial domain.
ClusterTolerance is the tolerance value that has to be set to derive how accurate you want the results to be. For example, if the data is accurate to about 1 Millimeter then setting a tolerance value of 1 Centimeter will snap the features within this tolerance level. If the tolerance value is set to 0.5 Millimeter then these features are ignored. Minimum value of Tolerance is twice the Resolution (Resolution * 2).
If the tolerance value is very high then an error message is given and the data is not processed.
Tolerance value can be set according to how accurate you want the results to be.
intersect
in interface IBasicGeoprocessor
inputTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)useSelectedInput
- The useSelectedInput (in)overlayTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)useSelectedOverlay
- The useSelectedOverlay (in)tolerance
- The tolerance (in)outputName
- A reference to a com.esri.arcgis.geodatabase.IFeatureClassName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureClass union(ITable inputTable, boolean useSelectedInput, ITable overlayTable, boolean useSelectedOverlay, double tolerance, IFeatureClassName outputName) throws IOException, AutomationException
Union combines the features of two polygon layers into a new feature class that contains the attributes and the full spatial extent of both layers.
The useSelectedInput state refers to whether or not a selected subset of the InputTable is to be combined with the overlay. True signifies that a selected subset will be used. False signifies that union operation will ignore any selected subset.
The useSelectedOverlay state refers to whether or not a selected subset of the overlayTable is to be used. True signifies that the selected subset will serve as the overlay layer. False signifies that the union operation will ignore any selected subset.
Passing 0.0 causes the default tolerance to be used. The default tolerance is 1/10,000 of the extent of the data frame's spatial domain.
union
in interface IBasicGeoprocessor
inputTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)useSelectedInput
- The useSelectedInput (in)overlayTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)useSelectedOverlay
- The useSelectedOverlay (in)tolerance
- The tolerance (in)outputName
- A reference to a com.esri.arcgis.geodatabase.IFeatureClassName (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 |