biggis-project / biggis-landuse

Land use update detection
http://biggis-project.eu/biggis-docs/demos/landuse/
11 stars 3 forks source link

Feature/api read rdd from layer #12

Closed aklink closed 6 years ago

aklink commented 6 years ago

adds biggis.landuse.api.readRddFromLayer

val inputRdd : RDD[(SpatialKey, MultibandTile)] with Metadata[TileLayerMetadata[SpatialKey]] =
      biggis.landuse.api.readRddFromLayer(srcLayerId)
val inputRdd : RDD[(SpatialKey, Tile)] with Metadata[TileLayerMetadata[SpatialKey]] =
      biggis.landuse.api.readRddFromLayer(srcLayerId)
// if Layer is MultibandTile, rdd can also read specific band as Tile (singleband), default is band 0 (firstband)
val inputRdd : RDD[(SpatialKey, Tile)] with Metadata[TileLayerMetadata[SpatialKey]] =
      biggis.landuse.api.readRddFromLayer(srcLayerId, bandNumber = Some(0))