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 effect| Modifier 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, getValidAreaBounds, intersect, mergeEnvelopes, reprojectEnvelopes, setCentralMeridian, transformEnvelopepublic static final String DATELINE_WRAPPING_CHECK_ENABLED
public WrappingProjectionHandler(ReferencedEnvelope renderingEnvelope, ReferencedEnvelope validArea, CoordinateReferenceSystem sourceCrs, double centralMeridian, int maxWraps) throws FactoryException
FactoryExceptionpublic void setProjectionParameters(Map<String,Object> projectionParameters)
setProjectionParameters in class ProjectionHandlerpublic Geometry preProcess(Geometry geometry)
throws TransformException,
FactoryException
ProjectionHandlerpreProcess in class ProjectionHandlerTransformExceptionFactoryExceptionpublic Geometry postProcess(MathTransform mt, Geometry geometry)
ProjectionHandlerpostProcess in class ProjectionHandlermt - optional reverse transformation to facilitate unwrappingpublic boolean requiresProcessing(Geometry geometry)
ProjectionHandlerrequiresProcessing in class ProjectionHandlerpublic boolean isDatelineWrappingCheckEnabled()
public void setDatelineWrappingCheckEnabled(boolean datelineWrappingCheckEnabled)
Copyright © 1996–2021 Geotools. All rights reserved.