Skip to content

ST_HasM

Returns true if the geometry has a M dimension.

Usage

boolean ST_HasM(geom: geometry)

Arguments

  • geom (geometry): Input geometry

Examples

SELECT ST_HasM(ST_GeomFromWKT('POINT M (1 2 3)'));
┌──────────────────────────────────────────────────┐
│ st_hasm(st_geomfromwkt(Utf8("POINT M (1 2 3)"))) │
│                      boolean                     │
╞══════════════════════════════════════════════════╡
│ true                                             │
└──────────────────────────────────────────────────┘
SELECT ST_HasM(ST_GeomFromWKT('POINT (1 2)'));
┌──────────────────────────────────────────────┐
│ st_hasm(st_geomfromwkt(Utf8("POINT (1 2)"))) │
│                    boolean                   │
╞══════════════════════════════════════════════╡
│ false                                        │
└──────────────────────────────────────────────┘