# Questions tagged [h3]

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

28 questions
Filter by
Sorted by
Tagged with
1 vote
44 views

### Create PostGIS column of a specific H3 hexID/resolution

I've used H3 in the past just for speeding up my spatial queries, however I'm looking for the best way to store the index information itself alongside my data. Something like: CREATE COLUMN H3res14 --&...
• 11
41 views

### How can cells of a given resolution vary in size if their centers have the same distance from their adjacent cells

I am struggling to understand how in the Uber H3 system, cells of a given resolution can vary in size if their centers have the same distance from all adjacent cells' centers. With this property, it ...
147 views

### How to extract the overlay line geometry length using geopandas?

How can I extract the length of line geometry that is overlying each hexagon of h3? Sample Working Example: import h3 import geopandas as gpd import matplotlib.pyplot as plt import pandas as pd import ...
• 167
189 views

### Aggregating points using hexabinning in QGIS using Uber H3

I have been trying to aggregate points in QGIS for couple of weeks now. I am developing a small plugin that should allow simple Hexabinning using Uber's h3 plugin. Upon clicking the hexabinning button,...
• 71
20 views

### Installing H3 for QGIS 3.22 on Windows [duplicate]

First of all, I installed the plugin of H3 in QGIS 3.22.16 Then I installed the library of h3 in Windows as explained in the tutorials for Python. pip install h3 I got the successfully installed in ...
1 vote
80 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 ...
261 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 ...
• 483
655 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.
169 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 ...
1 vote
246 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(); ...
252 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 ...
166 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 ...
1k 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. ...
• 21
2k 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(...
• 143
584 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 ...
• 231
1 vote
64 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 ...
2k 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 ...
• 123
1 vote
176 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 ...
2k 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 ...
• 133
746 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 ...
• 787
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 ...
• 121
1 vote
2k views

### Seeking Python equivalent to h3_to_polygon of R [closed]

How do I convert H3 hex-ids (e.g., '87422c2a9ffffff') to Polygon geometry using Python? In R, we would use: h3_to_polygon()
• 139
2k views

### Generating hex bins over shapefile using H3 in Python [closed]

I am trying to generate hexbins over my shapefile to eventually cluster other geospatial events to them using H3. Here is my process, but is there is a better way? # packages from h3 import h3 import ...
• 139
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 ...
• 1,913
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" ...
• 257
806 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, ...
• 401
6k 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?
• 401