class MapKeyTransform extends Serializable
Transforms between geographic map coordinates and spatial keys. Since geographic point can only be mapped to a grid tile that contains that point, transformation from Extent to GridBounds to Extent will likely not produce the original geographic extent, but a larger one.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MapKeyTransform
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- def apply(col: Int, row: Int): Extent
- def apply(key: SpatialKey): Extent
- def apply[K](key: K)(implicit arg0: SpatialComponent[K]): Extent
- def apply(x: Double, y: Double): SpatialKey
- def apply(p: Point): SpatialKey
- def apply(gridBounds: TileBounds): Extent
- def apply(otherExtent: Extent): TileBounds
- def boundsToExtent(gridBounds: TileBounds): Extent
- val extent: Extent
- def extentToBounds(otherExtent: Extent): TileBounds
-
def
keyToExtent(col: Int, row: Int): Extent
'col' and 'row' correspond to a SpatialKey column and row in some grid.
-
def
keyToExtent[K](key: K)(implicit arg0: SpatialComponent[K]): Extent
Get the Extent corresponding to a SpatialComponent of K in some zoom level.
-
def
keyToExtent(key: SpatialKey): Extent
Get the Extent corresponding to a SpatialKey in some zoom level.
-
def
keysForGeometry[G <: Geometry](g: G): Set[SpatialKey]
For some given Geometry, find the unique SpatialKeys for all Tile extents that it touches.
- val layoutCols: Int
- val layoutRows: Int
- def multiLineToKeys(multiLine: MultiLineString): Set[SpatialKey]
- def multiPolygonToKeys(multiPolygon: MultiPolygon): Set[SpatialKey]
-
def
pointToKey(x: Double, y: Double): SpatialKey
Fetch the SpatialKey that corresponds to some coordinates in some CRS on the Earth.
-
def
pointToKey(p: Point): SpatialKey
Fetch the SpatialKey that corresponds to some coordinates in some CRS on the Earth.
- lazy val tileHeight: Double
- lazy val tileWidth: Double