Least long line in a list

PyGIS Blog

Least long line in a list

Learn how to find the shortest line in a list using Shapely and sort lines by length. A simple method to measure and visualize geospatial data in Python.

This English version summarizes the original Italian notebook article and keeps the main workflow, data sources, and analytical objective.

Beer

Buy me a beer!

If these contents helped you, you can support the website.

Buy me a beer with PayPal

Updated on March 20, 2026