Skip to content

Commit

Permalink
Make feature info output GeoJSON compatible. (#995)
Browse files Browse the repository at this point in the history
* Make feature info output GeoJSON compatible.

* Correct error message as per #985

* Update product document for geomedian test data.

* Update product document for geomedian test data.

* Get GeoJSON output working for data and nodata case.
  • Loading branch information
SpacemanPaul committed Feb 29, 2024
1 parent 9edd44e commit bc94156
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion check-code-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ datacube product add https://raw.githubusercontent.com/GeoscienceAustralia/dea-c

# Geomedian for summary product testing

datacube product add https://raw.githubusercontent.com/GeoscienceAustralia/dea-config/master/products/baseline_satellite_data/geomedian-au/ga_ls8c_nbart_gm_cyear_3.odc-product.yaml
datacube product add https://explorer-aws.dea.ga.gov.au/products/ga_ls8c_nbart_gm_cyear_3.odc-product.yaml

# S2 multiproduct datasets
datacube dataset add https://dea-public-data.s3.ap-southeast-2.amazonaws.com/baseline/ga_s2bm_ard_3/52/LGM/2017/07/19/20170719T030622/ga_s2bm_ard_3-2-1_52LGM_2017-07-19_final.odc-metadata.yaml --ignore-lineage
Expand Down
6 changes: 5 additions & 1 deletion datacube_ows/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,11 @@ def feature_info(args):
"features": [
{
"type": "Feature",
"properties": feature_json
"properties": feature_json,
"geometry": {
"type": "Point",
"coordinates": geo_point.coords[0]
}
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion datacube_ows/ows_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def ready_wcs(self, dc):
native_bounding_box = self.bboxes[self.native_CRS]
except KeyError:
if not self.global_cfg.called_from_update_ranges:
_LOG.warning("Layer: %s No bounding box in ranges for native CRS %s - rerun update_ranges.py",
_LOG.warning("Layer: %s No bounding box in ranges for native CRS %s - rerun datacube-ows-update",
self.name,
self.native_CRS)
self.hide = True
Expand Down

0 comments on commit bc94156

Please sign in to comment.