Tests if an ST_Geometry value is well formed.
Returns an INTEGER value:
All ST_Geometry types.
Note: This method can be called on 3D geometries (those that include z coordinates). However, the z coordinate is ignored in method calculations.
SELECT skey
FROM sample_shapes
WHERE shape.ST_IsValid() = 0
ORDER BY skey;