Class WrappingProjectionHandler


  • public class WrappingProjectionHandler
    extends ProjectionHandler
    A ProjectionHandler for projections that do warp in the East/West direction, it will replicate the geometries generating a Google Maps like effect
    Author:
    Andrea Aime - OpenGeo
    • Field Detail

      • DATELINE_WRAPPING_CHECK_ENABLED

        public static final String DATELINE_WRAPPING_CHECK_ENABLED
        See Also:
        Constant Field Values
    • Method Detail

      • setProjectionParameters

        public 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)
        Overrides:
        setProjectionParameters in class ProjectionHandler
      • postProcess

        public Geometry postProcess​(MathTransform mt,
                                    Geometry geometry)
        Description copied from class: ProjectionHandler
        Processes the geometry already projected to the target SRS. May return null if the geometry is not to be drawn.
        Overrides:
        postProcess in class ProjectionHandler
        Parameters:
        mt - optional reverse transformation to facilitate unwrapping
      • isDatelineWrappingCheckEnabled

        public boolean isDatelineWrappingCheckEnabled()
      • setDatelineWrappingCheckEnabled

        public void setDatelineWrappingCheckEnabled​(boolean datelineWrappingCheckEnabled)
        Enables the check using the "half world" heuristic on the input geometries, if larger it assumes they spanned the dateline. Enabled by default