remove_duplicates

Removes any duplicate vertices from a geometry.

Any occurrence of consecutive coincident vertices is replaced with a single vertex at the same location.

Parameter 1 - any geometry.

Returns: a copy of the geometry with all duplicate vertices removed or null if parameter 1 is not a geometry.