#!/bin/bash
#	$Id: clipping3.sh 12114 2013-09-03 19:19:00Z fwobbe $
#
# Check clipping of polygons outside region and with dateline

ps=clipping3.ps

cat << EOF > a.txt
150 -65
150 -55
170 -55
170 -65
150 -65
EOF
cat << EOF > b.txt
-170 -65
-170 -55
170 -55
170 -65
-170 -65
EOF
gmt psxy a.txt -Bx5 -By2 -BWSne -R140/175/-66/-60 -JM10c -W0.5p,red -Ggray -K -P -Xc > $ps
gmt psxy a.txt -Bx5 -By2 -BWSne -R -J -W0.5p,green -O -K -Y2.3i >> $ps
gmt psxy b.txt -Bx5 -By2 -BWSne -R165/200/-66/-60 -J -W0.5p,red -Ggray -O -K -Y2.3i >> $ps
gmt psxy b.txt -Bx5 -By2 -BWSne -R -J -W0.5p,green -O -Y2.3i >> $ps

