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
    Andrea Aime - OpenGeo
    • Field Detail


        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)
        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.
        postProcess in class ProjectionHandler
        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