I have a a big feature class in geodatabase (~1.3 million rows and 234 columns; you could download it using this link) in ArcGIS 10.4.1.
I want to import the feature class from the geodatabase to R and plot specific variables (using ggplot2).
I tried importing it into R, using the answer of this question, as below
require(rgdal)
# The input file geodatabase
fgdb = "C:/Question_Online/union_question.gdb"
# List all feature classes in a file geodatabase
subset(ogrDrivers(), grepl("GDB", name))
fc_list = ogrListLayers(fgdb)
print(fc_list)
# Read the feature class
fc = readOGR(dsn=fgdb,layer="union_thirdtrial")
However, it took more than an hour, so I had to close RStudio to terminate the process.
Can anyone point out what I am missing for a better (faster) way to import this feature class to R?
z <- as(y, "Spatial")Error: cannot allocate vector of size 14 Kb. I will appreciate any help how to fix it. – shiny Jan 11 '17 at 22:42memory.limit(), and then increasing it withmemory.limit(size = x). – eivindhammers Jan 11 '17 at 23:19memory.limit() [1] 16264I think this means it is 16264 Mb which is higher than the actual memory of my PC. I think this means I don't need to increase it. Any feedback will be appreciated. – shiny Jan 12 '17 at 00:56st_drom_zmis nowst_zmin latestsfpackage – Chris Wilson Dec 01 '20 at 22:31