Sha256: 03b7f09fcf976d45c93750a4590de4bd58a420b5477e7c9da855c0937d17a314

Contents?: true

Size: 230 Bytes

Versions: 18

Compression:

Stored size: 230 Bytes

Contents

import sys
from osgeo import gdal, osr

f = sys.argv[1]
g = gdal.Open(f)
proj = g.GetProjection()
srs = osr.SpatialReference()
srs.ImportFromESRI([proj])
srs.AutoIdentifyEPSG()
srid = srs.GetAuthorityCode(None)
print "%s" %(srid)

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
cartodb-importer-0.2.19 misc/srid_from_gdal.py
cartodb-importer-0.2.18 misc/srid_from_gdal.py
cartodb-importer-0.2.17 misc/srid_from_gdal.py
cartodb-importer-0.2.16 misc/srid_from_gdal.py
cartodb-importer-0.2.15 misc/srid_from_gdal.py
cartodb-importer-0.2.14 misc/srid_from_gdal.py
cartodb-importer-0.2.13 misc/srid_from_gdal.py
cartodb-importer-0.2.12 misc/srid_from_gdal.py
cartodb-importer-0.2.11 misc/srid_from_gdal.py
cartodb-importer-0.2.10 misc/srid_from_gdal.py
cartodb-importer-0.2.9 misc/srid_from_gdal.py
cartodb-importer-0.2.8 misc/srid_from_gdal.py
cartodb-importer-0.2.7 misc/srid_from_gdal.py
cartodb-importer-0.2.6 misc/srid_from_gdal.py
cartodb-importer-0.2.5 misc/srid_from_gdal.py
cartodb-importer-0.2.4 misc/srid_from_gdal.py
cartodb-importer-0.2.3 misc/srid_from_gdal.py
cartodb-importer-0.2.2 misc/srid_from_gdal.py