Learn

Centroid vs Point on Surface

A centroid is a geometry's balance point and can fall outside a polygon; a point-on-surface function is designed to return a representative point on or within the geometry.

Geobble
introductoryexplainerGeometry & Data Models

Help readers choose between geometric centroids and guaranteed interior representative points for labelling and analysis.

Centroid vs Point on Surface

A centroid answers a geometric-centre question. A point on surface answers an interior-placement question. For simple convex polygons the two points may be close, but they can diverge dramatically for concave or multipart geometry.

Use a centroid when the geometric balance point itself is meaningful. Use a point on surface when the practical requirement is that the representative point must lie on or inside the feature.

Neither should automatically be interpreted as a population centre, entrance or observed location.

Centroid: geometric balance

For a polygon, the centroid is derived from the geometry's area. It is the point at which the shape would balance if it had uniform density.

That makes the centroid mathematically meaningful and reproducible, but it also means that the point follows the whole geometry, including long extensions, holes and disconnected parts.

For concave polygons, the balance point can fall outside the boundary. For an archipelagic country, the centroid can fall in the sea between islands.

This is not a calculation failure. The centroid is satisfying its geometric definition rather than an inside-the-polygon requirement.

Point on surface: guarantee location within the feature

A point-on-surface function is designed to produce a representative point that lies on the geometry, and for polygons is commonly used to obtain a point inside the polygon.

Because the exact algorithm can differ between libraries, the result—unlike a centroid—is not generally intended to be a unique mathematical centre.

Its advantage is operational: a map label, click target or representative marker can be placed where it remains associated visually with the feature.

For a crescent-shaped district whose centroid falls outside, an interior point avoids the obvious cartographic failure.

The two points can answer different questions

Suppose a coastal municipality has most of its territory wrapped around a bay.

The centroid may fall in the water because that location balances the polygon's area. A point on surface will remain inside the municipal geometry. If the task is map labelling, the interior point is probably better.

If the task is to compare geometric centres between changing boundary versions, the centroid may be the relevant quantity.

If the task is to estimate residents' travel to services, neither point may be defensible. A population-weighted centre, settlement location or network-connected origin can better represent where people actually are.

Multipart polygons make the distinction more visible

A MultiPolygon can contain disconnected parts separated by large distances.

Because its centroid is calculated from the combined geometry, the point may land between the parts rather than in any one of them. A point-on-surface algorithm will select a point on the geometry, but that still raises a semantic question: which component should represent the whole feature?

For an island country, one interior point on the largest island may work for labelling but may not represent the geographic distribution of the territory.

The geometry function can satisfy an inside/outside rule without deciding what the point means.

Point on surface is not "a better centroid"

It is tempting to treat point on surface as a corrected centroid because it avoids outside points. That framing is misleading.

The two functions optimise different properties. A point on surface can be visually off-centre. Different implementations may return different valid interior points. The result should therefore not be used as though it were the shape's unique mathematical centre.

If you need geometric centrality, use the centroid and handle outside placement separately. If you need an interior marker, use the interior-point function and name it accordingly.

Label placement may need more than either function

Cartographic labels often need a point that looks visually central, avoids narrow appendages, respects holes and remains stable across zoom levels.

Neither raw centroid nor generic point on surface guarantees the best typographic result. Dedicated label-placement algorithms can use medial axes, pole-of-inaccessibility methods or visual heuristics to find a more useful location.

The geometry-derived points are therefore good foundations, not universal label engines.

Distance analysis needs a domain-specific origin

Converting polygons to points is common before proximity analysis, but the chosen point can materially change distances.

Measuring from a hospital footprint centroid may differ from measuring from its road entrance. Measuring from a district centroid to a clinic can imply that residents start from an uninhabited geometric centre.

If the analysis is about access or travel, derive or collect the origin that matches the real process. Geometry convenience should not decide the behavioural model.

A practical choice

Use a centroid when:

  • geometric balance is the quantity of interest;

  • outside placement is acceptable or explicitly handled;

  • comparing geometry-derived centres is meaningful.

Use a point on surface when:

  • the representative point must lie inside the polygon;

  • simple labelling or marker placement is the main goal;

  • an outside centroid would confuse readers.

Use another representative point when:

  • population, access, administrative function or observed activity defines the meaningful location.

Keep the method visible

Once a polygon is reduced to a point, later users may not know how that point was chosen.

Store a field or metadata note identifying whether the point is a centroid, point on surface, entrance, capital, weighted centre or another construct. That small distinction prevents a display convenience from becoming an unexplained analytical assumption.

Related content

Centroid vs Point on Surface | Geobble