Created
April 1, 2020 06:40
-
-
Save thbaumann/abf146374fac54d082a8bdd319f41b8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings=QSettings() | |
test=settings.allKeys() | |
errorcounter=0 | |
for i in test: | |
if(u'Projections/EPSG:25832/EPSG:31467_coordinateOp' in i): | |
if settings.value(i)!=u'+proj=pipeline +step +inv +proj=utm +zone=32 +ellps=GRS80 +step +inv +proj=hgridshift +grids=BWTA2017.gsb +step +proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel': | |
errorcounter+=1 | |
else: | |
settings.setValue('Projections/EPSG:25832/EPSG:31467_coordinateOp',u'+proj=pipeline +step +inv +proj=utm +zone=32 +ellps=GRS80 +step +inv +proj=hgridshift +grids=BWTA2017.gsb +step +proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel') | |
else: | |
settings.setValue('Projections/EPSG:25832/EPSG:31467_coordinateOp',u'+proj=pipeline +step +inv +proj=utm +zone=32 +ellps=GRS80 +step +inv +proj=hgridshift +grids=BWTA2017.gsb +step +proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel') | |
if(u'Projections/EPSG:31467/EPSG:25832_coordinateOp' in i): | |
if settings.value(i)!=u'+proj=pipeline +step +inv +proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel +step +proj=hgridshift +grids=BWTA2017.gsb +step +proj=utm +zone=32 +ellps=GRS80': | |
errorcounter+=1 | |
else: | |
settings.setValue("Projections/EPSG:31467/EPSG:25832_coordinateOp", u'+proj=pipeline +step +inv +proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel +step +proj=hgridshift +grids=BWTA2017.gsb +step +proj=utm +zone=32 +ellps=GRS80') | |
else: | |
settings.setValue("Projections/EPSG:31467/EPSG:25832_coordinateOp", u'+proj=pipeline +step +inv +proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel +step +proj=hgridshift +grids=BWTA2017.gsb +step +proj=utm +zone=32 +ellps=GRS80') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment