@groovy.transform.EqualsAndHashCode @groovy.transform.ToString(includePackage: false, includeNames: true) class Grid extends java.lang.Object
A Tile Grid.
Type | Name and description |
---|---|
long |
height The height or number of rows |
long |
size The number of tiles |
long |
width The width or number of columns |
double |
xResolution The x resolution |
double |
yResolution The y resolution |
long |
z The zoom level |
Constructor and description |
---|
Grid(long z, long width, long height, double xResolution, double yResolution) Create a new Grid |
Type Params | Return Type | Name and description |
---|---|---|
|
static java.lang.Object |
createGlobalGeodeticGrids(int maxZoomLevel) Create Grids for a Global Geodetic Pyramid as defined by http://wiki.osgeo.org/wiki/Tile_Map_Service_Specification#global-geodetic |
|
static java.lang.Object |
createGlobalMercatorGrids(int maxZoomLevel) Create Grids for a Global Mercator Pyramid as defined by http://wiki.openstreetmap.org/wiki/Zoom_levels |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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 height or number of rows
The number of tiles
The width or number of columns
The x resolution
The y resolution
The zoom level
Create a new Grid
z
- The zoom levelwidth
- The width or number of columnsheight
- The height or number of rowsxResolution
- The x resolutionyResolution
- The y resolutionCreate Grids for a Global Geodetic Pyramid as defined by http://wiki.osgeo.org/wiki/Tile_Map_Service_Specification#global-geodetic
maxZoomLevel
- The max zoom levelCreate Grids for a Global Mercator Pyramid as defined by http://wiki.openstreetmap.org/wiki/Zoom_levels
maxZoomLevel
- The max zoom levelGroovy Documentation