Skip to content

Commit

Permalink
fix generation of style indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Jul 4, 2024
1 parent 06086d1 commit f094c9e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
2 changes: 1 addition & 1 deletion catalogs/trilateral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ collections:
# - HLS_NDVI
# - LIS_Global_DA_Evap
# - 4D_Greenland
# - GFC_Garissa_FloodExtent # Garissa does not work now
- GFC_Garissa_FloodExtent
- SEE_solar_energy
- crop_forecast_CropOM
27 changes: 19 additions & 8 deletions collections/GFC_Garissa_FloodExtent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,33 @@ DataSource:
Agency:
- ESA
Resources:
- EndPoint: https://eox-gtif-public.s3.eu-central-1.amazonaws.com/EOX/GARISSA_WATEREXTENT_SAR_TIMESERIES/
Name: GeoJSON source
- Name: GeoJSON source
Style: GFC_Garissa_FloodExtent/style.json
Bbox: [38.5, -0.8, 40.0, 0.55]
TimeEntries:
- Time: "20240309"
File: "GARISSA_WATEREXTENT_20240309_VH_24_simplified.geojson"
Assets:
- Identifier: vector_data
File: https://eox-gtif-public.s3.eu-central-1.amazonaws.com/EOX/GARISSA_WATEREXTENT_SAR_TIMESERIES/GARISSA_WATEREXTENT_20240309_VH_24_simplified.geojson
- Time: "20240321"
File: "GARISSA_WATEREXTENT_20240321_VH_18_simplified.geojson"
Assets:
- Identifier: vector_data
File: https://eox-gtif-public.s3.eu-central-1.amazonaws.com/EOX/GARISSA_WATEREXTENT_SAR_TIMESERIES/GARISSA_WATEREXTENT_20240321_VH_18_simplified.geojson
- Time: "20240402"
File: "GARISSA_WATEREXTENT_20240402_VH_18_simplified.geojson"
Assets:
- Identifier: vector_data
File: https://eox-gtif-public.s3.eu-central-1.amazonaws.com/EOX/GARISSA_WATEREXTENT_SAR_TIMESERIES/GARISSA_WATEREXTENT_20240402_VH_18_simplified.geojson
- Time: "20240414"
File: "GARISSA_WATEREXTENT_20240414_VH_17_simplified.geojson"
Assets:
- Identifier: vector_data
File: https://eox-gtif-public.s3.eu-central-1.amazonaws.com/EOX/GARISSA_WATEREXTENT_SAR_TIMESERIES/GARISSA_WATEREXTENT_20240414_VH_17_simplified.geojson
- Time: "20240426"
File: "GARISSA_WATEREXTENT_20240426_VH_24_simplified.geojson"
Assets:
- Identifier: vector_data
File: https://eox-gtif-public.s3.eu-central-1.amazonaws.com/EOX/GARISSA_WATEREXTENT_SAR_TIMESERIES/GARISSA_WATEREXTENT_20240426_VH_24_simplified.geojson
- Time: "20240508"
File: "GARISSA_WATEREXTENT_20240508_VH_24_simplified.geojson"
Assets:
- Identifier: vector_data
File: https://eox-gtif-public.s3.eu-central-1.amazonaws.com/EOX/GARISSA_WATEREXTENT_SAR_TIMESERIES/GARISSA_WATEREXTENT_20240508_VH_24_simplified.geojson
Provider:
- Name: placeholder
1 change: 0 additions & 1 deletion collections/SEE_solar_energy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Resources:
- Name: COG source
Style: test_assets/cog_style.json
Bbox: [11, 46.5, 15.5, 48.9]
EndPoint: "test"
TimeEntries:
- Time: "2023"
Assets:
Expand Down
6 changes: 4 additions & 2 deletions generators/generate_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,12 @@ def process_collection_file(config, file_path, catalog):
handle_WMS_endpoint(config, resource, data, catalog, wmts=True)
elif resource["Name"] == "Collection-only":
handle_collection_only(config, resource, data, catalog)
elif resource.get("Name") == "GeoJSON source" or resource.get("Name") == "COG source":
handle_raw_source(config, resource, data, catalog)
else:
raise ValueError("Type of Resource is not supported")
elif resource.get("Name") == "GeoJSON source" or resource.get("Name") == "COG source":
handle_raw_source(config, resource, data, catalog)
else:
raise ValueError("Type of Resource is not supported")

elif "Subcollections" in data:
# if no endpoint is specified we check for definition of subcollections
Expand Down

0 comments on commit f094c9e

Please sign in to comment.