HexEarth.jl
HexEarth provides tools built on top of H3.jl for working with Uber's H3 grid system.
The primary purpose of this package is to join disparate vector and raster datasets to a unified hexagonal grid.
Quick Start
- All coordinates are assumed to be in EPSG:4326 (WGS84 lon/lat in degrees)
- Hexagon cell resolutions are 0-15 (coarse-to-fine). Resolution 15 corresponds to cells with areas smaller than 1 meter.
- All distances are assumed to be (and returned in) meters.
julia> using HexEarth
julia> import GeoInterface as GI
julia> new_york = (-75.0, 43.0)
(-75.0, 43.0)
julia> cell = Cell(new_york, 10)
⬡ Cell 10 (-74.99924141038285, 42.99995117421629)
julia> HexEarth.area(cell) # meters ^ 2
15753.932637011125
julia> GI.centroid(cell)
(-74.99924141038285, 42.99995117421629)