geo-registry

st_centroid

How PostGIS runs Centroid: st_centroid.

About this implementation
Engine PostGIS
Tool name st_centroid
Interface sql
Implements Centroid
Documentation Not stated
Effects modifies input: no, network: no
Notes Not stated
Status active

Parameters

Name Type Required Default Choices Note
use_spheroid boolean no true Not stated Not stated

SQL overloads

  • st_centroid(geography, use_spheroid boolean DEFAULT true) → geography
  • st_centroid(geometry) → geometry
  • st_centroid(text) → geometry

How it maps to the operation

Operation parameter Parameter here Note
layer #1 Not stated
inside Not stated always no. Use ST_PointOnSurface for a point inside the polygon.

Differences from the operation

  • On geography it computes a spheroidal centroid (use_spheroid).

Harvested by the postgis harvester from engine version 3.7.0. Names can change when an engine is harvested again.