public class WrappingProjectionHandler extends ProjectionHandler
ProjectionHandler
for projections that do warp in the East/West direction, it will
replicate the geometries generating a Google Maps like effectdatelineX, EPS, geometryCRS, LOGGER, noReprojection, queryAcrossDateline, radius, renderingEnvelope, sourceCRS, targetCRS, validaAreaTester, validArea, validAreaBounds
Constructor and Description |
---|
WrappingProjectionHandler(ReferencedEnvelope renderingEnvelope,
ReferencedEnvelope validArea,
CoordinateReferenceSystem sourceCrs,
double centralMeridian,
int maxWraps)
Provides the strategy with the area we want to render and its CRS (the SPI lookup will do
this step)
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDatelineWrappingCheckEnabled() |
Geometry |
postProcess(MathTransform mt,
Geometry geometry)
Processes the geometry already projected to the target SRS.
|
boolean |
requiresProcessing(Geometry geometry)
Returns true if the geometry needs special handling
|
void |
setDatelineWrappingCheckEnabled(boolean datelineWrappingCheckEnabled)
Enables the check using the "half world" heuristic on the input geometries, if larger it
assumes they spanned the dateline.
|
accumulateTransforms, addGeometries, computeDatelineX, concatenateTransforms, getQueryEnvelopes, getRenderingEnvelope, getRenderingTransform, getSourceCRS, getSourceEnvelopes, getValidAreaBounds, intersect, mergeEnvelopes, preProcess, reprojectEnvelopes, setCentralMeridian, transformEnvelope
public WrappingProjectionHandler(ReferencedEnvelope renderingEnvelope, ReferencedEnvelope validArea, CoordinateReferenceSystem sourceCrs, double centralMeridian, int maxWraps) throws FactoryException
FactoryException
public Geometry postProcess(MathTransform mt, Geometry geometry)
ProjectionHandler
postProcess
in class ProjectionHandler
mt
- optional reverse transformation to facilitate unwrappingpublic boolean requiresProcessing(Geometry geometry)
ProjectionHandler
requiresProcessing
in class ProjectionHandler
public boolean isDatelineWrappingCheckEnabled()
public void setDatelineWrappingCheckEnabled(boolean datelineWrappingCheckEnabled)
datelineWrappingCheckEnabled
- Copyright © 1996–2019 Geotools. All rights reserved.