cityImage.downsample_coords#
- cityImage.downsample_coords(line, distance_along)[source]#
Sample representative coordinates along a LineString.
- Parameters:
line (shapely.geometry.LineString) – Source line geometry.
distance_along (float) – Minimum accumulated distance between selected coordinates.
- Returns:
Coordinates sampled along the line. If no coordinate reaches the requested spacing, the coordinate closest to the line midpoint is returned.
- Return type:
list[tuple]