geotrellis.raster

Tiler

object Tiler extends AnyRef

Used to create tiled rasters, as well as tilesets on the filesystem, based on a source raster.

These files (on disk) can be used by a TileSetRasterData, or loaded into an array of rasters to be used by TileArrayRasterData.

A tile set has a base path (e.g. "foo/bar") which is used along with the "tile coordinates" (e.g. tile 0,4) to compute the path of each tile (in this case "foo/bar_0_4.arg").

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Tiler
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def buildTileLayout(re: RasterExtent, pixelCols: Int, pixelRows: Int): TileLayout

  8. def buildTileRasterExtent(tx: Int, ty: Int, re: RasterExtent, pixelCols: Int, pixelRows: Int): RasterExtent

  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def createTiledRaster(src: Raster, pixelCols: Int, pixelRows: Int): Raster

    From a raster, makes a new Raster (using an array of tiles in memory).

  11. def createTiledRasterData(src: Raster, pixelCols: Int, pixelRows: Int): TileArrayRasterData

    From a raster, makes a new TiledArrayRaster (an array of tiles in memory).

  12. def deleteTiles(tiles: TiledRasterData, name: String, path: String): Unit

    Given a path and name, deletes the relevant tileset from the disk.

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def tileName(name: String, col: Int, row: Int): String

    Given a name ("bar") a col (0), and a row (4), returns the correct name for this tile ("bar_0_4").

  24. def tilePath(path: String, name: String, col: Int, row: Int): String

    Given a path ("foo"), a name ("bar"), a col (0), and a row (4), returns the correct name for this tile ("foo/bar_0_4").

  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. def writeLayout(data: TiledRasterData, re: RasterExtent, name: String, path: String): Unit

  30. def writeTiles(data: TiledRasterData, re: RasterExtent, name: String, path: String): Unit

    Write a TiledRasterData to disk as a tile set, using the provided path and name to determine what filenames to use.

  31. def writeTilesFromFunction(pixelCols: Int, pixelRows: Int, re: RasterExtent, name: String, path: String, f: (Int, Int, TileLayout, RasterExtent) ⇒ Raster): Unit

    Write a TiledRasterData to disk as a tile set, creating each tile's data by executing a function that returns a raster.

    Write a TiledRasterData to disk as a tile set, creating each tile's data by executing a function that returns a raster.

    Note that the function will need to generate its RasterExtent from the ResolutionLayout, e.g. val rl = tileLayout.getResolutionLayout(re) val tileRasterExtent = rl.getRasterExtent(col, row)

Inherited from AnyRef

Inherited from Any