Find the parts of a study area that best suit a project, like a new housing site or a store location. The Hex grid tool covers an area with equal hexagons, then scores each one against your other layers, like distance to a train station or flood coverage, to build a suitability map. Open it from the Create tab group.
Choose the area to cover
Under Area to cover, choose what the hex grid covers.
Prime layer: cover the shapes in the prime layer, like a study area or a parcel shortlist. This is the default.
Project boundary: cover your project boundary.
Set the hexagon size
Under Hexagon size, choose Edge length or Area. Then set Edge (m) or Area (m²). The default is an edge length of 50 m. gGIS shows the matching area or edge length below the field. Every hexagon is the same size in meters, wherever your project is.
Choose how the hex grid meets the edge of the area.
Whole hexes: keep every whole hexagon whose center falls inside the area. This is the default.
Clip to boundary: cut the hexagons at the edge to fit the area.
gGIS shows how many hexagons the grid has. A hex grid can hold up to 20,000 hexagons. If gGIS warns you, set a larger size. gGIS remembers the area, size, and fit the next time you open Hex grid.
Score each hexagon against other layers
Scoring is optional. Add a criterion for each layer you want to score the hex grid against.
Under Score (optional), click + Add criterion.
Choose a layer from Select an input layer….
Choose a Measure. The default is Coverage %.
For Weighted average, Sum, Average, Minimum, or Maximum, choose a number Field from the layer.
Set a Weight. The default is 1. A criterion with a weight of 2 counts twice as much as one with a weight of 1.
Tick Lower is better when a smaller value is better, like distance to a train station.
Each Measure works out one value for every hexagon.
Coverage %: how much of the hexagon the layer covers, like the share inside a flood zone.
Distance: the distance from the hexagon to the nearest shape in the layer.
Count: how many shapes in the layer overlap the hexagon.
Sum, Average, Minimum, or Maximum: combine a field's values from the shapes that overlap the hexagon.
Weighted average: average a field's values from the shapes that overlap the hexagon, weighted by how much each one overlaps.
To remove a criterion, click the X next to its layer.
How the hex grid score works
gGIS scales each criterion from 0 to 1 across the hex grid, where 1 is best. It then combines the criteria as a weighted average in a score column, and colors each hexagon from low to high. A Low → High legend shows the colors.
A hexagon that a layer says nothing about scores 0 on that criterion.
If every hexagon has the same value for a criterion, they all score 1 on it.
A criterion with a weight of 0 doesn't count.
Without any criteria, the hex grid shows in one color.
Keep the hex grid
Click Export to new layer.
Type a name in New layer name. The default is the prime layer's name plus "hex grid."
Click Create layer, or press
Enter.
The new layer is colored by score and becomes the new prime layer. Each hexagon has these fields:
hex_id: the hexagon's row and column, liker3c5.area_m2: the hexagon's area. Clipped hexagons at the edge are smaller.One field for each criterion, holding its raw value. The name combines the layer's name and the measure, like a flood layer's name plus
coverage_pct.score: the combined score from 0 to 1.