case class GeoTrellisPath(value: String, layerName: String, zoomLevel: Int, bandCount: Option[Int]) extends SourcePath with Product with Serializable
Represents a path that points to a GeoTrellis layer saved in a catalog.
- value
Path to the layer. This can be either an Avro or COG layer. The given path needs to be in a
URI
format that include the following query parameters:- layer: The name of the layer.
- zoom: The zoom level to be read.
- band_count: The number of bands of each Tile in the layer. Optional.
If a scheme is not provided,
file
is assumed. Both relative and absolute file paths are supported. In addition, this path can be prefixed with, gt+ to signify that the target path is to be read in only by GeotrellisRasterSource.
"s3://bucket/catalog?layer=name&zoom=10"
, "hdfs://data-folder/catalog?layer=name&zoom=12&band_count=5"
, "gt+file:///tmp/catalog?layer=name&zoom=5"
, "/tmp/catalog?layer=name&zoom=5"
- Note
The order of the query parameters does not matter.
- Alphabetic
- By Inheritance
- GeoTrellisPath
- Product
- Equals
- SourcePath
- SourceName
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
GeoTrellisPath(value: String, layerName: String, zoomLevel: Int, bandCount: Option[Int])
- value
Path to the layer. This can be either an Avro or COG layer. The given path needs to be in a
URI
format that include the following query parameters:- layer: The name of the layer.
- zoom: The zoom level to be read.
- band_count: The number of bands of each Tile in the layer. Optional.
If a scheme is not provided,
file
is assumed. Both relative and absolute file paths are supported. In addition, this path can be prefixed with, gt+ to signify that the target path is to be read in only by GeotrellisRasterSource.
Value Members
- val bandCount: Option[Int]
- def layerId: LayerId
- val layerName: String
-
def
toString(): String
- Definition Classes
- SourcePath → AnyRef → Any
-
def
toURI: URI
- Definition Classes
- SourcePath
-
val
value: String
The given path to the data.
The given path to the data. This can be formatted in a number of different ways depending on which RasterSource is to be used. For more information on the different ways of formatting this string, see the docs on the DataPath for that given soure.
- Definition Classes
- GeoTrellisPath → SourcePath
- val zoomLevel: Int