Skip to content
Prev 25133 / 29559 Next

Wrong reading of data type in readOGR ?

Le 25/11/2016 ? 16:18, Roger Bivand a ?crit :
For info, a command line like this (with GDAL1_integer64=TRUE)

2539<-readOGR(".","Arvicola2539maj11au", GDAL1_integer64=TRUE)

...works perfect and meet the expectations. May be useful to keep in 
mind for old shapefiles left on a shelter in the attic...

Before Roger's response, during the training course (may day, may day, 
etc.), the other way round had been to import with no arguments and then 
use a loop such:

for(i in 18:75) d2539 at data[,i]<-as.numeric(as.character(d2539 at data[,i]))

but it is (not recommandable) ruffian's way (:-)