<div dir="ltr"><span style="font-size:12.8px">Hello!</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">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.</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I'm having an issue testing ImportFromEPSG() with GDAL. </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div><br></div><div>2</div><div>down vote</div><div>favorite</div><div>I'm currently getting an error when testing ImportFromEPSG() on my GDAL.</div><div><br></div><div>    import osr</div><div>    testSR = osr.SpatialReference()</div><div>    testSR.ImportFromEPSG(4326)</div><div>    #this returns value of 6</div><div>    print testSR.ExportToPrettyWkt()</div><div>    #this returns blank/empty string</div><div><br></div><div>I have done:</div><div><br></div><div>    'GDAL_DATA' in os.evirons</div><div>    #returns TRUE</div><div><br></div><div>I also set</div><div><br></div><div>    os.environs['GDAL_DATA'] = r'C:\Program Files (x86)\GDAL\gdal-data'</div><div><br></div><div>which is where gcs.csv is located.</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Any suggestions for fixing this? Could ArcGIS be causing the problems? </div></div>