Class ProjectionHandlerFinder


  • public class ProjectionHandlerFinder
    extends Object
    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
    • Constructor Detail

      • ProjectionHandlerFinder

        public ProjectionHandlerFinder()
    • 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 projection
        projectionParameters - map of options for the projection handler, allows finer configuration of the handler from the final user of it
        Throws:
        FactoryException