Toolbox

Points inside polygons

Vector
Calculate coorinates of a point guaranteed to be inside a polygon and add calculated coordinates to point_X, point_Y attributes.
Demo
Sign in to upload file
Vector layer in one of the formats, supported by GDAL, e.g. Shapefile in ZIP-archive, GeoJSON, GeoPackage.

Docs

Calculate coorinates of a point guaranteed to be inside a polygon and add the calculated coordinates to point_X, point_Y attributes. PointOnSurface method.

Inputs:

  • Polygon vector layer in one of the formats, supported by GDAL, e.g. Shapefile in ZIP-archive, GeoJSON, GeoPackage.

Outputs:

  • ZIP with polygonal shapefile with two fields added: point_X, point_Y

_images/point_on_surface.png

Visualization of the calculated centroids

_images/centroid2attr_en.png

Resulting feature table of the layer with added attributes

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