[R-sig-Geo] coordinate precision using rgdal [solved]

Edzer J. Pebesma edzer.pebesma at uni-muenster.de
Fri Oct 26 23:07:52 CEST 2007


Dylan Beaudette wrote:
> On Friday 26 October 2007, Roger Bivand wrote:
>   
>> On Fri, 26 Oct 2007, Dylan Beaudette wrote:
>>     
>>> On Friday 26 October 2007, Roger Bivand wrote:
>>>       
>>>> On Fri, 26 Oct 2007, Dylan Beaudette wrote:
>>>>         
>>>>> Hi,
>>>>>
>>>>> noticed that when I import a shapefil with readOGR()  the coordinates
>>>>> are truncated to integers. Is there some way to prevent this type of
>>>>> behaviour?
>>>>>           
>
> As usualy Roger saved the day.
>
> The print method for an sp object will only print integer coordinates, even 
> though they are stored as double precision internally. 
>   
In your particular case yes, but it is the number of digits that's lower 
than you want by default, there's no defaulting to integers if 
coordinates are say less than 1e6.
--
Edzer




More information about the R-sig-Geo mailing list