org.geotools.renderer.crs
Class WrappingProjectionHandler

java.lang.Object
  extended by org.geotools.renderer.crs.ProjectionHandler
      extended by org.geotools.renderer.crs.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 org.geotools.renderer.crs.ProjectionHandler
LOGGER
 
Constructor Summary
WrappingProjectionHandler(ReferencedEnvelope renderingEnvelope, ReferencedEnvelope validArea, double centralMeridian)
          Provides the strategy with the area we want to render and its CRS (the SPI lookup will do this step)
 
Method Summary
 com.vividsolutions.jts.geom.Geometry postProcess(com.vividsolutions.jts.geom.Geometry geometry)
          Processes the geometry already projected to the target SRS.
 boolean requiresProcessing(org.opengis.referencing.crs.CoordinateReferenceSystem geomCRS, com.vividsolutions.jts.geom.Geometry geometry)
          Returns true if the geometry needs special handling
 
Methods inherited from class org.geotools.renderer.crs.ProjectionHandler
getQueryEnvelopes, preProcess
 
Methods inherited from class java.lang.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)
Provides the strategy with the area we want to render and its CRS (the SPI lookup will do this step)

Method Detail

postProcess

public com.vividsolutions.jts.geom.Geometry postProcess(com.vividsolutions.jts.geom.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

requiresProcessing

public boolean requiresProcessing(org.opengis.referencing.crs.CoordinateReferenceSystem geomCRS,
                                  com.vividsolutions.jts.geom.Geometry geometry)
Description copied from class: ProjectionHandler
Returns true if the geometry needs special handling

Overrides:
requiresProcessing in class ProjectionHandler


Copyright © 1996-2010 Geotools. All Rights Reserved.