-
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 #151 from wri/develop
Merge develop to master
- Loading branch information
Showing
50 changed files
with
727 additions
and
407 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
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
36 changes: 36 additions & 0 deletions
36
src/main/scala/org/globalforestwatch/layers/FaoEcozones.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,36 @@ | ||
package org.globalforestwatch.layers | ||
|
||
import org.globalforestwatch.grids.GridTile | ||
|
||
case class FaoEcozones(gridTile: GridTile, model: String = "standard", kwargs: Map[String, Any]) | ||
extends StringLayer | ||
with OptionalILayer { | ||
|
||
val datasetName = "fao_ecozones" | ||
val uri: String = uriForGrid(gridTile) | ||
|
||
def lookup(value: Int): String = value match { | ||
case 1 => "Boreal coniferous forest" | ||
case 2 => "Boreal mountain system" | ||
case 3 => "Boreal tundra woodland" | ||
case 4 => "No data" | ||
case 5 => "Polar" | ||
case 6 => "Subtropical desert" | ||
case 7 => "Subtropical dry forest" | ||
case 8 => "Subtropical humid forest" | ||
case 9 => "Subtropical mountain system" | ||
case 10 => "Subtropical steppe" | ||
case 11 => "Temperate continental forest" | ||
case 12 => "Temperate desert" | ||
case 13 => "Temperate mountain system" | ||
case 14 => "Temperate oceanic forest" | ||
case 15 => "Temperate steppe" | ||
case 16 => "Tropical desert" | ||
case 17 => "Tropical dry forest" | ||
case 18 => "Tropical moist deciduous forest" | ||
case 19 => "Tropical mountain system" | ||
case 20 => "Tropical rainforest" | ||
case 21 => "Tropical shrubland" | ||
case 22 => "Water" | ||
} | ||
} |
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
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
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
Oops, something went wrong.