I have 3d lines that I would like to rubber sheet or rectify in 3D (including z rectification). I used ogr2ogr with -gcp, however all the vertex of a polyline were set to a single elevation, and since you don't input a z for reference I am guessing it does not rubber sheet in 3D.
ogr2ogr feat_rect.shp feat_in.shp -gcp 765825.824 2169178.054 765820.33 2169177.15 413.5 -gcp 765849.205 2169176.512 765846.487 2169174.837 -gcp ...
It seems like GRASS v.rectify
could do it, however I'd like a solution where I don't need to setup a GRASS workspace and rather run it in batch mode. ESRI solution could also be acceptable if I can run it in batch mode.