com.esri.core.geometry
Class OperatorOffset

java.lang.Object
  extended by com.esri.core.geometry.Operator
      extended by com.esri.core.geometry.OperatorOffset

public abstract class OperatorOffset
extends Operator


Nested Class Summary
static class OperatorOffset.JoinType
          Join types for the offset operation.
 
Nested classes/interfaces inherited from class com.esri.core.geometry.Operator
Operator.Type
 
Constructor Summary
OperatorOffset()
           
 
Method Summary
abstract  GeometryCursor execute(GeometryCursor inputGeometries, SpatialReference sr, double distance, OperatorOffset.JoinType joins, double bevelRatio, double flattenError, ProgressTracker progressTracker)
          Creates offset version of the input geometries.
abstract  Geometry execute(Geometry inputGeometry, SpatialReference sr, double distance, OperatorOffset.JoinType joins, double bevelRatio, double flattenError, ProgressTracker progressTracker)
          Creates offset version of the input geometry.
 Operator.Type getType()
           
static OperatorOffset local()
           
 
Methods inherited from class com.esri.core.geometry.Operator
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperatorOffset

public OperatorOffset()
Method Detail

getType

public Operator.Type getType()
Specified by:
getType in class Operator

execute

public abstract GeometryCursor execute(GeometryCursor inputGeometries,
                                       SpatialReference sr,
                                       double distance,
                                       OperatorOffset.JoinType joins,
                                       double bevelRatio,
                                       double flattenError,
                                       ProgressTracker progressTracker)
Creates offset version of the input geometries. The offset operation creates a geometry that is a constant distance from an input polyline or polygon. It is similar to buffering, but produces a one sided result. If offsetDistance > 0, then the offset geometry is constructed to the right of the oriented input geometry, otherwise it is constructed to the left. For a simple polygon, the orientation of outer rings is clockwise and for inner rings it is counter clockwise. So the "right side" of a simple polygon is always its inside. The bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection can be from the input curve before it is beveled.

Parameters:
inputGeometries - The geometries to calculate offset for. Point and MultiPoint are not supported.
sr - The SpatialReference of the Geometries.
distance - The offset distance for the Geometries.
joins - The join type of the offset geometry.
bevelRatio - The ratio used to produce a bevel join instead of a miter join (used only when joins is Miter)
flattenError - The maximum distance of the resulting segments compared to the true circular arc (used only when joins is Round). If flattenError is 0, tolerance value is used. Also, the algorithm never produces more than around 180 vertices for each round join.
Returns:
Returns the result of the offset operation.

execute

public abstract Geometry execute(Geometry inputGeometry,
                                 SpatialReference sr,
                                 double distance,
                                 OperatorOffset.JoinType joins,
                                 double bevelRatio,
                                 double flattenError,
                                 ProgressTracker progressTracker)
Creates offset version of the input geometry. The offset operation creates a geometry that is a constant distance from an input polyline or polygon. It is similar to buffering, but produces a one sided result. If offsetDistance > 0, then the offset geometry is constructed to the right of the oriented input geometry, otherwise it is constructed to the left. For a simple polygon, the orientation of outer rings is clockwise and for inner rings it is counter clockwise. So the "right side" of a simple polygon is always its inside. The bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection can be from the input curve before it is beveled.

Parameters:
inputGeometry - The geometry to calculate offset for. Point and MultiPoint are not supported.
sr - The SpatialReference of the Geometries.
distance - The offset distance for the Geometries.
joins - The join type of the offset geometry.
bevelRatio - The ratio used to produce a bevel join instead of a miter join (used only when joins is Miter)
flattenError - The maximum distance of the resulting segments compared to the true circular arc (used only when joins is Round). If flattenError is 0, tolerance value is used. Also, the algorithm never produces more than around 180 vetices for each round join.
Returns:
Returns the result of the offset operation.

local

public static OperatorOffset local()


Copyright © 2013. All Rights Reserved.