Class/Object

org.locationtech.rasterframes.model

FixedRasterExtent

Related Docs: object FixedRasterExtent | package model

Permalink

case class FixedRasterExtent(extent: Extent, cellwidth: Double, cellheight: Double, cols: Int, rows: Int) extends GridExtent with Grid with Product with Serializable

This class is a copy of the GeoTrellis 2.x RasterExtent, with [GT 3.0 fixes](https://github.com/locationtech/geotrellis/pull/2953/files) incorporated into the new GridExtent[T] class. This class should be removed after RasterFrames is upgraded to GT 3.x.

Linear Supertypes
Product, Equals, Grid, GridExtent, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FixedRasterExtent
  2. Product
  3. Equals
  4. Grid
  5. GridExtent
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FixedRasterExtent(extent: Extent, cellwidth: Double, cellheight: Double, cols: Int, rows: Int)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def adjustTo(tileLayout: TileLayout): FixedRasterExtent

    Permalink

    Adjusts a raster extent so that it can encompass the tile layout.

    Adjusts a raster extent so that it can encompass the tile layout. Will resample the extent, but keep the resolution, and preserve north and west borders

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def cellSize: CellSize

    Permalink
    Definition Classes
    GridExtent
  7. val cellheight: Double

    Permalink
    Definition Classes
    FixedRasterExtent → GridExtent
  8. val cellwidth: Double

    Permalink
    Definition Classes
    FixedRasterExtent → GridExtent
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val cols: Int

    Permalink
    Definition Classes
    FixedRasterExtent → Grid
  11. def combine(that: FixedRasterExtent): FixedRasterExtent

    Permalink

    Combine two different FixedRasterExtents (which must have the same cellsizes).

    Combine two different FixedRasterExtents (which must have the same cellsizes). The result is a new extent at the same resolution.

  12. def createAlignedGridExtent(targetExtent: Extent, alignmentPoint: Point): GridExtent

    Permalink
    Definition Classes
    GridExtent
  13. def createAlignedGridExtent(targetExtent: Extent): GridExtent

    Permalink
    Definition Classes
    GridExtent
  14. def createAlignedRasterExtent(targetExtent: Extent): RasterExtent

    Permalink
    Definition Classes
    GridExtent
  15. def dimensions: (Int, Int)

    Permalink
    Definition Classes
    Grid
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(o: Any): Boolean

    Permalink
    Definition Classes
    GridExtent → AnyRef → Any
  18. val extent: Extent

    Permalink
    Definition Classes
    FixedRasterExtent → GridExtent
  19. def extentFor(gridBounds: GridBounds, clamp: Boolean): Extent

    Permalink
    Definition Classes
    GridExtent
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def gridBounds: GridBounds

    Permalink
    Definition Classes
    Grid
  23. def gridBoundsFor(subExtent: Extent, clamp: Boolean = true): GridBounds

    Permalink

    Gets the GridBounds aligned with this FixedRasterExtent that is the smallest subgrid of containing all points within the extent.

    Gets the GridBounds aligned with this FixedRasterExtent that is the smallest subgrid of containing all points within the extent. The extent is considered inclusive on it's north and west borders, exclusive on it's east and south borders. See FixedRasterExtent for a discussion of grid and extent boundary concepts.

    The 'clamp' flag determines whether or not to clamp the GridBounds to the FixedRasterExtent; defaults to true. If false, GridBounds can contain negative values, or values outside of this FixedRasterExtent's boundaries.

    subExtent

    The extent to get the grid bounds for

    clamp

    A boolean

  24. final def gridColToMap(col: Int): Double

    Permalink

    For a give column, find the corresponding x-coordinate in the grid of the present FixedRasterExtent.

  25. final def gridRowToMap(row: Int): Double

    Permalink

    For a give row, find the corresponding y-coordinate in the grid of the present FixedRasterExtent.

  26. final def gridToMap(col: Int, row: Int): (Double, Double)

    Permalink

    The map coordinate of a grid cell is the center point.

  27. def hashCode(): Int

    Permalink
    Definition Classes
    GridExtent → AnyRef → Any
  28. def isGridExtentAligned(): Boolean

    Permalink
    Definition Classes
    GridExtent
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. final def mapToGrid(p: Point): (Int, Int)

    Permalink

    Convert a point to grid coordinates (col, row).

  31. final def mapToGrid(mapCoord: (Double, Double)): (Int, Int)

    Permalink

    Convert map coordinate tuple (x, y) to grid coordinates (col, row).

  32. final def mapToGrid(x: Double, y: Double): (Int, Int)

    Permalink

    Convert map coordinates (x, y) to grid coordinates (col, row).

  33. final def mapXToGrid(x: Double): Int

    Permalink

    Convert map coordinate x to grid coordinate column.

  34. final def mapXToGridDouble(x: Double): Double

    Permalink

    Convert map coordinate x to grid coordinate column.

  35. final def mapYToGrid(y: Double): Int

    Permalink

    Convert map coordinate y to grid coordinate row.

  36. final def mapYToGridDouble(y: Double): Double

    Permalink

    Convert map coordinate y to grid coordinate row.

  37. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  38. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  40. def rasterExtentFor(gridBounds: GridBounds): FixedRasterExtent

    Permalink

    Returns a new FixedRasterExtent which represents the GridBounds in relation to this FixedRasterExtent.

  41. val rows: Int

    Permalink
    Definition Classes
    FixedRasterExtent → Grid
  42. def size: Int

    Permalink
    Definition Classes
    Grid
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. def toRasterExtent(): RasterExtent

    Permalink
    Definition Classes
    GridExtent
  45. def toString(): String

    Permalink
    Definition Classes
    GridExtent → AnyRef → Any
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def withDimensions(targetCols: Int, targetRows: Int): FixedRasterExtent

    Permalink

    Returns a FixedRasterExtent with the same extent and the given number of columns and rows.

  50. def withResolution(cellSize: CellSize): FixedRasterExtent

    Permalink

    Returns a FixedRasterExtent with the same extent, but a modified number of columns and rows based on the given cell height and width.

  51. def withResolution(targetCellWidth: Double, targetCellHeight: Double): FixedRasterExtent

    Permalink

    Returns a RasterExtent with the same extent, but a modified number of columns and rows based on the given cell height and width.

Inherited from Product

Inherited from Equals

Inherited from Grid

Inherited from GridExtent

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped