Skip to content

Commit

Permalink
set env vars to auto-download proj transformation grids
Browse files Browse the repository at this point in the history
  • Loading branch information
dugalh committed Oct 8, 2023
1 parent b9e91a4 commit efdd175
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions simple_ortho/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
limitations under the License.
"""

import logging
import os
import pathlib
import sys

# enable on-demand download of proj transformation grids
os.environ.update(PROJ_NETWORK='ON', PROJ_ONLY_BEST_DEFAULT='ON', ALLOW_ELLIPSOIDAL_HEIGHT_AS_VERTICAL_CRS='NO')

# path to package root
if '__file__' in globals():
root_path = pathlib.Path(__file__).absolute().parents[1]
else:
root_path = pathlib.Path(os.getcwd())
root_path = pathlib.Path.cwd().absolute()

0 comments on commit efdd175

Please sign in to comment.