Package org.geotools.renderer.crs
Class ProjectionHandlerFinder
- Object
-
- ProjectionHandlerFinder
-
public class ProjectionHandlerFinder extends Object
Looks up theProjectionHandler
for the specified rendering area. WARNING: this API is not finalized and is meant to be used by StreamingRenderer only- Author:
- Andrea Aime - OpenGeo
-
-
Field Summary
Fields Modifier and Type Field Description static String
WRAP_LIMIT_KEY
-
Constructor Summary
Constructors Constructor Description ProjectionHandlerFinder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProjectionHandler
getHandler(ReferencedEnvelope renderingArea, CoordinateReferenceSystem sourceCrs, boolean wrap)
Returns a projection handler for the specified rendering area, or null if not foundstatic ProjectionHandler
getHandler(ReferencedEnvelope renderingArea, CoordinateReferenceSystem sourceCrs, boolean wrap, Map<String,Object> projectionParameters)
Returns a projection handler for the specified rendering area, or null if not foundstatic void
setWrapLimit(int wrapLimit)
Programmatically sets the number of wraps per direction the wrapping projection handlers will apply
-
-
-
Field Detail
-
WRAP_LIMIT_KEY
public static final String WRAP_LIMIT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setWrapLimit
public static void setWrapLimit(int wrapLimit)
Programmatically sets the number of wraps per direction the wrapping projection handlers will apply
-
getHandler
public static ProjectionHandler getHandler(ReferencedEnvelope renderingArea, CoordinateReferenceSystem sourceCrs, boolean wrap) throws FactoryException
Returns a projection handler for the specified rendering area, or null if not found- Parameters:
renderingArea
- The area to be painted (mind, the CRS must be property set for projection handling to work)wrap
- Enable continuous map wrapping if it's possible for the current projection- Throws:
FactoryException
-
getHandler
public static ProjectionHandler getHandler(ReferencedEnvelope renderingArea, CoordinateReferenceSystem sourceCrs, boolean wrap, Map<String,Object> projectionParameters) throws FactoryException
Returns a projection handler for the specified rendering area, or null if not found- Parameters:
renderingArea
- The area to be painted (mind, the CRS must be property set for projection handling to work)wrap
- Enable continuous map wrapping if it's possible for the current projectionprojectionParameters
- map of options for the projection handler, allows finer configuration of the handler from the final user of it- Throws:
FactoryException
-
-