|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.FeatureConstruction
public class FeatureConstruction
Esri Feature Construction object.
Constructor Summary | |
---|---|
FeatureConstruction()
Constructs a FeatureConstruction using ArcGIS Engine. |
|
FeatureConstruction(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. FeatureConstruction theFeatureConstruction = (FeatureConstruction) obj; |
Method Summary | |
---|---|
void |
autoCompleteFromFeatures(IFeatureClass featureClass,
IEnvelope processingBounds,
IEnumFeature lineSrc,
IInvalidArea invalidArea,
double clusterTolerance,
IWorkspace selectionWorkspace,
ISelectionSet[] selectionSet)
Adds polygons to the specified feature class by combining existing polygons with the specified line source. |
void |
autoCompleteFromFeaturesFromCursor(IFeatureClass featureClass,
IEnvelope processingBounds,
IFeatureCursor lineSrc,
IInvalidArea invalidArea,
double clusterTolerance,
IWorkspace selectionWorkspace,
ISelectionSet[] selectionSet)
Adds polygons to the specified feature class by combining existing polygons with the specified line source. |
void |
autoCompleteFromGeometries(IFeatureClass featureClass,
IEnvelope processingBounds,
IEnumGeometry lineSrc,
IInvalidArea invalidArea,
double clusterTolerance,
IWorkspace selectionWorkspace,
ISelectionSet[] selectionSet)
Adds polygons to the specified feature class by combining existing polygons with the specified line source. |
void |
constructLines(ICancelOperation cancel,
IFeatureClass targetFC,
IEnumFeature sel,
boolean replaceExistingInTarget,
IInvalidArea invalidArea,
double clusterTolerance)
Adds line to an fc, using the map selection as the feature source. |
void |
constructLinesFromCursor(ICancelOperation cancel,
IFeatureClass targetFC,
IFeatureCursor sel,
boolean replaceExistingInTarget,
IInvalidArea invalidArea,
double clusterTolerance)
Adds line to a feature class, using a feature cursor as the feature source. |
void |
constructPolygonsFromFeatures(ICancelOperation cancel,
IFeatureClass featureClass,
IEnvelope processingBounds,
boolean modifyExisting,
boolean replaceTargetSelection,
IEnumFeature lineSrc,
IInvalidArea invalidArea,
double clusterTolerance,
IFeatureClass labels)
Constructs polygons into the feature class, using the map's polyline selection as the feature source. |
void |
constructPolygonsFromFeaturesFromCursor(ICancelOperation cancel,
IFeatureClass targetFC,
IEnvelope processingBounds,
boolean modifyExisting,
boolean replaceTargetSelection,
IFeatureCursor pLineSrc,
IInvalidArea invalidArea,
double clusterTolerance,
IFeatureClass pLabels)
Constructs polygons into the specified feature class, using the cursor as the feature source. |
void |
constructPolygonsFromGeometries(ICancelOperation cancel,
IFeatureClass featureClass,
IEnvelope processingBounds,
boolean modifyExisting,
IEnumGeometry pLineSrc,
IInvalidArea invalidArea,
double clusterTolerance)
Constructs polygons into the specified feature class, using the specified set of polyline geometries to define new boundaries (possibly in combination with existing polygons features). |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
boolean |
isFeaturesChanged()
Indicates if the last IFeatureConstruction method created or altered features. |
void |
planarizeLines(ICancelOperation cancel,
IEnumFeature enumFeature,
double clusterTolerance)
Replaces the line selection set with a planarized version of it. |
void |
planarizeLinesFromCursor(ICancelOperation cancel,
IFeatureClass featureClass,
IFeatureCursor featureCursor,
double clusterTolerance)
Replaces the line selection set with a planarized version of it. |
void |
setConstructedFeaturesSubtype(int rhs1)
The subtype for subsequently constructed features. |
void |
setDefaultZ(double rhs1)
The z value to be used when constructing features from inputs that are not z-aware. |
void |
splitPolygonsWithLines(ICancelOperation cancel,
IFeatureClass featureClass,
IEnvelope processingBounds,
IEnumFeature lineSrc,
IInvalidArea invalidArea,
double clusterTolerance)
Splits polygons in the specified feature class, using the polyline selection as the feature source. |
void |
splitPolygonsWithLinesFromCursor(ICancelOperation cancel,
IFeatureClass featureClass,
IEnvelope processingBounds,
IFeatureCursor pLineSrc,
IInvalidArea invalidArea,
double clusterTolerance)
Splits polygons in the specified feature class, using the polyline selection as the feature source. |
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 FeatureConstruction() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic FeatureConstruction(Object obj) throws IOException
FeatureConstruction theFeatureConstruction = (FeatureConstruction) obj;
obj
to FeatureConstruction
.
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 constructLines(ICancelOperation cancel, IFeatureClass targetFC, IEnumFeature sel, boolean replaceExistingInTarget, IInvalidArea invalidArea, double clusterTolerance) throws IOException, AutomationException
ConstructLines creates new line features to the target feature class by planarizing a selected set of features. The selection can contain polygons and polylines from multiple features classes - including the target feature class.
If replaceExistingInTarget is true, then selected features that are already in the target feature class will be replaced by their planarized versions, otherwise the planarized versions will be added in addition to the originals, resulting in overlapping features in the target. In both cases, planarized features originating from target features will receive the correct attributes.
The invalid area interface is optional and can be used to redraw the area affected by processing. In some cases it may be necessary to have an invalid area in order for related features (annotation, route symbology, etc) to redraw correctly.
The cluster tolerance must at least be as large as the cluster tolerance of the spatial reference associated with the target feature class.
constructLines
in interface IFeatureConstruction
cancel
- A reference to a com.esri.arcgis.geodatabase.ICancelOperation (in)targetFC
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)sel
- A reference to a com.esri.arcgis.geodatabase.IEnumFeature (in)replaceExistingInTarget
- The replaceExistingInTarget (in)invalidArea
- A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)clusterTolerance
- The clusterTolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void constructLinesFromCursor(ICancelOperation cancel, IFeatureClass targetFC, IFeatureCursor sel, boolean replaceExistingInTarget, IInvalidArea invalidArea, double clusterTolerance) throws IOException, AutomationException
This method is similar to IFeatureConstruction::ConstructLines, but uses a FeatureCursor for defining input features; thus only features from a single feature class can be planarized. This version is useful for standalone applications that don’t have access to a map selection object (or anything else that supports IEnumFeature).
constructLinesFromCursor
in interface IFeatureConstruction
cancel
- A reference to a com.esri.arcgis.geodatabase.ICancelOperation (in)targetFC
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)sel
- A reference to a com.esri.arcgis.geodatabase.IFeatureCursor (in)replaceExistingInTarget
- The replaceExistingInTarget (in)invalidArea
- A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)clusterTolerance
- The clusterTolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void constructPolygonsFromFeatures(ICancelOperation cancel, IFeatureClass featureClass, IEnvelope processingBounds, boolean modifyExisting, boolean replaceTargetSelection, IEnumFeature lineSrc, IInvalidArea invalidArea, double clusterTolerance, IFeatureClass labels) throws IOException, AutomationException
Constructs polygons into the target feature class, using the map's selection as the feature source. The selection can contain polylines and polygons. If polygons are included in the selection, their boundaries will be used and will simply act as additional polylines being considered for target polygon construction. Multi-part input polygons will not appear as multi-part polygons in target.
If bModifyExisting is true, then the specified “processing bounds” envelope will be used to search for existing polygons in the target feature. Those polygons will be integrated with any polygons constructed from the input linework. Other than that, existing polygons have no influence on the nature of the constructed polygons. The processing bounds parameter can be nil if bModifyExisting is false.
If bReplaceTargetSelection is true, then the selected features that are already in the target feature class will be replaced by their planarized versions, otherwise the planarized versions will be added in addition to the originals, resulting in overlapping features in the target. In both cases, planarized features originating from target features will receive the correct attributes.
The label feature class is optional and can specify an attribute source for the constructed polygons.
constructPolygonsFromFeatures
in interface IFeatureConstruction
cancel
- A reference to a com.esri.arcgis.geodatabase.ICancelOperation (in)featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)processingBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)modifyExisting
- The modifyExisting (in)replaceTargetSelection
- The replaceTargetSelection (in)lineSrc
- A reference to a com.esri.arcgis.geodatabase.IEnumFeature (in)invalidArea
- A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)clusterTolerance
- The clusterTolerance (in)labels
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void constructPolygonsFromFeaturesFromCursor(ICancelOperation cancel, IFeatureClass targetFC, IEnvelope processingBounds, boolean modifyExisting, boolean replaceTargetSelection, IFeatureCursor pLineSrc, IInvalidArea invalidArea, double clusterTolerance, IFeatureClass pLabels) throws IOException, AutomationException
This method is similar to ConstructPolygonsFromFeatures, but uses a FeatureCursor for defining input features. This version is useful for standalone applications that don’t have access to a map selection object (or anything else that supports IEnumFeature).
constructPolygonsFromFeaturesFromCursor
in interface IFeatureConstruction
cancel
- A reference to a com.esri.arcgis.geodatabase.ICancelOperation (in)targetFC
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)processingBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)modifyExisting
- The modifyExisting (in)replaceTargetSelection
- The replaceTargetSelection (in)pLineSrc
- A reference to a com.esri.arcgis.geodatabase.IFeatureCursor (in)invalidArea
- A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)clusterTolerance
- The clusterTolerance (in)pLabels
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void constructPolygonsFromGeometries(ICancelOperation cancel, IFeatureClass featureClass, IEnvelope processingBounds, boolean modifyExisting, IEnumGeometry pLineSrc, IInvalidArea invalidArea, double clusterTolerance) throws IOException, AutomationException
This method is similar to ConstructPolygonsFromFeatures, but uses a geometry enumerator for defining input features instead of a map selection or a FeatureCursor.
constructPolygonsFromGeometries
in interface IFeatureConstruction
cancel
- A reference to a com.esri.arcgis.geodatabase.ICancelOperation (in)featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)processingBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)modifyExisting
- The modifyExisting (in)pLineSrc
- A reference to a com.esri.arcgis.geometry.IEnumGeometry (in)invalidArea
- A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)clusterTolerance
- The clusterTolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void splitPolygonsWithLines(ICancelOperation cancel, IFeatureClass featureClass, IEnvelope processingBounds, IEnumFeature lineSrc, IInvalidArea invalidArea, double clusterTolerance) throws IOException, AutomationException
splitPolygonsWithLines
in interface IFeatureConstruction
cancel
- A reference to a com.esri.arcgis.geodatabase.ICancelOperation (in)featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)processingBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)lineSrc
- A reference to a com.esri.arcgis.geodatabase.IEnumFeature (in)invalidArea
- A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)clusterTolerance
- The clusterTolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void splitPolygonsWithLinesFromCursor(ICancelOperation cancel, IFeatureClass featureClass, IEnvelope processingBounds, IFeatureCursor pLineSrc, IInvalidArea invalidArea, double clusterTolerance) throws IOException, AutomationException
This method is similar to SplitPolygonsWithLines, but the feature source uses a FeatureCursor instead of a map selection to define the input features.
splitPolygonsWithLinesFromCursor
in interface IFeatureConstruction
cancel
- A reference to a com.esri.arcgis.geodatabase.ICancelOperation (in)featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)processingBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)pLineSrc
- A reference to a com.esri.arcgis.geodatabase.IFeatureCursor (in)invalidArea
- A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)clusterTolerance
- The clusterTolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void autoCompleteFromGeometries(IFeatureClass featureClass, IEnvelope processingBounds, IEnumGeometry lineSrc, IInvalidArea invalidArea, double clusterTolerance, IWorkspace selectionWorkspace, ISelectionSet[] selectionSet) throws IOException, AutomationException
This method is similar to AutoCompleteFromFeatures, but uses a geometry enumerator for defining input features instead of a map selection or a FeatureCursor.
autoCompleteFromGeometries
in interface IFeatureConstruction
featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)processingBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)lineSrc
- A reference to a com.esri.arcgis.geometry.IEnumGeometry (in)invalidArea
- A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)clusterTolerance
- The clusterTolerance (in)selectionWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)selectionSet
- A reference to a com.esri.arcgis.geodatabase.ISelectionSet (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void autoCompleteFromFeatures(IFeatureClass featureClass, IEnvelope processingBounds, IEnumFeature lineSrc, IInvalidArea invalidArea, double clusterTolerance, IWorkspace selectionWorkspace, ISelectionSet[] selectionSet) throws IOException, AutomationException
This method is similar to ConstructPolygonsFromFeatures, but existing polygons in the target polygon feature class will never be overlapped by constructed polygons, therefore, the processing bounds parameter should never be set to null.
The optional output SelectionSet contains references to all constructed polygons. If the SelectionSet is defined, then the selection workspace parameter must also be defined and will contain the selection set.
autoCompleteFromFeatures
in interface IFeatureConstruction
featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)processingBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)lineSrc
- A reference to a com.esri.arcgis.geodatabase.IEnumFeature (in)invalidArea
- A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)clusterTolerance
- The clusterTolerance (in)selectionWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)selectionSet
- A reference to a com.esri.arcgis.geodatabase.ISelectionSet (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void autoCompleteFromFeaturesFromCursor(IFeatureClass featureClass, IEnvelope processingBounds, IFeatureCursor lineSrc, IInvalidArea invalidArea, double clusterTolerance, IWorkspace selectionWorkspace, ISelectionSet[] selectionSet) throws IOException, AutomationException
This method is similar to AutoCompleteFromFeatures, but uses a FeatureCursor for defining input features.
autoCompleteFromFeaturesFromCursor
in interface IFeatureConstruction
featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)processingBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)lineSrc
- A reference to a com.esri.arcgis.geodatabase.IFeatureCursor (in)invalidArea
- A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)clusterTolerance
- The clusterTolerance (in)selectionWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)selectionSet
- A reference to a com.esri.arcgis.geodatabase.ISelectionSet (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void planarizeLines(ICancelOperation cancel, IEnumFeature enumFeature, double clusterTolerance) throws IOException, AutomationException
This method is similar to ConstructLines in the case where the target feature class contains all the features in the enumerator. Existing features in the feature class are replaced by the planarized versions. Feature attributes are transferred.
planarizeLines
in interface IFeatureConstruction
cancel
- A reference to a com.esri.arcgis.geodatabase.ICancelOperation (in)enumFeature
- A reference to a com.esri.arcgis.geodatabase.IEnumFeature (in)clusterTolerance
- The clusterTolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void planarizeLinesFromCursor(ICancelOperation cancel, IFeatureClass featureClass, IFeatureCursor featureCursor, double clusterTolerance) throws IOException, AutomationException
This method is similar to PlanarizeLines except a FeatureCursor is used to define the input features.
planarizeLinesFromCursor
in interface IFeatureConstruction
cancel
- A reference to a com.esri.arcgis.geodatabase.ICancelOperation (in)featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)featureCursor
- A reference to a com.esri.arcgis.geodatabase.IFeatureCursor (in)clusterTolerance
- The clusterTolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setConstructedFeaturesSubtype(int rhs1) throws IOException, AutomationException
Sets the subtype for subsequently constructed features.
setConstructedFeaturesSubtype
in interface IFeatureConstruction
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultZ(double rhs1) throws IOException, AutomationException
Sets the z value to be used when constructing features from inputs that are not z-aware.
setDefaultZ
in interface IFeatureConstruction
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isFeaturesChanged() throws IOException, AutomationException
isFeaturesChanged
in interface IFeatureConstruction
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 |