Package com.esri.core.geometry
Class OperatorConvexHullLocal
- java.lang.Object
-
- com.esri.core.geometry.Operator
-
- com.esri.core.geometry.OperatorConvexHull
-
- com.esri.core.geometry.OperatorConvexHullLocal
-
class OperatorConvexHullLocal extends OperatorConvexHull
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.esri.core.geometry.Operator
Operator.Type
-
-
Constructor Summary
Constructors Constructor Description OperatorConvexHullLocal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometryCursorexecute(GeometryCursor geoms, boolean b_merge, ProgressTracker progress_tracker)Calculates the convex hull.Geometryexecute(Geometry geometry, ProgressTracker progress_tracker)Calculates the convex hull geometry.booleanisConvex(Geometry geom, ProgressTracker progress_tracker)Checks whether a Geometry is convex.-
Methods inherited from class com.esri.core.geometry.OperatorConvexHull
getType, local
-
Methods inherited from class com.esri.core.geometry.Operator
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
-
-
-
-
Method Detail
-
execute
public GeometryCursor execute(GeometryCursor geoms, boolean b_merge, ProgressTracker progress_tracker)
Description copied from class:OperatorConvexHullCalculates the convex hull.- Specified by:
executein classOperatorConvexHull- Parameters:
geoms- The input geometry cursor.b_merge- Put true if you want the convex hull of all the geometries in the cursor combined. Put false if you want the convex hull of each geometry in the cursor individually.progress_tracker- The progress tracker. Allows cancellation of a lengthy operation.- Returns:
- Returns a cursor over result convex hulls.
-
execute
public Geometry execute(Geometry geometry, ProgressTracker progress_tracker)
Description copied from class:OperatorConvexHullCalculates the convex hull geometry.- Specified by:
executein classOperatorConvexHull- Parameters:
geometry- The input geometry.progress_tracker- The progress tracker. Allows cancellation of a lengthy operation.- Returns:
- Returns the convex hull. Point - Returns the same point. Envelope - returns the same envelope. MultiPoint - If the point count is one, returns the same multipoint. If the point count is two, returns a polyline of the points. Otherwise, computes and returns the convex hull polygon. Segment - Returns a polyline consisting of the segment. Polyline - If consists of only one segment, returns the same polyline. Otherwise, computes and returns the convex hull polygon. Polygon - If more than one path or if the path isn't already convex, computes and returns the convex hull polygon. Otherwise, returns the same polygon.
-
isConvex
public boolean isConvex(Geometry geom, ProgressTracker progress_tracker)
Description copied from class:OperatorConvexHullChecks whether a Geometry is convex.- Specified by:
isConvexin classOperatorConvexHull- Parameters:
geom- The input geometry to test for convex.progress_tracker- The progress tracker.- Returns:
- Returns true if the geometry is convex.
-
-