GeoDataFrames.jl
GeoDataFrames.jl copied to clipboard
Simple geographical vector interaction built on top of ArchGDAL
Hello! Firstly, thank you for this package! At work, we do a lot of stuff with Esri and we deal with shape files a lot. Initially I've read in a...
columnar metadata is critical for keeping track of things like units, sources, timestamp exc.. Is there a GDF.write method that supports writing/reading of table metadata?
# load data ``` using GeoDataFrames using Shapefile path2shp = splitpath(pathof(Shapefile)) path2shp = joinpath(vcat(path2shp[1:end-2], ["test", "shapelib_testcases", "test.shp"])) gdf = GeoDataFrames.read(path2shp) ``` # write geopackage with attributes [works as expected] ```...
In Ratesrs.jl you can define a Raster as `Raster(path2file)`.. I'm wondering if it would be cleaner to have a similar API for GeoDataFrames where `df = GeoDataFrame(path2file)` which would be...
``` import GeoFormatTypes as GFT import GeoInterface as GI using DataFrames using GeoDataFrames outfile = joinpath(tempdir(), "test.fgb"); pt = GI.Point(1,1, crs=GFT.EPSG(4326)) df = DataFrame(geometry=pt, test=1.) GeoDataFrames.write(outfile, df) test = GeoDataFrames.read(outfile)...
From https://discourse.julialang.org/t/screening-interest-in-a-unified-vector-raster-package-akin-to-r-terra/121613, it might make sense to make GeoDataFrames a single point of entry for vector datasets. Would there be interest in creating a "backend system" for GeoDataFrames, so that...
MWE: ```julia julia> using NaturalEarth, DataFrames, GeoParquet, GeoDataFrames julia> all_countries = naturalearth("admin_0_countries", 10) |> DataFrame |> x -> select!(x, [:geometry, :ADM0_A3]) 258×2 DataFrame Row │ geometry ADM0_A3 │ Union… String...
These types all error: Vector{Int8}, Vector{UInt16}, Vector{Int16}, Vector{Float32} These types do not: UInt8(), Int8(), UInt16(), Int16(), Float32(), Float64(), Vector{UInt8}, Vector{Float64} This is likely an ArchGDAL issue but thought I'd start...
I'm wondering if making GeoDataFrames as a AbstractDataFrame subtype would be a good idea? I'm thinking that eventually adding a Makie plotting extension (as simple as parsing geometries and select...
```julia using ZipFile # we should add ZipFile to Geo using Geo path2shapefile = "https://www2.census.gov/geo/tiger/GENZ2018/shp/cb_2018_us_nation_20m.zip" # this errors Geo.GeoDataFrames.read(path2shapefile) # this errors Geo.Shapefile.Table(path2shapefile) path2local = download(path2shapefile, "cb_2018_us_nation_20m.zip") path2local = joinpath(pwd(),...