Skip to content

Instantly share code, notes, and snippets.

View simgislab's full-sized avatar

Maxim Dubinin simgislab

  • NextGIS
View GitHub Profile
@BishopGIS
BishopGIS / test_osr.py
Created May 5, 2020 18:37
Test coordinate transformation accuracy
from osgeo import gdal, osr
y = 7509137.5811
x = 4187591.89173
gsk2011 = '+proj=longlat +a=6378136.5 +rf=298.2564151 +towgs84=0.013,-0.092,-0.03,0.001738,0.003559,-0.004263,0.0074 +no_defs'
src = osr.SpatialReference()
dst = osr.SpatialReference()
src.ImportFromEPSG(3857)