I currently have a heap of GDAL scripts that reproject from one SQL feature class into a new SQL feature class, but I want to convert these into Python scripts using the GDAL library, to clean up my workflows. I can't seem to find any information on updating SQL data with Python using GDAL. I can only find information on reprojection shapefiles. Can this be done?
I currently use the below
ogr2ogr -f "MSSQLSpatial" -update -append -s_srs "EPSG:4283" "MSSQL:server=blahblah;database=blahblah;trusted_connection=yes" "MSSQL:server=blahblah;database=blahblah;trusted_connection=yes" -sql "SELECT blahblah FROM blahblah_original" -t_srs "EPSG:28355" -nln "blahblah_repojected" -lco "GEOM_TYPE=geometry" -lco "GEOM_NAME=GEOMETRY_SPA" "OVERWRITE=YES"
gdal.VectorTranslateto make similar calls as the one in your cli but trough native Python code. – ThomasG77 May 31 '23 at 15:36