[prev in list] [next in list] [prev in thread] [next in thread]
List: r-sig-geo
Subject: [R-sig-Geo] Bug in Rgshhs? - can not only set xlim (requires ylim)
From: Torleif Markussen Lunde <torleif.lunde () cih ! uib ! no>
Date: 2009-02-27 16:02:25
Message-ID: 200902271702.25438.torleif.lunde () cih ! uib ! no
[Download RAW message or body]
Hi
If I am not wrong there is a small bug in Rgshhs in Maptools. When defining
only xlim (not ylim) an error message is returned:
"Error in polys[[which(chosen_0 == (Antarctica - 1))]] :
attempt to select less than one element"
Is this a bug or a feature?
In any case. I did some modifications to Rgshhs. It fixes the bug(?) and
handles shifting slightly different. However the modified Rgshhs does not
accept upper xlim 180 > xlim > 190. Did not figure out why yet. I am sorry if
the modification is dirty. The function is slower (x 2) when shifting is
involved.
The modified version (Rgshhsn) can be found at:
http://open.uib.no/R/Rgshhs3-tmp.r
Best wishes
Torleif
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic