public abstract class OperatorOffset extends Operator
Modifier and Type | Class and Description |
---|---|
static class |
OperatorOffset.JoinType
Join types for the offset operation.
|
Operator.Type
Constructor and Description |
---|
OperatorOffset() |
Modifier and Type | Method and Description |
---|---|
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() |
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
public Operator.Type getType()
public abstract GeometryCursor execute(GeometryCursor inputGeometries, SpatialReference sr, double distance, OperatorOffset.JoinType joins, double bevelRatio, double flattenError, ProgressTracker progressTracker)
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.public abstract Geometry execute(Geometry inputGeometry, SpatialReference sr, double distance, OperatorOffset.JoinType joins, double bevelRatio, double flattenError, ProgressTracker progressTracker)
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.public static OperatorOffset local()
Copyright © 2018. All rights reserved.