public final class RendererUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static Envelope |
createMapEnvelope(Rectangle paintArea,
AffineTransform worldToScreen)
Creates the map's bounding box in real world coordinates.
|
static AffineTransform |
worldToScreenTransform(ReferencedEnvelope mapExtent,
Rectangle paintArea)
Sets up the affine transform
NOTE It is worth to note that here we do not take into account the half a pixel
translation stated by ogc for coverages bounds.
|
public static AffineTransform worldToScreenTransform(ReferencedEnvelope mapExtent, Rectangle paintArea)
NOTE It is worth to note that here we do not take into account the half a pixel translation stated by ogc for coverages bounds. One reason is that WMS 1.1.1 does not follow it!!!
mapExtent
- the map extentpaintArea
- the size of the rendering output areapublic static Envelope createMapEnvelope(Rectangle paintArea, AffineTransform worldToScreen) throws NoninvertibleTransformException
worldToScreen
- a transform which converts World coordinates to screen pixel
coordinates. No assumptions are done on axis order as this is assumed to be
pre-calculated. The affine transform may specify an rotation, in case the envelope will
encompass the complete (rotated) world polygon.paintArea
- the size of the rendering output areaNoninvertibleTransformException
Copyright © 1996–2019 Geotools. All rights reserved.