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
1
vote
1 answer

Implicit conversion error C# netstandard2.1

I'm trying to port some code from Net5.0 to Netstandard2.1, but running out of C# knowledge. I am trying to rewrite this function public static readonly Dictionary DirectionToUnitVector = …
1
vote
1 answer

How would I modify the H3 library to change the base cell orientation?

The H3 library uses a Dymaxion orientation, which means that the hexagon grid is rotated to an unusual angle relative to the equator/meridian lines. This makes sense when modelling the Earth, as the twelve pentagons then all lie in the water, but…
Stephen
  • 1,657
  • 13
  • 10
1
vote
1 answer

conda install h3 still fails on import

I have tried to install the h3 package, and it seemed to work: (torch) C:\alpha\map>conda install -c conda-forge h3 Collecting package metadata (current_repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists.…
rwallace
  • 31,405
  • 40
  • 123
  • 242
1
vote
3 answers

using h3 library with pyspark dataframe

I have a spark dataframe that looks like this: +-----------+-----------+-------+------------------+----------+--------+--------+--------+--------+ |client_id_x|client_id_y| dist| time| date| lat_y| lng_y| lat_x| …
brenda
  • 656
  • 8
  • 24
1
vote
2 answers

Can Uber h3 cover the entire globe in hexagonal grid?

Uber has released h3, a framework for efficiently handling big data in the geospatial file. Using h3, I attempted to get the location of a hexagonal grid location as shown in the figure. (https://eng.uber.com/h3/) I got the location of the hexagonal…
MONO
  • 13
  • 4
1
vote
1 answer

Uber H3 geoToH3 is not working in React Native

I am developing simple grid location based application in React Native using Uber H3. I installed H3 by npm install h3-js. Then I created a file to read H3Index from latitude and longitude. import {geoToH3} from 'h3-js'; const getH3Index =…
Chella M
  • 392
  • 1
  • 2
  • 15
1
vote
1 answer

Why i am gething different h3 index with same latitude and longitude

I am working with a SQlite hexagon index database and other information, the Hexagons index is the primary key. This database is generated by code written in python, and other codes written in C use the hexagonal index to access the information…
BIg G
  • 316
  • 1
  • 9
1
vote
1 answer

Is H3 adequate for generic sphere tilling?

Is it possible to use the H3 grid system for celestial tilling? I want to use the (alpha, delta)=(right ascension, declinaison) coordinate system (equatorial coordinate system) to assign a point/galaxy to a tile and then collect all the points…
Jean-Eric
  • 372
  • 2
  • 14
1
vote
0 answers

Scala: H3 Indexes - multiPolygonToH3 function

I’ve been doing this tutorial: https://databricks.com/notebooks/geomesa-h3-notebook.html The polygon function (polygonToH3) works perfectly but however the multi polygon function is giving strange results. expecting millions of H3 indexes but…
Jonah Nio
  • 31
  • 1
1
vote
1 answer

How many possible H3 GeoBoundary vertex configurations are there?

When getting the vertices of an H3 cell using H3toGeoBoundary, how many possible vertex configurations can the GeoBoundary struct produce? I count four: 6 vertices: regular hexagon 5 vertices: regular pentagon 7 vertices: irregular hexagon…
lurning too koad
  • 2,698
  • 1
  • 17
  • 47
1
vote
1 answer

Best way to determine actual H3 hexagon size?

What is the best way to get the actual size of an H3 hexagon (area or edge length) given an H3Index and not the average constant provided by the H3 API?
lurning too koad
  • 2,698
  • 1
  • 17
  • 47
1
vote
2 answers

Adding C binding to H3 Rust library

I'm attempting to add the kRing function (amongst others) to an existing Rust project that implements a C-binding of the Uber H3 library. Here's the original source: https://github.com/scottmmjackson/h3api Here are my very newbish additions: extern…
ddibiase
  • 1,412
  • 1
  • 20
  • 44
1
vote
1 answer

For imprecise geoquerying with H3, can we consider pentagons equal to hexagons?

If we use the kRing(H3Index origin, int k, H3Index* out) function to get surrounding hexagons, and we're going to refine the results on the client (i.e. haversine), we never have to worry about pentagons, do we? Because, AFAIK, pentagons have H3…
lurning too koad
  • 2,698
  • 1
  • 17
  • 47
1
vote
1 answer

installing h3 python library on AWS Redshift for usage in an UDF

I was trying to install the python library from ubers H3 as a custom library for aws redshift by using this for the installation. I followed the process and created the following function: create or replace function geo_to_h3 (lat float, lon float,…
flowoo
  • 367
  • 3
  • 13
1
vote
1 answer

H3Index in which Hexagon?

Actually I'm playing with the uber h3-Api in JavaScript. I've split the area into a few hexagons. By given the hexeid into the kRing function. Now I want to know by a given lat/lng in which Hexagon (ID) the lat/lng is. I know that I have to…
ToniWth
  • 19
  • 1
  • 4