Closed juliohm closed 1 year ago
The Symbol("")
column is the geometry column in this case. Admittedly not a great name. The problem is GDAL supports multiple geometry columns, and the API provides the names for each, which is empty in this case (for all GeoJSON I assume).
Yes it actually needs a :geometry
column to confirm to the GeoInterface.jl spec.
Oh right it is using the override method for custom names.
I guess we should force : geometry
if the name is""
?
That renaming was done before but reverted, see also #196.
In any case, what is the low-level function I need to call to retrieve the vector of geometries in a layer?
Em qui., 6 de out. de 2022 09:36, Martijn Visser @.***> escreveu:
That renaming was done before but reverted, see also #196 https://github.com/yeesian/ArchGDAL.jl/issues/196.
— Reply to this email directly, view it on GitHub https://github.com/yeesian/ArchGDAL.jl/issues/332#issuecomment-1269963036, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZQW3OP2OF3PGLI2LSVFLTWB3BULANCNFSM6AAAAAAQ6RXFNI . You are receiving this because you authored the thread.Message ID: @.***>
This issue is blocking some development downstream.
@visr @rafaqz by looking into the docs I can't find a simple method to extract the column of geometries:
https://yeesian.com/ArchGDAL.jl/stable/features/#Feature-Layers
Tried getgeomdefn
but it returned a single view object, which is not what I expected.
This issue is no longer relevant given the existence of alternative packages to load geojson.
Download the https://github.com/datasets/geo-countries/blob/master/data/countries.geojson file and load it:
I would expect a "geometry" column, but the column is not available in the latest release of the package. Is this a bug or intended behavior? I will need to adapt code downstream to retrieve the column of geometries with a different method.