aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-05-16 17:42:31 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-05-16 17:50:15 +0200
commit853db320891e8dc13bb5c79a3d6975a510b9fa0c (patch)
tree396f59b034430b2bd72e67cb52951dde67196fad
parentce38ade494db73ab27dbdbdab84332e4530c8d8a (diff)
downloadPROJ-853db320891e8dc13bb5c79a3d6975a510b9fa0c.tar.gz
PROJ-853db320891e8dc13bb5c79a3d6975a510b9fa0c.zip
plot.py: make path to 'proj' executable configurable with PROJ_EXE environment variable
-rw-r--r--docs/plot/plot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/plot/plot.py b/docs/plot/plot.py
index ec263fe4..1822f347 100644
--- a/docs/plot/plot.py
+++ b/docs/plot/plot.py
@@ -61,7 +61,7 @@ from shapely.geometry import shape
from shapely.ops import transform
from descartes import PolygonPatch
-PROJ = '../../src/proj'
+PROJ = os.environ.get('PROJ_EXE', '../../src/proj')
PROJ_LIB = '../../data'
LINE_LOW = 'data/coastline.geojson'
@@ -161,7 +161,7 @@ def project(coordinates, proj_string, in_radians=False):
proc = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
env={'PROJ_LIB': os.path.abspath(PROJ_LIB)})
except FileNotFoundError:
- print("'proj' binary not found, please update PROJ constant in plot.py "
+ print("'proj' binary not found, set the PROJ_EXE environment variable "
"to point to your local 'proj' binary")
exit(1)