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
0
votes
0 answers

Determination of rectilinear movement by means of analysis of hexagons H3

There is a task, it is necessary to determine rectilinear movement among the transmitted GPS coordinates (without any binding to roads, water bodies, etc.). I converted the received GPS coordinates into H3 hexes (the level does not matter, you can…
0
votes
2 answers

Nuxt 3 - after response middleware

I have a use-case where I would like to call a middleware after the response went through the route handler. The docs describe that the standard server middleware only runs BEFORE the request is handled…
Schutt
  • 1,056
  • 6
  • 17
0
votes
2 answers

NUxtjs3 [nitro] [dev] [uncaughtException] TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or

I updated nuxtjs application version 3.2.0 to 3.4.3. now when a client call server api (which calling a backend server) i have this exception [nitro] [dev] [uncaughtException] TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type…
cyril
  • 872
  • 6
  • 29
0
votes
2 answers

nuxt3 server api readMultipartFormData not working in lambda

I'm working on a nuxt3 project to allow users to upload files(img, video, audio) and upload to AWS S3 at the same time. In the vue file, I declare a formData and append the file and other parameters to the formData. index.vue let formData = new…
AngusHo53
  • 51
  • 1
  • 6
0
votes
0 answers

difference of distance functions in h3_distance function in python h3 geo version 3.x

I am getting confused by some h3 distance functions. let's say I am trying to get all the cellID from a base cellID in 1 miles. I find all the function below from h3 website (https://h3geo.org/docs/3.x/api/traversal/) and they seems the same to me,…
milton
  • 101
  • 2
  • 11
0
votes
1 answer

measure of h3_distance function in python h3 geo version 3.x

I am new to the h3 geo module in python, I find myself really confused on some definition. let's assume my resolution is set to 10 all the time when I do h3.h3_distance(A, B), it returns me an number, but what measure is this number? I picked 2…
milton
  • 101
  • 2
  • 11
0
votes
0 answers

How to set nearby active indexes(hexagons) and get same active indexes(hexagons) within 1km in h3js

const activeIndexes = new Set(); newIndexes.forEach((index) => { cellToVertex(index, { 'active': true }); activeIndexes.add(index); }); const compactedIndexes =…
0
votes
0 answers

H3 - How to get the H3 index of all cells that are at least partially inside a bounding box/polygon

I would like to get the h3 cell index of every cell that is at least partially within a bounding box. I have been using h3.polygonToCells() but it appears that h3.polygonToCells() only returns cells that are mostly within the bounding box…
jam3
  • 129
  • 5
0
votes
1 answer

Convert Shapefile to H3 - R

I have a gpkg file which contains some buildings and am looking to convert this to H3 size 11. BUILDINGS <- st_read(GPKG, layer = "buildings") Basically anywhere one of these buildings is located gets a hexagon, and where there aren't any buildings…
Aaron Walton
  • 150
  • 1
  • 10
0
votes
1 answer

get centroid latitude and longitude of h3 hexagon

I know ho to get h3 hexagon ids for various resolutions and add them to a pandas dataframe containing latitudes and longitudes. Is it possible to get the centroid latitude and longitude of each h3 hexagon given its id? I saw function but do not know…
cs0815
  • 16,751
  • 45
  • 136
  • 299
0
votes
1 answer

Scala multipolygon to h3

I'm following this tutorial https://www.databricks.com/notebooks/geomesa-h3-notebook.html and have encountered a problem. Namely the multiPolygonToH3 function fills only the first polygon. This is my multiPolygon MULTIPOLYGON(((37.60574672029919…
gjin
  • 860
  • 1
  • 14
  • 28
0
votes
1 answer

how to use vectorized H3 functions from h3-py?

import numpy as np lats = np.random.uniform(0, 90, 1_000_000) lons = np.random.uniform(0, 90, 1_000_000) import h3 import h3.api.numpy_int Passing numpy arrays straight away: fails with: TypeError: only size-1 arrays can be converted to…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
0
votes
2 answers

How to parallelize a pandas UDF in polars (h3 polyfill) for string typed UDF outputs?

I want to execute the following lines of python code in Polars as a UDF: w = wkt.loads('POLYGON((-160.043334960938 70.6363054807905, -160.037841796875 70.6363054807905, -160.037841796875 70.6344840663086, -160.043334960938 70.6344840663086,…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
0
votes
0 answers

Adding a Before/After Slider to a Leaflet Map in R

I am presently reading though Uber's H3 documentation and am wondering if its possible to add a before/after slider to a leaflet map created in R. For visual reference,I am looking to figure out how to add this. Is there anything readily available…
Bensstats
  • 988
  • 5
  • 17
0
votes
0 answers

installing uber H3 library in google script

is there someone that could help me in installing uber h3 library in google script? I'm trying to implement a function that transform a couple of coordinate into an H3_9 geometry, I'm able to do it in python: import h3 h3_index =…
michele
  • 29
  • 3