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
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapKeyTransform
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapKeyTransform(extent: Extent, layoutCols: Int, layoutRows: Int)

Value Members

  1. def apply(col: Int, row: Int): Extent
  2. def apply(key: SpatialKey): Extent
  3. def apply[K](key: K)(implicit arg0: SpatialComponent[K]): Extent
  4. def apply(x: Double, y: Double): SpatialKey
  5. def apply(p: Point): SpatialKey
  6. def apply(gridBounds: TileBounds): Extent
  7. def apply(otherExtent: Extent): TileBounds
  8. def boundsToExtent(gridBounds: TileBounds): Extent
  9. val extent: Extent
  10. def extentToBounds(otherExtent: Extent): TileBounds
  11. def keyToExtent(col: Int, row: Int): Extent

    'col' and 'row' correspond to a SpatialKey column and row in some grid.

  12. def keyToExtent[K](key: K)(implicit arg0: SpatialComponent[K]): Extent

    Get the Extent corresponding to a SpatialComponent of K in some zoom level.

  13. def keyToExtent(key: SpatialKey): Extent

    Get the Extent corresponding to a SpatialKey in some zoom level.

  14. def keysForGeometry[G <: Geometry](g: G): Set[SpatialKey]

    For some given Geometry, find the unique SpatialKeys for all Tile extents that it touches.

  15. val layoutCols: Int
  16. val layoutRows: Int
  17. def multiLineToKeys(multiLine: MultiLineString): Set[SpatialKey]
  18. def multiPolygonToKeys(multiPolygon: MultiPolygon): Set[SpatialKey]
  19. def pointToKey(x: Double, y: Double): SpatialKey

    Fetch the SpatialKey that corresponds to some coordinates in some CRS on the Earth.

  20. def pointToKey(p: Point): SpatialKey

    Fetch the SpatialKey that corresponds to some coordinates in some CRS on the Earth.

  21. lazy val tileHeight: Double
  22. lazy val tileWidth: Double