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 effectModifier and Type | Field and Description |
---|---|
static String |
DATELINE_WRAPPING_CHECK_ENABLED |
ADVANCED_PROJECTION_DENSIFY, datelineX, densify, EPS, geometryCRS, LOGGER, noReprojection, queryAcrossDateline, renderingEnvelope, sourceCRS, targetCRS, targetHalfCircle, 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.
|
Geometry |
preProcess(Geometry geometry)
Pre processes the geometry, e.g. cuts it, splits it, etc. in its native 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.
|
void |
setProjectionParameters(Map<String,Object> projectionParameters)
Set one of the supported projection parameters: - datelineWrappingCheckEnabled (boolean) if
false disables the heuristic for dateline wrapping check (true by default)
|
accumulateTransforms, addGeometries, computeDatelineX, concatenateTransforms, densify, getProjectedEnvelope, getQueryEnvelopes, getRenderingEnvelope, getRenderingTransform, getSourceCRS, getSourceEnvelopes, getValidArea, getValidAreaBounds, intersect, mergeEnvelopes, reprojectEnvelopes, setCentralMeridian, transformEnvelope
public static final String DATELINE_WRAPPING_CHECK_ENABLED
public WrappingProjectionHandler(ReferencedEnvelope renderingEnvelope, ReferencedEnvelope validArea, CoordinateReferenceSystem sourceCrs, double centralMeridian, int maxWraps) throws FactoryException
FactoryException
public void setProjectionParameters(Map<String,Object> projectionParameters)
setProjectionParameters
in class ProjectionHandler
public Geometry preProcess(Geometry geometry) throws TransformException, FactoryException
ProjectionHandler
preProcess
in class ProjectionHandler
TransformException
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)
Copyright © 1996–2022 Geotools. All rights reserved.