Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wookay/h3.jl

H3.jl ⬡ provides a Julia version of H3, Hexagonal hierarchical geospatial indexing system. https://github.com/uber/h3
https://github.com/wookay/h3.jl

h3 hexagonal-geospatial julia

Last synced: 2 days ago
JSON representation

H3.jl ⬡ provides a Julia version of H3, Hexagonal hierarchical geospatial indexing system. https://github.com/uber/h3

Awesome Lists containing this project

README

        

# H3.jl ⬡

| **Documentation** | **Build Status** |
|:-----------------------------------------:|:------------------------------------------------------------------:|
| [![][docs-latest-img]][docs-latest-url] | [![][actions-img]][actions-url] [![][codecov-img]][codecov-url] |

`H3.jl` provides Julia bindings to [h3](https://github.com/uber/h3), a hexagonal, hierarchical geospatial indexing system. See the source code for the underlying C library at https://github.com/uber/h3.

```julia
using H3.API

base = latLngToCell(LatLng(deg2rad(0), deg2rad(0)), 5)
rings = gridDisk(base, 1)

x = Vector{Float64}()
y = Vector{Float64}()
for boundary in cellToBoundary.(rings), geo in boundary
push!(x, geo.lng)
push!(y, geo.lat)
end

using UnicodePlots
@info :plot scatterplot(x, y)
```
plot.png

[docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg
[docs-latest-url]: https://wookay.github.io/docs/H3.jl/

[actions-img]: https://github.com/wookay/H3.jl/workflows/CI/badge.svg
[actions-url]: https://github.com/wookay/H3.jl/actions

[codecov-img]: https://codecov.io/gh/wookay/H3.jl/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/wookay/H3.jl/branch/master