Skip to content

Commit 56f21e4

Browse files
committed
refactor: Align GeoJSON feature properties with unified schema
Standardize property names across campaign fixtures to match the shared FeatureProperties interface agreed with Glenn (DietBepis1): - name -> identifier (avoids collision with FeatureCollection name) - partner -> partners (string array, supports multiple) - acreage -> measurement + unitOfMeasure (flexible units) - watershed -> watershedRegion (more descriptive) - Add restorationServices (empty array, ready for future data) - Keep: id, campaign, status, projectType (unique to campaigns)
1 parent 31dffb9 commit 56f21e4

7 files changed

Lines changed: 49 additions & 35 deletions

public/fixtures/campaign_anavilhanas_archipelago.geojson

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
"id": "anavilhanas-1",
99
"properties": {
1010
"id": "anavilhanas-1",
11-
"name": "Anavilhanas Archipelago Monitoring",
11+
"identifier": "Anavilhanas Archipelago Monitoring",
1212
"campaign": "Anavilhanas Archipelago Monitoring",
1313
"status": "active",
14-
"partner": "ICMBio Brazil",
15-
"acreage": 42000,
16-
"watershed": "Rio Negro Archipelago",
17-
"projectType": "Environmental Monitoring"
14+
"partners": ["ICMBio Brazil"],
15+
"measurement": 42000,
16+
"unitOfMeasure": "acre",
17+
"watershedRegion": "Rio Negro Archipelago",
18+
"projectType": "Environmental Monitoring",
19+
"restorationServices": []
1820
},
1921
"geometry": {
2022
"type": "Polygon",

public/fixtures/campaign_ducke_forest.geojson

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
"id": "ducke-1",
99
"properties": {
1010
"id": "ducke-1",
11-
"name": "Ducke Forest Research",
11+
"identifier": "Ducke Forest Research",
1212
"campaign": "Ducke Forest Research",
1313
"status": "active",
14-
"partner": "INPA Research Institute",
15-
"acreage": 10000,
16-
"watershed": "Upper Taruma Basin",
17-
"projectType": "Research Station"
14+
"partners": ["INPA Research Institute"],
15+
"measurement": 10000,
16+
"unitOfMeasure": "acre",
17+
"watershedRegion": "Upper Taruma Basin",
18+
"projectType": "Research Station",
19+
"restorationServices": []
1820
},
1921
"geometry": {
2022
"type": "Polygon",

public/fixtures/campaign_encontro_das_aguas.geojson

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
"id": "encontro-1",
99
"properties": {
1010
"id": "encontro-1",
11-
"name": "Encontro das Aguas Reserve",
11+
"identifier": "Encontro das Aguas Reserve",
1212
"campaign": "Encontro das Aguas Reserve",
1313
"status": "active",
14-
"partner": "Meeting of the Waters Foundation",
15-
"acreage": 31000,
16-
"watershed": "Negro-Solimoes Confluence",
17-
"projectType": "Ecological Reserve"
14+
"partners": ["Meeting of the Waters Foundation"],
15+
"measurement": 31000,
16+
"unitOfMeasure": "acre",
17+
"watershedRegion": "Negro-Solimoes Confluence",
18+
"projectType": "Ecological Reserve",
19+
"restorationServices": []
1820
},
1921
"geometry": {
2022
"type": "Polygon",

public/fixtures/campaign_puraquequara_lake.geojson

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
"id": "puraquequara-1",
99
"properties": {
1010
"id": "puraquequara-1",
11-
"name": "Puraquequara Lake Protection",
11+
"identifier": "Puraquequara Lake Protection",
1212
"campaign": "Puraquequara Lake Protection",
1313
"status": "planning",
14-
"partner": "Manaus Environmental Agency",
15-
"acreage": 7500,
16-
"watershed": "Puraquequara Lake System",
17-
"projectType": "Lake Protection"
14+
"partners": ["Manaus Environmental Agency"],
15+
"measurement": 7500,
16+
"unitOfMeasure": "acre",
17+
"watershedRegion": "Puraquequara Lake System",
18+
"projectType": "Lake Protection",
19+
"restorationServices": []
1820
},
1921
"geometry": {
2022
"type": "Polygon",

public/fixtures/campaign_rio_negro_conservation.geojson

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
"id": "rio-negro-1",
99
"properties": {
1010
"id": "rio-negro-1",
11-
"name": "Rio Negro Conservation",
11+
"identifier": "Rio Negro Conservation",
1212
"campaign": "Rio Negro Conservation",
1313
"status": "active",
14-
"partner": "Amazon River Foundation",
15-
"acreage": 18500,
16-
"watershed": "Rio Negro Basin",
17-
"projectType": "River Conservation"
14+
"partners": ["Amazon River Foundation"],
15+
"measurement": 18500,
16+
"unitOfMeasure": "acre",
17+
"watershedRegion": "Rio Negro Basin",
18+
"projectType": "River Conservation",
19+
"restorationServices": []
1820
},
1921
"geometry": {
2022
"type": "Polygon",

public/fixtures/campaign_solimoes_wetland.geojson

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
"id": "solimoes-1",
99
"properties": {
1010
"id": "solimoes-1",
11-
"name": "Solimoes Wetland Restoration",
11+
"identifier": "Solimoes Wetland Restoration",
1212
"campaign": "Solimoes Wetland Restoration",
1313
"status": "active",
14-
"partner": "Wetlands International",
15-
"acreage": 22000,
16-
"watershed": "Solimoes Watershed",
17-
"projectType": "Wetland Restoration"
14+
"partners": ["Wetlands International"],
15+
"measurement": 22000,
16+
"unitOfMeasure": "acre",
17+
"watershedRegion": "Solimoes Watershed",
18+
"projectType": "Wetland Restoration",
19+
"restorationServices": []
1820
},
1921
"geometry": {
2022
"type": "Polygon",

public/fixtures/campaign_taruma_corridor.geojson

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
"id": "taruma-1",
99
"properties": {
1010
"id": "taruma-1",
11-
"name": "Taruma Biodiversity Corridor",
11+
"identifier": "Taruma Biodiversity Corridor",
1212
"campaign": "Taruma Biodiversity Corridor",
1313
"status": "planning",
14-
"partner": "Biodiversity Alliance Brazil",
15-
"acreage": 9800,
16-
"watershed": "Taruma-Acu Basin",
17-
"projectType": "Wildlife Corridor"
14+
"partners": ["Biodiversity Alliance Brazil"],
15+
"measurement": 9800,
16+
"unitOfMeasure": "acre",
17+
"watershedRegion": "Taruma-Acu Basin",
18+
"projectType": "Wildlife Corridor",
19+
"restorationServices": []
1820
},
1921
"geometry": {
2022
"type": "Polygon",

0 commit comments

Comments
 (0)