|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geoprocessing.AbstractGPTool
com.esri.arcgis.geoprocessing.tools.analysistools.SpatialJoin
public class SpatialJoin
Creates a table join in which fields from one layer's attribute table are appended to another layer's attribute table based on the relative locations of the features in the two layers.
The Spatial Join tool is contained in the Analysis Tools tool box.
Learn more about aggregating field values with Spatial Join
Software restrictions: none
| Field Summary |
|---|
| Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool |
|---|
vals |
| Constructor Summary | |
|---|---|
SpatialJoin()
Creates the Spatial Join tool with defaults. |
|
SpatialJoin(Object targetFeatures,
Object joinFeatures,
Object outFeatureClass)
Creates the Spatial Join tool with the required parameters. |
|
| Method Summary | |
|---|---|
String |
getDistanceFieldName()
Returns the Distance Field Name parameter of this tool . |
Object |
getFieldMapping()
Returns the Field Map of Join Features parameter of this tool . |
Object |
getJoinFeatures()
Returns the Join Features parameter of this tool . |
String |
getJoinOperation()
Returns the Join Operation parameter of this tool . |
String |
getJoinType()
Returns the Keep All Target Features parameter of this tool . |
String |
getMatchOption()
Returns the Match Option parameter of this tool . |
Object |
getOutFeatureClass()
Returns the Output Feature Class parameter of this tool . |
Object |
getSearchRadius()
Returns the Search Radius parameter of this tool . |
Object |
getTargetFeatures()
Returns the Target Features parameter of this tool . |
String |
getToolboxAlias()
Returns the alias of the tool box containing this tool. |
String |
getToolboxName()
Returns the name of the tool box containing this tool. |
String |
getToolName()
Returns the name of this tool. |
void |
setDistanceFieldName(String distanceFieldName)
Sets the Distance Field Name parameter of this tool . |
void |
setFieldMapping(Object fieldMapping)
Sets the Field Map of Join Features parameter of this tool . |
void |
setJoinFeatures(Object joinFeatures)
Sets the Join Features parameter of this tool . |
void |
setJoinOperation(String joinOperation)
Sets the Join Operation parameter of this tool . |
void |
setJoinType(String joinType)
Sets the Keep All Target Features parameter of this tool . |
void |
setMatchOption(String matchOption)
Sets the Match Option parameter of this tool . |
void |
setOutFeatureClass(Object outFeatureClass)
Sets the Output Feature Class parameter of this tool . |
void |
setSearchRadius(Object searchRadius)
Sets the Search Radius parameter of this tool . |
void |
setTargetFeatures(Object targetFeatures)
Sets the Target Features parameter of this tool . |
| Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool |
|---|
getParameterValues, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpatialJoin()
Initializes the array of tool parameters with the default values specified when the tool was created.
public SpatialJoin(Object targetFeatures,
Object joinFeatures,
Object outFeatureClass)
Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.
targetFeatures - Feature Layer, the dataset that you are joining to. The output of the join operation will contain the features from this feature class with appended columns from the join feature class. It can be any spatial data source (shapefiles, SDE feature classes, coverages, SDC, query tables etc) supported by ArcGIS. It can also be read only.joinFeatures - Feature Layer, the dataset that you are joining from. The attributes from this dataset are appended to the attributes of the target feature class in the output based on a spatial relation. It can be any spatial data source (shapefiles, SDE feature classes, coverages, SDC, query tables etc) supported by ArcGIS. It can also be read only.outFeatureClass - Feature Class, a new dataset which contains the results of the join operation.| Method Detail |
|---|
public Object getTargetFeatures()
public void setTargetFeatures(Object targetFeatures)
targetFeatures - Feature Layer, the dataset that you are joining to. The output of the join operation will contain the features from this feature class with appended columns from the join feature class. It can be any spatial data source (shapefiles, SDE feature classes, coverages, SDC, query tables etc) supported by ArcGIS. It can also be read only.public Object getJoinFeatures()
public void setJoinFeatures(Object joinFeatures)
joinFeatures - Feature Layer, the dataset that you are joining from. The attributes from this dataset are appended to the attributes of the target feature class in the output based on a spatial relation. It can be any spatial data source (shapefiles, SDE feature classes, coverages, SDC, query tables etc) supported by ArcGIS. It can also be read only.public Object getOutFeatureClass()
public void setOutFeatureClass(Object outFeatureClass)
outFeatureClass - Feature Class, a new dataset which contains the results of the join operation.public String getJoinOperation()
public void setJoinOperation(String joinOperation)
joinOperation - String, the join operation describes cardinality rules associated with matching features during the join. The join options are:public String getJoinType()
public void setJoinType(String joinType)
joinType - String, determine if the join will be an inner or outer join.public Object getFieldMapping()
public void setFieldMapping(Object fieldMapping)
fieldMapping - Field Mappings, for each Field Map, you can add, rename, or delete output fields as well as set properties such as data type and merge rule. You can also delete an output field's sub fields, and you can format any output field's values if the data type is text.public String getMatchOption()
public void setMatchOption(String matchOption)
matchOption - String, defines the criteria used to match rows. The match options are:public Object getSearchRadius()
public void setSearchRadius(Object searchRadius)
searchRadius - Linear unit, only used when the Match Option is INTERSECT or CLOSEST. Join features that are within this distance of the individual input feature will be considered for the operation. The default search radius is 0.
A value of 0 for the Search radius means different things to the Match Option.
- INTERSECT : only the join features that INTERESCT the input feature will be included in the join.
- CLOSEST : all join features will be candidates for each input feature. Basically a value of 0 here means use all join features.public String getDistanceFieldName()
public void setDistanceFieldName(String distanceFieldName)
distanceFieldName - String, the name of a new field to be added to the output feature class. This field will be of type Double and will contain distances between the Target and the closest Join Features. This option is only available when the Match Option parameter is set to CLOSEST. A value of -1 in the Distance Field means there were no Join Features within the distance specified in the Search Radius parameter. If no Distance Field Name is specified, then no field will be added to the output to capture this information.public String getToolName()
public String getToolboxName()
public String getToolboxAlias()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||