rgdal

Installing rgdal - backdate rgdal version versus update gdal version, and how?

懵懂的女人 提交于 2021-02-10 15:59:59
问题 Two part question: 1) Like the person who asked this question (rgdal won't install on AWS RStudio AMI), I'm running into problems installing the rgdal package on R running on Ubuntu 16.04. The package wants GDAL 1.11.4 or later, and Synaptic Package manager is only offering GDAL 1.11.3. The solution offered on the above question is to install an older version of rgdal from the archive. On the other hand, the answer given to this older question (Trouble getting latest version of GDAL on ubuntu

Installing rgdal - backdate rgdal version versus update gdal version, and how?

假如想象 提交于 2021-02-10 15:57:57
问题 Two part question: 1) Like the person who asked this question (rgdal won't install on AWS RStudio AMI), I'm running into problems installing the rgdal package on R running on Ubuntu 16.04. The package wants GDAL 1.11.4 or later, and Synaptic Package manager is only offering GDAL 1.11.3. The solution offered on the above question is to install an older version of rgdal from the archive. On the other hand, the answer given to this older question (Trouble getting latest version of GDAL on ubuntu

Create hexagonal grid over city and associate with lon / lat points (in R)

╄→гoц情女王★ 提交于 2021-02-09 08:35:18
问题 I've been researching this for a while now but haven't come across any solution that fit my needs or that I can transform sufficiently to work in my case: I have a large car sharing data set for multiple cities in which I have the charging demand per location (e.g. row = carID, 55.63405, 12.58818, charging demand). I now would like to split the area over the city (example above is Copenhagen) up into a hexagonal grid and tag every parking location with an ID (e.g. row = carID, 55.63405, 12

Create hexagonal grid over city and associate with lon / lat points (in R)

允我心安 提交于 2021-02-09 08:34:19
问题 I've been researching this for a while now but haven't come across any solution that fit my needs or that I can transform sufficiently to work in my case: I have a large car sharing data set for multiple cities in which I have the charging demand per location (e.g. row = carID, 55.63405, 12.58818, charging demand). I now would like to split the area over the city (example above is Copenhagen) up into a hexagonal grid and tag every parking location with an ID (e.g. row = carID, 55.63405, 12

Create hexagonal grid over city and associate with lon / lat points (in R)

懵懂的女人 提交于 2021-02-09 08:33:32
问题 I've been researching this for a while now but haven't come across any solution that fit my needs or that I can transform sufficiently to work in my case: I have a large car sharing data set for multiple cities in which I have the charging demand per location (e.g. row = carID, 55.63405, 12.58818, charging demand). I now would like to split the area over the city (example above is Copenhagen) up into a hexagonal grid and tag every parking location with an ID (e.g. row = carID, 55.63405, 12

Create hexagonal grid over city and associate with lon / lat points (in R)

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-09 08:33:13
问题 I've been researching this for a while now but haven't come across any solution that fit my needs or that I can transform sufficiently to work in my case: I have a large car sharing data set for multiple cities in which I have the charging demand per location (e.g. row = carID, 55.63405, 12.58818, charging demand). I now would like to split the area over the city (example above is Copenhagen) up into a hexagonal grid and tag every parking location with an ID (e.g. row = carID, 55.63405, 12

“recipe for target 'projectit.o' failed” while installing rgdal

喜欢而已 提交于 2021-02-08 14:01:43
问题 I am getting the following error while installing rgdal_1.5-15 in R (I am on a Ubuntu 18.04.4 LTS GNU/Linux 4.15.0-112-generic x86_64) : projectit.cpp:159:6: error: conflicting declaration of C function ‘SEXPREC* transform_ng(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’ SEXP transform_ng(SEXP fromargs, SEXP toargs, SEXP coordOp, SEXP npts, SEXP x, SEXP y, SEXP z SEXP aoi) { ^~~~~~~~~~~~ In file included from projectit.cpp:11:0: rgdal.h:132:6: note: previous declaration ‘SEXPREC* transform_ng

R version 3.4.0 rgdal will not load

[亡魂溺海] 提交于 2021-02-08 08:29:20
问题 I recently installed the latest version of R (3.4.0) and installed all of my packages, but for some reason rgdal will not load and I'm getting this message: library(rgdal) Error: package or namespace load failed for ‘rgdal’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgdal/libs/rgdal.so': dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgdal/libs/rgdal.so, 6): Library not loaded:

Cannot open shapefile in R

杀马特。学长 韩版系。学妹 提交于 2021-01-29 15:47:54
问题 I am not sure why but I cant read shapefiles at all in r! On a MacOS Mojave, I have tried: afg <- readOGR("afg.shp") afg <- readOGR(dsn = ".", layer = "afg") The shapefiles are from this website: http://www.diva-gis.org/gdata, Afghanistan roads. This same error keeps occuring: Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv, : Cannot open layer However, this code works: countries <- readOGR("countries.geojson") Can someone figure out why? 回答1: I'm on

Cannot open data source. .GDB in R

我怕爱的太早我们不能终老 提交于 2021-01-29 09:57:07
问题 I am trying to load the data from the National Address Database provided by Transportation.gov into R. The data can be downloaded by anyone after accepting the disclaimer at this link: https://www.transportation.gov/gis/nad/disclaimer I download the data, unzipped it into a directory I called data and then tried to use rgdal to list all the layers present in the data via: fc_list<- rgdal::ogrListLayers("./data/NAD_20180215.gdb") . However, I cannot get rgdal to return anything other than an