15 votes

Snapping a point to a unique hexagon in QGIS

You can try the script below. Note: Before you do anything else, please make a backup copy of your point layer file in case of unexpected or undesired results (don't just duplicate the layer in the ...
Ben W's user avatar
  • 21.2k
9 votes

Snapping a point to a unique hexagon in QGIS

You can use the following script. It creates a new layer for the relocated points. # h: hexagon, p: point h_lyr = QgsProject.instance().mapLayersByName("Hexagons")[0] p_lyr = QgsProject....
Kadir Şahbaz's user avatar
7 votes

Using Uber H3 hexagon grids in QGIS

You can play with it using my #30DayMapChallenge hexagon demo https://github.com/ThomasG77/30DayMapChallenge/blob/master/day4_hexagons/data/h3-processing.py Except the fact I do no use an UI, I ...
ThomasG77's user avatar
  • 30.5k
6 votes

Using Uber H3 hexagon grids in QGIS

I adapted @ThomasG77's 30 day challenge script into something that can be run from the Qgis processing toolbox. Using Uber's H3 hex grid system in Qgis https://github.com/maphew/code/tree/master/gis/...
matt wilkie's user avatar
  • 28.2k
4 votes

Points in Polygon missing from QGIS 2.16.x?

You can find it in the Processing > Toolbox > search for Count Points in Polygon Not sure why it's missing from the Vector menu...
DPSSpatial_BoycottingGISSE's user avatar
4 votes

How to convert polygon into hexagonal grid?

You actually want a selection of the grid rather than a geometric modification of it so use Select by Location (one menu lower down under Vector Selection Tools) and chose intersects and contains to ...
Ian Turton's user avatar
  • 81.1k
4 votes

Hexagon Bounds - Where to get or how to create?

You can use MMQGIS plugin in QGIS to create an hexagon grid. Take a look in this post from Anita Graser: http://anitagraser.com/2012/03/04/mapping-density-with-hexagonal-grids/
Alexandre Neto's user avatar
4 votes

Hexagon binning using Google Maps

If you're pregenerating the hex information, as your question suggests, you could use my R package dggridR to generate the hexagons' boundaries. dggridR uses some rather complicated maths to tile the ...
Richard's user avatar
  • 1,831
3 votes

Counting points in polygon using separate attribute values in ArcGIS Pro

Intersect points with polygons Dissolve with statistics field unique: Unique—The number of unique values of the specified field will be counted
BERA's user avatar
  • 71.3k
2 votes

Transforming admin units into hexagons: the assignment problem

I finally solved it by using another implementation of the Hungarian algorithm that completes even on larger datasets. Here's the full function: generateHexBins <- function( sdf, grid_type='...
Strabonio's user avatar
  • 241
1 vote

GeoServer hexagonal grid?

GeoServer does not have a hex binning functionality yet (it can be implemented, given enough dev resources). Last time I had to do hex binning on the cheap, I delegated everything to PostGIS using a ...
Andrea Aime's user avatar
  • 17.3k
1 vote

Hexbins missing points, layer extent problem in graphical modeler?

Add a buffer around the extent of your point layer to really cover all points with the hexagon grid. The very shape of hexagons leads to the fact that not every column reaches up to the max. extent. ...
Babel's user avatar
  • 70.5k
1 vote

Using Uber H3 hexagon grids in QGIS

Use the Create Grid tool in QGIS, and select hexagons. For a more thorough, but still brief walk-through, see Jonathan Soma's blog. (This is for creating a hex grid, it will not be specific to Uber'...
Unrelated's user avatar
  • 191
1 vote

Using Uber H3 hexagon grids in QGIS

There's the official https://github.com/uber/h3-py Python bindings for H3, a hierarchical hexagonal geospatial indexing system https://uber.github.io/h3/ but I haven't tried it myself.
underdark's user avatar
  • 84k
1 vote

Hexabin map from multiple polygon layer

Thank you for help. I have to say that I am not that confortable with python language... So I had to tought of a diferent aproach: 1) INTERSECTed my Hexagonal grid with my polygons 2) Then I used ...
M_M's user avatar
  • 323
1 vote

Hexabin map from multiple polygon layer

By using PyQGIS, next code calculates, as area percentage of hexagonal (or part of it) feature layer, for each feature belongs to polygon_layer; equivalent to layer with buildings, roads, gardens, ...
xunilk's user avatar
  • 29.8k

Only top scored, non community-wiki answers of a minimum length are eligible