aboutsummaryrefslogtreecommitdiff
path: root/docs/plot
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-05-24 20:03:48 +0200
committerGitHub <noreply@github.com>2020-05-24 20:03:48 +0200
commit5d502d356e16ef81f481eb82dcdeba0ea3ab1f9e (patch)
treec4afb8963bd003e13fd872f6f0f3d611faddeac8 /docs/plot
parent35dc7d00f92b4a575a2bbc1d90767a9c3e67557c (diff)
parentf7f3b98a5334bdb2dae186e8ce806eece8432a96 (diff)
downloadPROJ-5d502d356e16ef81f481eb82dcdeba0ea3ab1f9e.tar.gz
PROJ-5d502d356e16ef81f481eb82dcdeba0ea3ab1f9e.zip
Merge pull request #2230 from rouault/limit_peirce_q_to_northern_hemisphere
Limit peirce_q to northern hemisphere, and fix images for adams_hemi, guyou and peirce_q
Diffstat (limited to 'docs/plot')
-rw-r--r--docs/plot/plot.py4
-rw-r--r--docs/plot/plotdefs.json10
2 files changed, 7 insertions, 7 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)
diff --git a/docs/plot/plotdefs.json b/docs/plot/plotdefs.json
index 53340a68..1e9c05ee 100644
--- a/docs/plot/plotdefs.json
+++ b/docs/plot/plotdefs.json
@@ -3,8 +3,8 @@
"filename": "adams_hemi.png",
"latmax": 90,
"latmin": -90,
- "lonmax": 180,
- "lonmin": -180,
+ "lonmax": 90,
+ "lonmin": -90,
"name": "adams_hemi",
"projstring": "+proj=adams_hemi",
"res": "low",
@@ -514,8 +514,8 @@
"filename": "guyou.png",
"latmax": 90,
"latmin": -90,
- "lonmax": 180,
- "lonmin": -180,
+ "lonmax": 90,
+ "lonmin": -90,
"name": "guyou",
"projstring": "+proj=guyou",
"res": "low",
@@ -1053,7 +1053,7 @@
{
"filename": "peirce_q.png",
"latmax": 90,
- "latmin": -90,
+ "latmin": 0,
"lonmax": 180,
"lonmin": -180,
"name": "peirce_q",