Coordinate operations

Coordinate operations#

transform(geometry, transformation[, include_z])

Returns a copy of a geometry array with a function applied to its coordinates.

count_coordinates(geometry)

Counts the number of coordinate pairs in a geometry array.

get_coordinates(geometry[, include_z, ...])

Gets coordinates from a geometry array as an array of floats.

set_coordinates(geometry, coordinates)

Adapts the coordinates of a geometry array in-place.