@groovy.transform.EqualsAndHashCode @groovy.transform.ToString(includeNames: true, excludes: [grids, minGrid, maxGrid]) class Pyramid extends java.lang.Object
The Tile Pyramid
Modifiers | Name | Description |
---|---|---|
static enum |
Pyramid.Origin |
The Origin enumeration |
Type | Name and description |
---|---|
Bounds |
bounds The Bounds |
java.util.List<Grid> |
grids The List of Grids |
Pyramid.Origin |
origin The Origin |
Projection |
proj The Projection |
int |
tileHeight The tile height |
int |
tileWidth The tile width |
Constructor and description |
---|
Pyramid
() |
Type Params | Return Type | Name and description |
---|---|---|
|
Bounds |
bounds(java.awt.Point p, long z, int width, int height) Find the Bounds around a Point at a given zoom level for a canvas of a given width and height |
|
Bounds |
bounds(Tile t) Calculate the Bounds for the given Tile |
|
static Pyramid |
createGlobalGeodeticPyramid(Map options) Create a Pyramid with Grids for common global geodetic tile sets. |
|
static Pyramid |
createGlobalMercatorPyramid(Map options) Create a Pyramid with Grids for common global web mercator tile sets. |
|
static Pyramid |
fromString(java.lang.String str) Create a Pyramid from a String. |
|
Grid |
getMaxGrid() Get the max Grid by zoom level |
|
Grid |
getMinGrid() Get the min Grid by zoom level |
|
Map |
getTileCoordinates(Bounds b, long z) Get Tile coordinates (minX, minY, maxX, maxY) for the given Bounds and zoom level |
|
Map |
getTileCoordinates(Bounds b, Grid g) Get Tile coordinates (minX, minY, maxX, maxY) for the given Bounds and Grid |
|
Grid |
grid(long z) Find the Grid for the given zoom level |
|
Grid |
grid(Bounds b, double resX, double resY) Find the best Grid for the given Bounds and XY resolutions |
|
Grid |
grid(Bounds b, int w, int h) Find the best Grid for the given Bounds and image width and height |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The Bounds
The List of Grids
The Origin
The Projection
The tile height
The tile width
Find the Bounds around a Point at a given zoom level for a canvas of a given width and height
p
- The Point (in the Pyramid's projection)z
- The zoom levelwidth
- The canvas widthheight
- The canvas heightCalculate the Bounds for the given Tile
t
- The TileCreate a Pyramid with Grids for common global geodetic tile sets. http://wiki.osgeo.org/wiki/Tile_Map_Service_Specification#global-geodetic
options
- The optional named parameters:
Create a Pyramid with Grids for common global web mercator tile sets.
options
- The optional named parameters:
Create a Pyramid from a String. The String can be a well known name (GlobalMercator or GlobalMercatorBottomLeft), a JSON String or File, an XML String or File, or a CSV String or File
str
- A Pyramid String or FileGet the max Grid by zoom level
Get the min Grid by zoom level
Get Tile coordinates (minX, minY, maxX, maxY) for the given Bounds and zoom level
b
- The Boundsz
- The zoom levelGet Tile coordinates (minX, minY, maxX, maxY) for the given Bounds and Grid
b
- The Boundsg
- The GridFind the Grid for the given zoom level
z
- The zoom levelFind the best Grid for the given Bounds and XY resolutions
b
- The BoundsresX
- The x resolutionresY
- The y resolutionGroovy Documentation