Questions tagged [h3]

H3 is an open source geospatial indexing system using a hexagonal grid that can be subdivided into finer and finer hexagonal grids.

Features

  • Simple, fast api for converting between lat/long coordinates and hexagon addresses
  • Multiple hexagon resolutions with hierarchical relationships between them
  • A library of common algorithms including neighbor traversal, compact and uncompact transformations, and converting between hexagon sets and polygons

The library is written in C with bindings available for other languages.

120 questions
15
votes
4 answers

How to generate shapefiles for H3 hexagons in a particular area

I would like to generate shapefiles for H3 hexagons in a specific geographic area. Particularly, I'm interested in the Bay Area with resolutions = 6, 7 and 9. How can I create the shapefiles for the hexagons covering this area? I'm new to shapefiles…
Ying Cao
  • 151
  • 1
  • 4
6
votes
4 answers

How to convert shapefile/geojson to hexagons using uber h3 in python?

I want to create hexagons on my geographic map and want to preserve the digital boundary specified by the shapefile/geojson as well. How do I do it using uber's h3 python library? I'm new to shapefiles or any other geographic data structures. I'm…
lipika sharma
  • 61
  • 1
  • 3
6
votes
4 answers

Uber h3 for finding distance between two geo locations

I read the h3 doc and I am not sure finding the absolute distance between two geo point is one of the use case. There are formulas for it like in this page or google maps provides API for it. I see an h3 API for finding distance between hexagons but…
bsr
  • 57,282
  • 86
  • 216
  • 316
6
votes
2 answers

Android h3: A Hexagonal Hierarchical Geospatial Indexing System

I want to integrate h3 java binding library to my android app and I'm getting following exception: java.lang.UnsatisfiedLinkError: No native resource found at /android-armv7l/libh3-java.so at…
Siv
  • 193
  • 2
  • 16
6
votes
1 answer

How to choose the suitable h3 resolutions when use polyfill?

The H3 library offers hexagon grids at many resolutions - how should I choose the suitable h3 resolutions when using polyfill?
nrabinowitz
  • 55,314
  • 10
  • 149
  • 165
5
votes
1 answer

H3 hexagons not matching

I'm trying to use the polyfill function with the Python's h3 implementation, but I'm recieving unexpected results. If I use the function with fixed resolution, I can get and show a polygon grid as shown above. But when I want to create a grid with…
Pablo Pardo
  • 729
  • 5
  • 12
  • 26
5
votes
1 answer

How to find the locations (indices whose lat long co-ordinates are stored in geo-json format) within 5 Km radius of a h3 index in h3-js?

I'm creating a hyper local delivery service app . I can only receive order if there is a store within 5 km radius from the user . I stored the store locations in geojson format . Is there a function in h3-js which will take radius , array of stores…
4
votes
1 answer

How to identify the hexagons which overlap with a given geofence?

The H3 API reference introduced polyfill, the idea of which is "a point-in-poly operation on every hexagon in a k-ring defined around the given geofence". The questions are: I don't understand what's the meaning of "k-ring defined around a…
Dilibaba
  • 123
  • 8
2
votes
0 answers

H3-go library not running

I am newbie to golang who usually uses python. what I did: copied sample from https://github.com/uber/h3-go pasted it in local machine Run go run main.go which was the code placed. The output: github.com/uber/h3-go/v4: build constraints exclude all…
2
votes
1 answer

Spark DataFrame apply Databricks geospatial indexing functions

I have a spark DataFrame with h3 hex ids and I am trying to obtain the polygon geometries. from pyspark.sql import SparkSession from pyspark.sql.functions import col, expr from pyspark.databricks.sql.functions import * from mosaic import…
kms
  • 1,810
  • 1
  • 41
  • 92
2
votes
1 answer

Drawing a hex grid over a Geopandas map

I'm trying to draw a hex grid over a world map. The latter can be done easily enough with Geopandas: import geopandas import matplotlib.pyplot as plt world =…
rwallace
  • 31,405
  • 40
  • 123
  • 242
2
votes
0 answers

How to create H3 shapefiles in a particular area to use in Tableau

I'd like to visualize some point data in Tableau and create a density map using H3 hexagons at resolutions 4 through 10. I haven't been able to find a way to create the shapefiles I need using Python, but that's the only language I'm somewhat…
devo0241
  • 31
  • 2
2
votes
1 answer

How to find the neighbour indexes/cells of a base cell at a given radius(Km) in the H3 library

I have no idea how to find the neighbouring cells of the base cell at a given radius(Km). How can I achieve this? If possible for the h3-go library as I am familiar with Go.
2
votes
1 answer

How can I get vertices for only the outside edges of a hexRing() in H3?

The gist of this is pretty straight forward, even if the implementation isn't... I want to get the outside edges of a hexRing, as opposed to all edges of the hexagons. Pretty much creating a single polygon from the outside edge of the ring…
Douglas Gaskell
  • 9,017
  • 9
  • 71
  • 128
2
votes
1 answer

h3-js in a web worker: document is not defined

I'm trying to use h3-js inside a web worker. The error I get is: Uncaught ReferenceError: document is not defined at libh3-browser.js:6 at Module../node_modules/h3-js/dist/browser/h3-js.es.js (libh3-browser.js:2) at __webpack_require__…
Len Art
  • 23
  • 4
1
2 3 4 5 6 7 8