Package org.geotools.renderer.crs
Class ProjectionHandlerFinder
Object
ProjectionHandlerFinder
Looks up the
ProjectionHandler 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectionHandlergetHandler(ReferencedEnvelope renderingArea, CoordinateReferenceSystem sourceCrs, boolean wrap) Returns a projection handler for the specified rendering area, or null if not foundstatic ProjectionHandlergetHandler(ReferencedEnvelope renderingArea, CoordinateReferenceSystem sourceCrs, boolean wrap, Map<String, Object> projectionParameters) Returns a projection handler for the specified rendering area, or null if not foundstatic voidsetWrapLimit(int wrapLimit) Programmatically sets the number of wraps per direction the wrapping projection handlers will apply
-
Field Details
-
WRAP_LIMIT_KEY
- See Also:
-
-
Constructor Details
-
ProjectionHandlerFinder
public ProjectionHandlerFinder()
-
-
Method Details
-
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 FactoryExceptionReturns 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
-