Clipping Datasets to the Dateline in ogr2ogr

If you want to visualise a global flight great circle dataset in QGIS it needs to be clipped to the dateline.

This is extremely easy to do using ogr2ogr.

The command is simply:

ogr2ogr -wrapdateline output_file.shp input_file.shp

With the results.

Dateline wrapping