Offset Curve
A line running parallel to each input line at a given distance to one side.
Pitfall. Engines differ on which side a positive distance goes; check the direction of the line and the engine's convention.
Pitfall. At bends, joins (round, mitre, bevel) change the line's length; tight curves can make the offset line loop or vanish.
Pitfall. In a geographic CRS the distance is in degrees.
| Also called | Offset line, parallel line, Copy Parallel, offset curve, line offset |
|---|---|
| Group | vector/geometry |
| Checks | crs.measure, geometry.valid |
| Pitfalls | 3 listed above |
| Columbus tool | Not stated |
| Notes | Not stated |
| Status | active |
| Broader | Not stated |
| Narrower | Not stated |
| Related |
Parameters
| Name | Type | Required | Default | Values | Note |
|---|---|---|---|---|---|
distance | length | yes | Not stated | Not stated | Positive to the left of the line's direction, negative to the right. |
unit | enum | yes | Not stated | m, ft, us-ft, km, mi | Not stated |
Inputs and outputs
| Direction | Name | Type | Geometry | Note |
|---|---|---|---|---|
| Input | layer | vector | line | Not stated |
| Output | output | vector | line | Not stated |
In each engine
| Engine | Tool | Parameters | Differences |
|---|---|---|---|
apache-sedona | sedona.sql.ST_OffsetCurve |
|
|
geopandas | geopandas.GeoSeries.offset_curve |
|
|
grass | v.parallel |
|
Preset: {"side":"left"} |
postgis | st_offsetcurve |
|
|
qgis | native:offsetline |
|
|
shapely | shapely.offset_curve |
|
|
turf-js | turf.lineOffset |
|
|