ST_ISPOINT()

All functions > GEOSPATIAL > ST_ISPOINT()

Returns TRUE if the geometry or geography is a Point.

Signatures

Is point

Returns: TRUE if the sub kind is Point

ST_ISPOINT(geo: T) → BOOLEAN
sql
ParameterTypeRequiredDescription
geoTYesGeometry or geography value

With:

  • T : Custom types: GEOM_POINT | GEOM_LINESTRING | GEOM_POLYGON | GEOM_MULTIPOINT | GEOM_MULTILINESTRING | GEOM_MULTIPOLYGON | GEOM_MULTIANY | GEOG_POINT | GEOG_LINESTRING | GEOG_POLYGON | GEOG_MULTIPOINT | GEOG_MULTILINESTRING | GEOG_MULTIPOLYGON | GEOG_MULTIANY

Signature notes:

  • Transpiled as a ST_GEOMETRYTYPE comparison; the type label varies by engine
  • Returns NULL if the input is NULL

Examples

FeatureQL
SELECT
    f1 := ST_ISPOINT(ST_GEOMPOINT(1.0, 2.0)), -- A point is a point
    f2 := ST_ISPOINT(ST_GEOMFROMTEXT('LINESTRING (0 0, 1 1)')) -- A line is not a point
;
Result
f1 BOOLEANf2 BOOLEAN
truefalse

Last update at: 2026/05/26 17:22:09