Questions tagged [h3]

The H3 geospatial indexing system is a multi-precision hexagonal tiling of the sphere indexed with hierarchical linear indexes.

Filter by
Sorted by
Tagged with
1 vote
0 answers
33 views

Numbering H3 Polygon Elements Sequentially for Easy Map Identification

I've a high quantity of H3 hexagons that I would like to make them easily identifiable on a map by assigning sequential numbers starting from 0 based on their location. I'm using the field calculator ...
Fabio Castellini's user avatar
0 votes
1 answer
138 views

H3 Hexagon Geometry join on MSA Geometry

I have a pandas DataFrame with h3 hex ids and corresponding Polygon geometries and a geojson file with Texas Metro Area Geometries. I'd like to join the H3 hex ID to Metro area and identify which ...
kms's user avatar
  • 465
2 votes
0 answers
311 views

Visualize uber h3 hexagon in Power BI

I have two columns. One is h3 index and other is quantifying column. I have converted each hexagon into WKT. I am not sure how I can display hexagons over a map in Power BI.
ester2025's user avatar
0 votes
0 answers
98 views

Load and Display already H3-JS binned dataset in Openlayers

I have a website that uses h3-js to bin the points and store them in a geoJSON file. Then I call a function that counts the number of points in each of the hexagons after the H3-JS hexabinning and ...
Paul Butler's user avatar
1 vote
0 answers
149 views

Correctly render multiple hexagons on Mapbox

I have a GeoJSON of hex indexes, which I am trying to render on to Mapbox. Here is my code (ignore the indentation): export default class App extends Component { constructor() { super(); ...
mohsan123's user avatar
2 votes
0 answers
176 views

How would I display H3 hexagons on top of Mapbox GL React native

I want to make an interactive app where users can view crime rates in their area by pulling in geo-data from the met police website. I have gotten the Mapbox map to display but I am trying to figure ...
mohsan123's user avatar
0 votes
1 answer
129 views

Openlayers H3 Binning works but map only displays on page load

I focused on an example of H3-JS binning work on Mapbox map canvas. https://gis.utah.gov/developer/applications/suitability/ However, I wanted to work with Openlayers map. With some help I was able to ...
Paul Butler's user avatar
0 votes
0 answers
104 views

Convert output of h3_distance() to km in SQL

H3's documentation states that the H3_distance() function returns "The distance between two H3 cells, expressed as the minimum number of hexagon 'steps' required to get from the origin to the ...
Erica's user avatar
  • 1
0 votes
1 answer
730 views

Implementing H3-JS in Mapbox based map to Openlayers based map

In the H3-JS example I have, it is implemented in mapbox. But I would like to integrate the H3-JS binning as part of Openlayers map instead. This is the example I want to implement in OpenLayers. ...
SharmaPN's user avatar
4 votes
1 answer
993 views

Get all h3 indexes within a polygon in PostGIS

Using PostgreSQL 14.5, PostGIS 3.3 and OSM data, with Uber h3 extension for PostGIS I am trying to get all hexagons within a certain boundry of polygons. This SQL query: SELECT h3_polygon_to_cells(...
Stefano L's user avatar
  • 143
3 votes
1 answer
244 views

How to obtain the minimal covering of a circle with H3 hexagons?

Given an EPSG:4326 lon,lat coordinate pair, and a radius r in meters, I want to find the smallest set of H3 hexagons at resolution res that completely covers the circle centered at lon,lat with radius ...
shadowtalker's user avatar
1 vote
0 answers
44 views

Executing Geojson2h3 on the browser without Nodejs

I am trying to execute Geojson2h3 on the client browser without Nodejs. I have imported the 'geojson2h3.js' javascript file. However, I am getting an error with the following code. I am hoping that ...
Paul Butler's user avatar
2 votes
1 answer
1k views

Why is h3.polyfill(geojson, 15) returning empty list for this polygon?

I have a polygon the size of an office block in WGS84 coordinate system. When I run h3.polyfill at resolution 15 it should return a large number of h3 res15 addresses whose centroids are contained in ...
Brendan Hill's user avatar
1 vote
0 answers
132 views

PostGIS/PostgreSQL Heavy performance issues with SUM

Not sure if this is specific of GIS stuff or simply a SQL performance issue, but due to the nature of the issue and that I am working with H3 data types here it goes I have a query that runs very ...
SeekanDestroy's user avatar
3 votes
3 answers
1k views

Converting line to set of H3 hexagons?

What is a proper way to convert a GeoJSON linestring to a set of H3 hexagons? I came up with an algorithm where I extract points from a line, calculate an H3 hexagon of these points geo_to_h3 connect ...
gman's user avatar
  • 133
2 votes
2 answers
454 views

h3 grids wrapping around projected map

I am trying to create a map out of a file with millions of points. To make this tractable, I am using h3 to aggregate the points. After doing the aggregation using a combination of h3 and pandas in ...
DotPi's user avatar
  • 779
2 votes
3 answers
2k views

Distorted h3 hexagons using h3js with Mapbox

When a user clicks on a Mapbox streets-v11 map, I'm attempting to: Take the clicked point, and identify the h3 hexagon (at resolution 10) around the point Convert the hexagon coordinates into the ...
amatur's user avatar
  • 121
2 votes
3 answers
1k views

h3_to_polygon (R) to Python?

I am looking for a way to convert H3 hex-ids (e.g., '87422c2a9ffffff') to Polygon geometry. In R, we would use: h3_to_polygon() But I am having a hard time finding the equivalent in Python.
John Stud's user avatar
  • 143
4 votes
0 answers
2k views

H3-Python: How to generate hex bins over shapefile?

I am trying to generate hexbins over my shapefile to eventually cluster other geospatial events to them using H3. Here is my process, but I am wondering if there is a better way. # packages from h3 ...
John Stud's user avatar
  • 143
2 votes
0 answers
2k views

How to convert GeoJSON points to H3 hexagons in Python

I am trying to take a geojson file of points and convert it to H3 hexagons in my Python script. In JavaScript, there is a separate package called geojson2h3, but the Python h3 module has a method ...
gwydion93's user avatar
  • 1,863
4 votes
1 answer
1k views

Uber H3 DGGS: Table of largest hexagons per resolution?

I'm evaluating the use of H3 as a DGGS for a project, and so far I've been unable to find any reference of the area of the largest and smallest hexagons in the grid at each resolution. The "official" ...
DanM's user avatar
  • 239
3 votes
1 answer
625 views

Distorted H3 hexagons - even though projection is matching

Using H3-py's h3_to_geo_boundary a WKT linestring (via shapley polygons) can be generated. When later visualizing the hexagons, why are they distorted? How can this be fixed? To my best knowledge, ...
Georg Heiler's user avatar
5 votes
4 answers
5k views

Using Uber H3 hexagon grids in QGIS

How can I create a spatial binning similar to or directly using Uber h3 from QGIS UI? Are there plugins available to achieve the desired task?
Georg Heiler's user avatar
4 votes
4 answers
5k views

Seeking shapefile of hexagons that covers world?

I'd like a persistent .shp that covers the world in hexagons (preferably of a decently small area)–does anybody know where I could find something like this, or perhaps what software I could use to ...
duber's user avatar
  • 151