Skip to content

Commit

Permalink
update layer versions
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Maschler <[email protected]>
  • Loading branch information
Thomas Maschler committed Feb 24, 2020
1 parent ec5a49d commit e7d4cef
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/org/globalforestwatch/layers/Aze.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package org.globalforestwatch.layers

case class Aze(grid: String) extends BooleanLayer with OptionalILayer {
val uri: String = s"$basePath/aze/$grid.tif"
val uri: String = s"$basePath/aze/v20190816/$grid.tif"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package org.globalforestwatch.layers
case class KeyBiodiversityAreas(grid: String)
extends BooleanLayer
with OptionalILayer {
val uri: String = s"$basePath/kba/$grid.tif"
val uri: String = s"$basePath/kba/v20191211/$grid.tif"
}
2 changes: 1 addition & 1 deletion src/main/scala/org/globalforestwatch/layers/Landmark.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package org.globalforestwatch.layers

case class Landmark(grid: String) extends BooleanLayer with OptionalILayer {
val uri: String = s"$basePath/landmark/$grid.tif"
val uri: String = s"$basePath/landmark/v20191111/$grid.tif"
}
2 changes: 1 addition & 1 deletion src/main/scala/org/globalforestwatch/layers/OilPalm.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package org.globalforestwatch.layers

case class OilPalm(grid: String) extends BooleanLayer with OptionalILayer {
val uri: String = s"$basePath/oil_palm/$grid.tif"
val uri: String = s"$basePath/oil_palm/v20191031/$grid.tif"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.globalforestwatch.layers

case class ProtectedAreas(grid: String) extends StringLayer with OptionalILayer {

val uri: String = s"$basePath/wdpa/$grid.tif"
val uri: String = s"$basePath/wdpa/v201912/$grid.tif"

def lookup(value: Int): String = value match {
case 1 => "Category Ia/b or II"
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/org/globalforestwatch/layers/RSPO.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.globalforestwatch.layers

case class RSPO(grid: String) extends StringLayer with OptionalILayer {

val uri: String = s"$basePath/rspo/$grid.tif"
val uri: String = s"$basePath/rspo/v20200114/$grid.tif"

def lookup(value: Int): String = value match {
case 1 => "Certified"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ package org.globalforestwatch.layers
case class TreeCoverLossDrivers(grid: String)
extends StringLayer
with OptionalILayer {
val uri: String = s"$basePath/drivers/$grid.tif"
val uri: String = s"$basePath/drivers/v2019/$grid.tif"

override val internalNoDataValue = 16
override val internalNoDataValue = 0
override val externalNoDataValue = "Unknown"

def lookup(value: Int): String = value match {
case 1 => "Commodity driven deforestation"
case 2 => "Shifting agriculture"
case 3 => "Forestry"
case 4 => "Wildfire"
case 5 => "Urbanization"
case 2 => "Commodity driven deforestation"
case 3 => "Shifting agriculture"
case 4 => "Forestry"
case 5 => "Wildfire"
case 6 => "Urbanization"
case _ => "Unknown"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package org.globalforestwatch.layers

case class WoodFiber(grid: String) extends BooleanLayer with OptionalILayer {
val uri: String =
s"$basePath/wood_fiber/$grid.tif"
s"$basePath/wood_fiber/v20190917/ $grid.tif"
}
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "1.0.0"
version in ThisBuild := "1.0.1"

0 comments on commit e7d4cef

Please sign in to comment.