diff options
| author | Jeff Whitaker <jswhit@fastmail.fm> | 2015-12-13 10:12:59 -0700 |
|---|---|---|
| committer | Jeff Whitaker <jswhit@fastmail.fm> | 2015-12-13 10:12:59 -0700 |
| commit | f8feacc4a71b1224ee1fe8b2bb5e79fd3bddefb2 (patch) | |
| tree | c463bc75c51f0c00b8a17ba1e6c142805a568c8a | |
| parent | 82d76066b36d4b24518c7ba04b37bf0e588a4d59 (diff) | |
| download | PROJ-f8feacc4a71b1224ee1fe8b2bb5e79fd3bddefb2.tar.gz PROJ-f8feacc4a71b1224ee1fe8b2bb5e79fd3bddefb2.zip | |
add test for hammer projection (forward and inverse)
| -rwxr-xr-x | nad/testvarious | 16 | ||||
| -rw-r--r-- | nad/tv_out.dist | 8 |
2 files changed, 24 insertions, 0 deletions
diff --git a/nad/testvarious b/nad/testvarious index 4f3ca324..972dc222 100755 --- a/nad/testvarious +++ b/nad/testvarious @@ -266,6 +266,22 @@ $EXE +proj=robin +datum=WGS84 \ 1741397.30 4276351.58 0.00 EOF echo "##############################################################" >> ${OUT} +echo "Test hammer projection (pull request #329)" >> ${OUT} +$EXE +proj=latlong +datum=WGS84 \ + +to +proj=hammer +datum=WGS84 \ + -E >>${OUT} <<EOF +-30 40 +-35 45 +20 40 +EOF +$EXE +proj=hammer +datum=WGS84 \ + +to +proj=latlong +datum=WGS84 \ + -E >>${OUT} <<EOF +-2711575.08 4395506.62 0.00 +-2964412.70 4929091.33 0.00 +1811748.54 4377349.50 0.00 +EOF +echo "##############################################################" >> ${OUT} echo "Test healpix forward projection on sphere" >> ${OUT} $EXE +proj=latlong +a=1 +lon_0=0 \ +to +proj=healpix +a=1 +lon_0=0 -f '%.'5'f' \ diff --git a/nad/tv_out.dist b/nad/tv_out.dist index f3c6c39f..e58f6da1 100644 --- a/nad/tv_out.dist +++ b/nad/tv_out.dist @@ -92,6 +92,14 @@ Test robinson projection (#113) -2963455.42 4805073.65 0.00 35dW 45dN 0.000 1741397.30 4276351.58 0.00 20d0'0.002"E 40d0'0.066"N 0.000 ############################################################## +Test hammer projection (pull request #329) +-30 40 -2711575.08 4395506.62 0.00 +-35 45 -2964412.70 4929091.33 0.00 +20 40 1811748.54 4377349.50 0.00 +-2711575.08 4395506.62 0.00 30dW 40dN 0.000 +-2964412.70 4929091.33 0.00 35dW 45dN 0.000 +1811748.54 4377349.50 0.00 20dE 40dN 0.000 +############################################################## Test healpix forward projection on sphere 0 41.81031 0.00000 0.78540 0.00000 -90 0 -1.57080 0.00000 0.00000 |
