-
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 #191 from wri/feature/arg
Add analysis for Argentina, mainly overlapping with detailed WDPA categories
- Loading branch information
Showing
9 changed files
with
106 additions
and
81 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
25 changes: 25 additions & 0 deletions
25
src/main/scala/org/globalforestwatch/layers/DetailedProtectedAreas.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,25 @@ | ||
package org.globalforestwatch.layers | ||
|
||
import org.globalforestwatch.grids.GridTile | ||
|
||
case class DetailedProtectedAreas(gridTile: GridTile, kwargs: Map[String, Any]) extends StringLayer with OptionalILayer { | ||
val datasetName = "detailed_wdpa_protected_areas" | ||
val uri: String = uriForGrid(gridTile, kwargs) | ||
|
||
def lookup(value: Int): String = value match { | ||
case 1 => "Category Ia" | ||
case 2 => "Category Ib" | ||
case 3 => "Category II" | ||
case 4 => "Category III" | ||
case 5 => "Category IV" | ||
case 6 => "Category V" | ||
case 7 => "Category VI" | ||
case 8 => "UNESCO-MAB Biosphere Reserve" | ||
case 9 => "World Heritage Site (natural or mixed)" | ||
case 10 => "Ramsar Site, Wetland of International Importance" | ||
case 11 => "Not Reported" | ||
case 12 => "Not Applicable" | ||
case 13 => "Not Assigned" | ||
case _ => "" | ||
} | ||
} |
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
43 changes: 25 additions & 18 deletions
43
.../globalforestwatch/summarystats/forest_change_diagnostic/ForestChangeDiagnosticTile.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
Oops, something went wrong.