Skip to content

JuliaGeo/GeoArrow.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoArrow

Stable Dev Build Status Coverage PkgEval

A geoarrow implementation in Julia.

work in progress

Installation

] add GeoArrow

Usage

julia> using GeoArrow
julia> using GeoInterface
julia> using DataFrames
julia> t = GeoArrow.read("test/data/example-linestring_z-interleaved.arrow")
Arrow.Table with 3 rows, 2 columns, and schema:
 :row_number  Union{Missing, Int32}
 :geometry    Union{Missing, GeoArrow.Geometry{GeoInterface.LineStringTrait}}
julia> t.geometry[1]
LineStringTrait geometry in 3D with eltype Float64
julia> GeoInterface.coordinates(t.geometry[1])
3-element Vector{Vector{Float64}}:
 [30.0, 10.0, 40.0]
 [10.0, 30.0, 40.0]
 [40.0, 40.0, 80.0]
 julia> df = DataFrame(t)
3×2 DataFrame
 Row │ row_number  geometry
     │ Int32?      Geometry…?
─────┼───────────────────────────────────────────────
   1 │          1  LineStringTrait geometry in 3D w…
   2 │          2  LineStringTrait geometry in 3D w…
   3 │          3  LineStringTrait geometry in 3D w…

In progress

About

Geospatial Arrow extension to Arrow.jl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages