Package com.esri.core.geometry
Class OperatorGeneralizeCursor
java.lang.Object
com.esri.core.geometry.GeometryCursor
com.esri.core.geometry.OperatorGeneralizeCursor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
(package private) GeometryCursor
(package private) double
(package private) ProgressTracker
-
Constructor Summary
ConstructorsConstructorDescriptionOperatorGeneralizeCursor
(GeometryCursor geoms, double maxDeviation, boolean bRemoveDegenerateParts, ProgressTracker progressTracker) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
FindGreatestDistance
(Line line, Point2D ptHelper, AttributeStreamOfDbl xy, int start, int end, int pathEnd) private Geometry
Generalize
(Geometry geom) private void
GeneralizePath
(MultiPathImpl mpsrc, int ipath, MultiPathImpl mpdst, Line lineHelper) int
Returns the ID of the current geometry.next()
Moves the cursor to the next Geometry.Methods inherited from class com.esri.core.geometry.GeometryCursor
tock
-
Field Details
-
m_progressTracker
ProgressTracker m_progressTracker -
m_geoms
GeometryCursor m_geoms -
m_maxDeviation
double m_maxDeviation -
m_bRemoveDegenerateParts
boolean m_bRemoveDegenerateParts
-
-
Constructor Details
-
OperatorGeneralizeCursor
public OperatorGeneralizeCursor(GeometryCursor geoms, double maxDeviation, boolean bRemoveDegenerateParts, ProgressTracker progressTracker)
-
-
Method Details
-
next
Description copied from class:GeometryCursor
Moves the cursor to the next Geometry. Returns null when reached the end. The behavior of the cursor is undefined after the method returns null.- Specified by:
next
in classGeometryCursor
-
getGeometryID
public int getGeometryID()Description copied from class:GeometryCursor
Returns the ID of the current geometry. The ID is propagated across the operations (when possible). Returns an ID associated with the current Geometry. The ID is passed along and is returned by some operators to preserve relationship between the input and output geometry classes. It is not always possible to preserve an ID during an operation.- Specified by:
getGeometryID
in classGeometryCursor
-
Generalize
-
GeneralizePath
-
FindGreatestDistance
private int FindGreatestDistance(Line line, Point2D ptHelper, AttributeStreamOfDbl xy, int start, int end, int pathEnd)
-