-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from wri/develop
Merge develop to master
- Loading branch information
Showing
10 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/scala/org/globalforestwatch/layers/PlantedForests.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.globalforestwatch.layers | ||
|
||
import org.globalforestwatch.grids.GridTile | ||
|
||
case class PlantedForests(gridTile: GridTile, kwargs: Map[String, Any]) extends StringLayer with OptionalILayer { | ||
val datasetName = "gfw_planted_forests" | ||
|
||
val uri: String = uriForGrid(gridTile) | ||
|
||
def lookup(value: Int): String = value match { | ||
case 1 => "Fruit" | ||
case 2 => "Fruit Mix" | ||
case 3 => "Oil Palm " | ||
case 4 => "Oil Palm Mix" | ||
case 5 => "Other" | ||
case 6 => "Rubber" | ||
case 7 => "Rubber Mix" | ||
case 8 => "Unknown" | ||
case 9 => "Unknown Mix" | ||
case 10 => "Wood fiber / Timber" | ||
case 11 => "Wood fiber / Timber Mix" | ||
case _ => "" | ||
} | ||
} | ||
|
||
case class PlantedForestsBool(gridTile: GridTile, kwargs: Map[String, Any]) extends BooleanLayer with OptionalILayer { | ||
val datasetName = "gfw_planted_forests" | ||
|
||
val uri: String = uriForGrid(gridTile) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file removed
BIN
-112 Bytes
...esources/palm-32-fcd-output/.part-00010-a65d1879-b9f7-4771-bcd3-376557cfbe8a-c000.csv.crc
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...est/resources/palm-32-fcd-output/part-00010-a65d1879-b9f7-4771-bcd3-376557cfbe8a-c000.csv
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters