# Central lines of polygons

This instrument creates centerlines for polygons. It is helpful for transforming roads or rivers digitized as polygons into lines.

![image](docs_toolbox/source/_static/centerline_result_en.png)

Inputs:

* Polygon vector layer in a GDAL-supported format, e.g. GeoPackage, GeoJSON, MapInfo TAB, ESRI Shapefile (the latter two should be in ZIP archive).

Outputs:

* Line vector layer in GeoPackage.

Launch the tool: [https://toolbox.nextgis.com/t/centerline](https://toolbox.nextgis.com/t/centerline)

**Try the tool in action**

1. Click on the **Demo** button above the tool form. The fields are filled in with demo values.
2. Click on the **Run** button.
