natcap / invest

InVEST®: models that map and value the goods and services from nature that sustain and fulfill human life.
Apache License 2.0
166 stars 68 forks source link

Check for and handle pre-defined GDAL_DATA environment variable in binaries #2

Closed phargogh closed 4 years ago

phargogh commented 4 years ago

We had a case in the forums (https://community.naturalcapitalproject.org/t/notimplementederror-and-missing-gdal-data-environment-variable/730/3) where the user was trying to run the InVEST binaries but already had a GDAL_DATA environment variable defined, which then prevented the application from finding the local binaries.

Someone is likely to have a GDAL_DATA environment variable defined if they have a valid GDAL install on their system, but if it isn't of the correct version, it'll undoubtedly cause issues. We should be able to handle this case elegantly within the InVEST binaries.

phargogh commented 4 years ago

Maybe this can be handled in the diagnostic logging in the workbench?

phargogh commented 4 years ago

This is being addressed in natcap/invest-workbench#40