|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.precision.SimpleGeometryPrecisionReducer
public class SimpleGeometryPrecisionReducer
Reduces the precision of the coordinates of a Geometry
according to the supplied PrecisionModel
, without
attempting to preserve valid topology.
In the case of Polygonal
geometries,
the topology of the resulting geometry may be invalid if
topological collapse occurs due to coordinates being shifted.
It is up to the client to check this and handle it if necessary.
Collapses may not matter for some uses. An example
is simplifying the input to the buffer algorithm.
The buffer algorithm does not depend on the validity of the input geometry.
Constructor Summary | |
---|---|
SimpleGeometryPrecisionReducer(PrecisionModel pm)
Deprecated. |
Method Summary | |
---|---|
Geometry |
reduce(Geometry geom)
Deprecated. |
static Geometry |
reduce(Geometry g,
PrecisionModel precModel)
Deprecated. Convenience method for doing precision reduction on a single geometry, with collapses removed and keeping the geometry precision model the same. |
void |
setChangePrecisionModel(boolean changePrecisionModel)
Deprecated. Sets whether the PrecisionModel of the new reduced Geometry
will be changed to be the PrecisionModel supplied to
specify the precision reduction. |
void |
setRemoveCollapsedComponents(boolean removeCollapsed)
Deprecated. Sets whether the reduction will result in collapsed components being removed completely, or simply being collapsed to an (invalid) Geometry of the same type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleGeometryPrecisionReducer(PrecisionModel pm)
Method Detail |
---|
public static Geometry reduce(Geometry g, PrecisionModel precModel)
g
- precModel
-
public void setRemoveCollapsedComponents(boolean removeCollapsed)
removeCollapsed
- if true
collapsed components will be removedpublic void setChangePrecisionModel(boolean changePrecisionModel)
PrecisionModel
of the new reduced Geometry
will be changed to be the PrecisionModel
supplied to
specify the precision reduction.
The default is to not change the precision model
changePrecisionModel
- if true
the precision model of the created Geometry will be the
the precisionModel supplied in the constructor.public Geometry reduce(Geometry geom)
|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |