Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor GCBM API #163

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
16 changes: 16 additions & 0 deletions local/rest_api_gcbm/tests/tiff/belize/LifeZone_moja.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"layer_type": "GridLayer",
"layer_data": "Byte",
"nodata": 255,
"tileLatSize": 1.0,
"tileLonSize": 1.0,
"blockLatSize": 0.1,
"blockLonSize": 0.1,
"cellLatSize": 0.01,
"cellLonSize": 0.01,
"attributes": {
"1": "Tropical Dry",
"2": "Tropical Moist",
"3": "Tropical Premontane Wet, Transition to Basal - Atlantic"
}
}
Binary file not shown.
14 changes: 14 additions & 0 deletions local/rest_api_gcbm/tests/tiff/belize/LifeZone_moja.tiff.aux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<PAMDataset>
aornugent marked this conversation as resolved.
Show resolved Hide resolved
<PAMRasterBand band="1">
<Histograms>
<HistItem>
<HistMin>-0.5</HistMin>
<HistMax>255.5</HistMax>
<BucketCount>256</BucketCount>
<IncludeOutOfRange>1</IncludeOutOfRange>
<Approximate>0</Approximate>
<HistCounts>0|9681|5123|3516|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0</HistCounts>
</HistItem>
</Histograms>
</PAMRasterBand>
</PAMDataset>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"layer_type": "GridLayer",
"layer_data": "Float32",
"nodata": 3.3999999521443642e+38,
"tileLatSize": 1.0,
"tileLonSize": 1.0,
"blockLatSize": 0.1,
"blockLonSize": 0.1,
"cellLatSize": 0.01,
"cellLonSize": 0.01
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<PAMDataset>
<PAMRasterBand band="1">
<Histograms>
<HistItem>
<HistMin>-0.5</HistMin>
<HistMax>255.5</HistMax>
<BucketCount>256</BucketCount>
<IncludeOutOfRange>1</IncludeOutOfRange>
<Approximate>0</Approximate>
<HistCounts>0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|76|720|1881|1618|5088|8835|102|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0</HistCounts>
</HistItem>
</Histograms>
</PAMRasterBand>
</PAMDataset>
60 changes: 60 additions & 0 deletions local/rest_api_gcbm/tests/tiff/belize/study_area.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"tile_size": 1.0,
"block_size": 0.1,
"tiles": [
{
"x": -90,
"y": 16,
"index": 26730
},
{
"x": -90,
"y": 17,
"index": 26370
},
{
"x": -90,
"y": 18,
"index": 26010
},
{
"x": -90,
"y": 19,
"index": 25650
},
{
"x": -89,
"y": 16,
"index": 26731
},
{
"x": -89,
"y": 17,
"index": 26371
},
{
"x": -89,
"y": 18,
"index": 26011
},
{
"x": -89,
"y": 19,
"index": 25651
}
],
"pixel_size": 0.01,
"layers": [
{
"name": "mean_annual_temperature",
"type": "RasterLayer"
},
{
"name": "LifeZone",
"type": "VectorLayer",
"tags": [
"classifier"
]
}
]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.