Bug #672

psxy draws outside of specified region

Added by John about 2 years ago. Updated about 2 years ago.

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

100%

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

Description

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

built from source

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

REGION=-R110/215/-45/25
PROJECTION=-JM6i
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
EOF
gv box.ps

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

Thanks,
John

Associated revisions

Revision 14052
Added by Paul about 2 years ago

Address issue #672 and adding new test test/psxy/nojump.sh

History

#1 Updated by Paul about 2 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 about 2 years ago

  • Status changed from Resolved to Closed

Closed as verified

Also available in: Atom PDF