Toolbox

Meter grid

Vector
Generate vector grid in polygons boundaries. Width of grid is defined in meters.
Demo
Grid step in meters
Points
Squares or points. Default: points
By feature boundaries
How to clip the grid:
  • By feature boundaries
  • Keeping all grid cells that intersect boundaries
  • Keeping all grid cells in the extent
Sign in to upload file
File with polygons or multipolygons in Geopackage format
Calculation time depends on the number of nodes in the boundary layer
Set the extent or upload as file
Vertical
Mode of clipping edges of grid.
  • Vertical, but the dimensions are not exact in meters
  • Precise - squares are rotated, but keep sizes and areas

Docs

_images/grids_multi.png

A combination of generated grids

The tool generates a grid within the boundaries of features of a vector layer or a bounding box. The grid size is set in meters. Features can be anywhere in the world.

Inputs:

  • Step. Grid cell size in meters;

  • Mode. Squares or points. Default: points;

  • Clip. How to clip the grid: 1) By feature boundaries, 2) Keeping all grid cells that intersect boundaries, 3) Keeping all grid cells in the extent;

  • Boundary polygon vector file in Geopackage format. Multipolygons are supported. Calculation time depends on the number of nodes in the boundary layer;

  • Extent. Set the extent on the map or upload as file;

  • Grid alignment. Mode of clipping edges of grid. 1) Vertical - the grid looks vertical in WGS 84 (EPSG:3857) projection, but angles and distances may be distorted.; 2) Precise - a grid with more precizely matching angles and distances, however it will look tilted in EPSG:3857.

Output:

  • GeoPackage containing the grid. Each cell/point of the grid has the following attributes: number (cells are numbered vertically, top to bottom, left to right, starting with the first left column even if it doesn’t reach the top), row_index and col_index. To display the numbers, enable lables in the layer style settings and select the desired attribute.

_images/grid_numbers.png

Cell numbers displayed

Resulting grids with different settings:

_images/grid_rect_all.png

Squares - all

_images/grid_rect_touches.png

Squares - including all intersecting

_images/grid_rect_intersection.png

Squares - clipped by the boundary

_images/grid_point_all.png

Points - all

_images/grid_point_intersection.png

Points - clipped by the boundary

Try the tool in action

  1. Click on the Demo button above the tool form. The fields are filled in with demo values.

  2. Click on the Run button.

Vector