|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectProjectionHandler
public class ProjectionHandler
A class that can perform transformations on geometries to handle the singularity of the rendering CRS, deal with geometries that are crossing the dateline, and eventually wrap them around to produce a seamless continuous map effect.
This basic implementation will cut the geometries that get outside of the area of validity of the projection (as provided by the constructor) WARNING: this API is not finalized and is meant to be used by StreamingRenderer only
Field Summary | |
---|---|
protected static Logger |
LOGGER
|
Constructor Summary | |
---|---|
ProjectionHandler(ReferencedEnvelope renderingEnvelope,
ReferencedEnvelope validArea)
|
Method Summary | |
---|---|
List<ReferencedEnvelope> |
getQueryEnvelopes(CoordinateReferenceSystem queryCRS)
Returns a set of envelopes that will be used to query the data given the specified rendering envelope and the current query envelope |
ReferencedEnvelope |
getRenderingEnvelope()
Returns the current rendering envelope |
Geometry |
postProcess(MathTransform mt,
Geometry geometry)
Processes the geometry already projected to the target SRS. |
Geometry |
preProcess(CoordinateReferenceSystem geomCRS,
Geometry geometry)
Pre processes the geometry, e.g. cuts it, splits it, etc. in its native srs. |
boolean |
requiresProcessing(CoordinateReferenceSystem geomCRS,
Geometry geometry)
Returns true if the geometry needs special handling |
void |
setRenderingEnvelope(ReferencedEnvelope renderingEnvelope)
Sets the current rendering envelope. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger LOGGER
Constructor Detail |
---|
public ProjectionHandler(ReferencedEnvelope renderingEnvelope, ReferencedEnvelope validArea)
Method Detail |
---|
public ReferencedEnvelope getRenderingEnvelope()
public void setRenderingEnvelope(ReferencedEnvelope renderingEnvelope)
public List<ReferencedEnvelope> getQueryEnvelopes(CoordinateReferenceSystem queryCRS) throws TransformException, FactoryException
TransformException
FactoryException
public boolean requiresProcessing(CoordinateReferenceSystem geomCRS, Geometry geometry)
public Geometry preProcess(CoordinateReferenceSystem geomCRS, Geometry geometry) throws TransformException, FactoryException
TransformException
FactoryException
public Geometry postProcess(MathTransform mt, Geometry geometry)
mt
- optional reverse transformation to facilitate unwrapping
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |