[gdal-dev] GDAL error - ImportFromEPSG

Christopher Beddow christopher.beddow at gmail.com
Mon May 16 17:57:50 PDT 2016


Hello!

I'm running Python 2.7.8 [MSC v.1500 32 bit (Intel)] on win32. It is the
package that comes with ArcGIS 10.3. I have the correct GDAL core and
Python bindings installed to match.

I'm having an issue testing ImportFromEPSG() with GDAL.


2
down vote
favorite
I'm currently getting an error when testing ImportFromEPSG() on my GDAL.

    import osr
    testSR = osr.SpatialReference()
    testSR.ImportFromEPSG(4326)
    #this returns value of 6
    print testSR.ExportToPrettyWkt()
    #this returns blank/empty string

I have done:

    'GDAL_DATA' in os.evirons
    #returns TRUE

I also set

    os.environs['GDAL_DATA'] = r'C:\Program Files (x86)\GDAL\gdal-data'

which is where gcs.csv is located.

Any suggestions for fixing this? Could ArcGIS be causing the problems?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160516/de0f5595/attachment.html>


More information about the gdal-dev mailing list