|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDecimator
public final class Decimator
Accepts geometries and collapses all the vertices that will be rendered to
the same pixel. This class works only if the Geometries are based on
LiteCoordinateSequence
instances.
modules/library/main (gt-main.jar)
Constructor Summary | |
---|---|
Decimator(double spanx,
double spany)
|
|
Decimator(MathTransform screenToWorld)
Deprecated. use the other constructor (with rectange) see javadox. This works fine, but it the results are often poor if you're also doing CRS xforms. |
|
Decimator(MathTransform screenToWorld,
Rectangle paintArea)
djb - noticed that the old way of finding out the decimation is based on the (0,0) location of the image. |
|
Decimator(MathTransform screenToWorld,
Rectangle paintArea,
double pixelDistance)
Builds a decimator that will generalize geometries so that two subsequent points will be at least pixelDistance away from each other when painted on the screen. |
Method Summary | |
---|---|
static double[] |
computeGeneralizationDistances(MathTransform screenToWorld,
Rectangle paintArea,
double pixelDistance)
Given a full transformation from screen to world and the paint area computes a best guess of the maxium generalization distance that won't make the transformations induced by the generalization visible on screen. |
void |
decimate(Geometry geom)
decimates JTS geometries. |
void |
decimateTransformGeneralize(Geometry geometry,
MathTransform transform)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Decimator(MathTransform screenToWorld, Rectangle paintArea, double pixelDistance)
screenToWorld
- paintArea
- pixelDistance
- public Decimator(MathTransform screenToWorld, Rectangle paintArea)
screenToWorld
- paintArea
- public Decimator(MathTransform screenToWorld)
TransformException
public Decimator(double spanx, double spany)
Method Detail |
---|
public static double[] computeGeneralizationDistances(MathTransform screenToWorld, Rectangle paintArea, double pixelDistance) throws TransformException
In other words, it computes how long a pixel is in the native spatial reference system of the data
screenToWorld
- paintArea
-
TransformException
public final void decimateTransformGeneralize(Geometry geometry, MathTransform transform) throws TransformException
TransformException
public final void decimate(Geometry geom)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |