/** * Returns a projection handler for the specified rendering area, or null if not found * * @param renderingArea The area to be painted (mind, the CRS must be property set for * projection handling to work) * @param wrap Enable continuous map wrapping if it's possible for the current projection * @throws FactoryException */ public static ProjectionHandler getHandler( ReferencedEnvelope renderingArea, CoordinateReferenceSystem sourceCrs, boolean wrap) throws FactoryException { if (renderingArea.getCoordinateReferenceSystem() == null) return null; for (ProjectionHandlerFactory factory : getProjectionHandlerFactories()) { ProjectionHandler handler = factory.getHandler(renderingArea, sourceCrs, wrap, WRAP_LIMIT); if (handler != null) return handler; } return null; } }