Methods of centroid determination in QGIS – proposal of an algorithm using the “Model Designer” tool
Published Online: Aug 07, 2025
Page range: 1 - 20
Received: Jan 14, 2025
Accepted: Apr 29, 2025
DOI: https://doi.org/10.2478/pcr-2025-0001
Keywords
© 2025 Paweł Pędzich et al., published by Sciendo
This work is licensed under the Creative Commons Attribution 4.0 International License.
The article talks about determination of centroids. The introduction outlines a number of definitions of centroids. Then, various methods of their determination and example applications are discussed. The paper also describes algorithms of calculation of centroid coordinates implemented in QGIS. Then, with the use of the model designer tool, an algorithm was developed to determine centroids on a reference surface, followed by calculations in QGIS. We calculated the coordinates of selected polygons on a surface in the systems PL-1992, PL-LAEA and PL-LCC, as well as on the GRS80 ellipsoid, Krasowski ellipsoid and on a sphere. The test area was Poland in its administrative borders, including territorial waters. The paper is concluded with an analysis and comparison of the obtained results.