Open visr opened 1 year ago
The issue will be that we don't have GeoInterface.geometrycolumns
on a DataFrame
. So we could just look for :geometry
and have a geometrycolumn
keyword to specify if it's different.
To reduce the need for the keyword we could also use DataAPI.jl metadata https://github.com/JuliaGeo/GeoInterface.jl/issues/77
Just ran into this. I would love to be able to filter a FeatureCollection
using all the power of the DataFrames-suite and then plot with GeoMakie
. Do you have any suggestions on how to do this?
You can already conveet to a dataframe with DataFrame(feature)
. The problem here is getting it back to a GeoJSON.FeatureCollection... but it doesnt sound like you need that?
And geomakie should accept a vector of geometries?
You can also just plot a vector of GeoJSON geometries (e.g. a DataFrame column) with raw Makie.plot
.
@visr you can just use GeoInterface.FeatureCollection
now. We should add a Tables.jl extension to GeoInterface to let that injest tables.
Right now we can convert FeatureCollection to DataFrames, but not back:
It would be nice if this worked. We could also test with GeoDataFrames, and also look at that package for how to identify geometry columns (
GeoInterface.geometrycolumns
).