Bug #672

psxy draws outside of specified region

Added by John over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:2015-02-10
Priority:NormalDue date:
Assignee:Paul% Done:


Target version:Candidate for next bugfix release
Affected version:5.1.x Platform:


running ubuntu 12.04, 64bit with
$ gmt --version

built from source

the following script draws a rectangle that "wraps" through zero longitude instead of crossing simply from east to west:

gmt psbasemap -B10f5g1:.$1: $REGION $PROJECTION -V -K > box.ps
gmt pscoast $REGION $PROJECTION -Di -Gbrown -V -O -K >> box.ps
gmt psxy $REGION $PROJECTION -Ap -Wfat,green -V -O <<EOF >> box.ps
115.00 -20.00
115.00 15.00
195.00 15.00
195.00 -20.00
115.00 -20.00
gv box.ps

This issue may be related to issue #657 (but I'm problems updating and rebuilding).



#1 Updated by Paul over 6 years ago

  • Status changed from New to Resolved
  • Assignee set to Paul
  • Target version set to Candidate for next bugfix release
  • % Done changed from 0 to 100
  • Affected version changed from 5.2-svn to 5.1.x

Couple of problems fixed: The -Ap machinery did not worry too much about a step of -280 degrees in longitude instead of realizing it is +80 degrees. Also, an aggressive jump-in-longitude checker also conspired to mess this up. Fixed in r14052. I added a new test/psxy/nojump.sh to make sure this one does not resurface.

#2 Updated by Remko over 6 years ago

  • Status changed from Resolved to Closed

Closed as verified

Also available in: Atom PDF