Name

ST_IsNurbsCurve — Checks if a geometry is a NURBS curve.

Synopsis

boolean ST_IsNurbsCurve(geometry geom);

Description

Returns TRUE if the geometry is a NURBS curve, FALSE otherwise. This function can be used to test geometry types before applying NURBS-specific functions.

Returns NULL if the input is NULL.

Availability: 3.7.0

Examples

This example checks whether a geometry is a NURBS curve.

Code
SELECT ST_IsNurbsCurve('NURBSCURVE(2, (0 0, 5 10, 10 0))'::geometry);
Output
t
Figure
Geometry figure for visual-st-isnurbscurve-01

This example tests a regular LineString.

Code
SELECT ST_IsNurbsCurve('LINESTRING(0 0,10 10)'::geometry);
Output
f
Figure
Geometry figure for visual-st-isnurbscurve-02