public class DouglasPeuckerGeometrySimplifier extends GeometrySimplifier
swigCMemOwn
Constructor and Description |
---|
DouglasPeuckerGeometrySimplifier(float tolerance)
Constructs a new simplifier, given tolerance.
|
DouglasPeuckerGeometrySimplifier(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(DouglasPeuckerGeometrySimplifier obj) |
Geometry |
simplify(Geometry geometry,
float scale)
Perform the simplification of the given geometry, given relative scale.
|
static DouglasPeuckerGeometrySimplifier |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
equals, getCPtr, hashCode
public DouglasPeuckerGeometrySimplifier(long cPtr, boolean cMemoryOwn)
public DouglasPeuckerGeometrySimplifier(float tolerance)
tolerance
- The maximum error for simplification. The tolerance value gives maximum error in pixels.public static long getCPtr(DouglasPeuckerGeometrySimplifier obj)
protected void finalize()
finalize
in class GeometrySimplifier
public void delete()
delete
in class GeometrySimplifier
public static DouglasPeuckerGeometrySimplifier swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public Geometry simplify(Geometry geometry, float scale)
GeometrySimplifier
simplify
in class GeometrySimplifier
geometry
- The geometry to simplify.scale
- Relative scale for simplification, this is proportional to 2^zoom.public java.lang.String swigGetClassName()
swigGetClassName
in class GeometrySimplifier
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
in class GeometrySimplifier