ClearSKY FaviconClearSKY Polygon Tools
Back to Glossary

Point on surface

A representative point guaranteed to lie on (or inside) a polygon, often used for labeling.

Category: Geometry · Also known as: interior point, label point, ST_PointOnSurface

Definition (expanded)

A centroid can land outside concave polygons or polygons with holes. A point-on-surface (sometimes called an interior point) is computed to guarantee it lies on the polygon surface/area, making it better for labels and markers.

Examples

PostGIS point on surface

SQL

SELECT ST_AsText(ST_PointOnSurface(geom)) FROM my_polygons;

Common mistakes