I want to reverse the line direction for all lines in a shapefile from the Linux commandline (that is to say, using a script). Currently I'm using the SwapVectorDirection QGIS plugin which works well but has to be run manually. Ideally I'd like a solution using ogr since I have it installed on my system.
This question is similar but I'm looking specifically for something I can include in a Linux script.
st_reverse(GEOMETRY), *; without this I wasn't seeing any reversal. BTW, with the aforementioned caveat the pre-edit version using*worked just fine withogr2ogrfrom GDAL 2.2.3. Presumably by putting the function first it overrode the default GEOMETRY column. I'll accept this answer in 24 hours unless a much better answer shows up. – Alex Hajnal Jan 23 '20 at 01:52