org.geotools.renderer.crs
Class WrappingProjectionHandler

Object
  extended by ProjectionHandler
      extended by 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 Summary
protected  double radius
           
 
Fields inherited from class ProjectionHandler
LOGGER
 
Constructor Summary
WrappingProjectionHandler(ReferencedEnvelope renderingEnvelope, ReferencedEnvelope validArea, double centralMeridian, int maxWraps)
          Provides the strategy with the area we want to render and its CRS (the SPI lookup will do this step)
 
Method Summary
 Geometry postProcess(MathTransform mt, Geometry geometry)
          Processes the geometry already projected to the target SRS.
 boolean requiresProcessing(CoordinateReferenceSystem geomCRS, Geometry geometry)
          Returns true if the geometry needs special handling
 
Methods inherited from class ProjectionHandler
getQueryEnvelopes, getRenderingEnvelope, preProcess, setRenderingEnvelope
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

radius

protected double radius
Constructor Detail

WrappingProjectionHandler

public WrappingProjectionHandler(ReferencedEnvelope renderingEnvelope,
                                 ReferencedEnvelope validArea,
                                 double centralMeridian,
                                 int maxWraps)
Provides the strategy with the area we want to render and its CRS (the SPI lookup will do this step)

Method Detail

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

requiresProcessing

public boolean requiresProcessing(CoordinateReferenceSystem geomCRS,
                                  Geometry geometry)
Description copied from class: ProjectionHandler
Returns true if the geometry needs special handling

Overrides:
requiresProcessing in class ProjectionHandler


Copyright © 1996-2014 Geotools. All Rights Reserved.