3

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 GDAL_DATA in os.evirons set to C:\Program Files\GDAL\gdal-data, which is where gcs.csv is located. The proj.dll file is in C:\Program Files\GDAL. Running 'GDAL_DATA' in os.environs returns TRUE.

Any suggestions?

I consulted this past link but it did not lead to a solution for me.

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.