Bug #672
psxy draws outside of specified region
Status: | Closed | Start date: | 2015-02-10 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % 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
History
#1
Updated by Paul about 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.