Last active
October 28, 2016 14:55
-
-
Save bhaskarvk/686deca51e3e81cb785ed8f2430ac2fc to your computer and use it in GitHub Desktop.
Problems with rgdal::readOGR and int64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> library(rgdal) | |
Loading required package: sp | |
rgdal: version: 1.1-10, (SVN revision 622) | |
Geospatial Data Abstraction Library extensions to R successfully loaded | |
Loaded GDAL runtime: GDAL 1.11.5, released 2016/07/01 | |
Path to GDAL shared files: /usr/local/Cellar/gdal/1.11.5_1/share/gdal | |
Loaded PROJ.4 runtime: Rel. 4.9.3, 15 August 2016, [PJ_VERSION: 493] | |
Path to PROJ.4 shared files: (autodetected) | |
Linking to sp version: 1.2-3 | |
> spdf <- tigris::states() | |
> sapply(spdf@data, class) | |
REGION DIVISION STATEFP STATENS GEOID STUSPS NAME LSAD | |
"character" "character" "character" "character" "character" "character" "character" "character" | |
MTFCC FUNCSTAT ALAND AWATER INTPTLAT INTPTLON | |
"character" "character" "numeric" "numeric" "character" "character" | |
> range(spdf@data$ALAND) | |
[1] 1.583650e+08 1.477946e+12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> library(rgdal) | |
Loading required package: sp | |
rgdal: version: 1.1-10, (SVN revision 622) | |
Geospatial Data Abstraction Library extensions to R successfully loaded | |
Loaded GDAL runtime: GDAL 2.0.1, released 2015/09/15 | |
Path to GDAL shared files: C:/Users/user001/R.libs/rgdal/gdal | |
Loaded PROJ.4 runtime: Rel. 4.9.2, 08 September 2015, [PJ_VERSION: 492] | |
Path to PROJ.4 shared files: C:/Users/user001/R.libs/rgdal/proj | |
Linking to sp version: 1.2-3 | |
> spdf <- tigris::states() | |
> sapply(spdf@data, class) | |
REGION DIVISION STATEFP STATENS GEOID STUSPS NAME LSAD MTFCC FUNCSTAT | |
"factor" "factor" "factor" "factor" "factor" "factor" "factor" "factor" "factor" "factor" | |
ALAND AWATER INTPTLAT INTPTLON | |
"integer" "integer" "factor" "factor" | |
> range(spdf@data$ALAND) | |
[1] 158364992 2147483647 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment