Open nuest opened 4 years ago
For GeoJSON, demonstrate how to quickly inspect the created output with https://github.com/mapbox/geojsonio-cli on CLI and https://pypi.org/project/geojsonio/ for Python and Jupyter Notebooks.
For R, it might be fun to call geoextent and then parse the output, e.g.
sf::st_as_sf(system2('geoextent --output WKT -b data/path/'))
or could be worth trying out reticulate
.
Split up this issue before starting to implement it, then prioritize.
Could be worth taking a look at how STAC constructs temporal and spatial extent: https://github.com/radiantearth/stac-spec/blob/master/collection-spec/collection-spec.md#extent-object
saving the bounding box as a shapefile withshp is deadogr2ogr
, https://kevinmanion.com/2019-10-12/Command-Line-GIS-2/STgeomfromtext
? Or via WKB, see https://postgis.net/docs/using_postgis_dbmanagement.html)