GeoInterface.jl icon indicating copy to clipboard operation
GeoInterface.jl copied to clipboard

Should `GI.FeatureCollection` subscribe to the Tables interface?

Open asinghvi17 opened this issue 1 year ago • 2 comments

That would make DataFrame(fc) work, which would be incredibly convenient. We currently don't have that so it's very difficult to tell beginner users how to use a GI feature collection.

asinghvi17 avatar Sep 19 '24 07:09 asinghvi17

Yes, but maybe Tables.jl should be an extension?

One problem is there is no need to supply all fields in all rows so you have to read the whole thing to get the columns.

We can maybe move my code for that from GeoJSON.jl to here.

rafaqz avatar Sep 19 '24 13:09 rafaqz

+1 For extension, as soon as you load DataFrames that will trigger.

evetion avatar Sep 19 '24 19:09 evetion