rgdal

How to read Oracle Spatial data with rgdal (missing drive?)

淺唱寂寞╮ 提交于 2021-01-28 11:31:20
问题 I would like to read spatial data into R from my Oracle Spatial database. When I execute ogrDrivers() I do not see anything for Oracle Spatial. And the following fails: > require(rgdal) > ogrInfo(dsn="OCI:myusr/mypwd@mydb:MYTABLE:") Error in ogrListLayers(dsn = dsn) : Cannot open data source It looks like Oracle Spatial driver is not normally built into OGR (Oracle makes it really difficult for everybody to work and interoperate with other eco-systems!). I am wondering whether there are other

Using R intersections to create a polygons-inside-a-polygon key using two shapefile layers

不羁岁月 提交于 2021-01-28 08:00:52
问题 The data I have two shapefiles marking the boundaries of national and provincial electoral constituencies in Pakistan. The objective I am attempting to use R to create a key that will generate a list of which provincial-level constituencies are "contained within" or otherwise intersecting with which national-level constituencies, based on their coordinates in this data. For example, NA-01 corresponds with PA-01, PA-02, PA-03; NA-02 corresponds with PA-04 and PA-05, etc. (The key will

installing sf package with libraries in non-standard locations

℡╲_俬逩灬. 提交于 2021-01-28 06:28:16
问题 The required libraries are in non-standard locations and I can install rgdal by the command below: install.packages('rgdal', type = "source", configure.args=c('--with-gdal-config=/home/programs/anaconda3/bin/gdal-config', '--with-proj-include=/home/programs/anaconda3/include', '--with-proj-lib=/home/programs/anaconda3/lib')) But I can't install sf package. It keeps saying configure: error: proj_api.h not found in standard or given locations. . The installation code and output is below. Do you

R Leaflet. Group point data into cells to summarise many data points

限于喜欢 提交于 2021-01-27 07:54:44
问题 Morning, afternoon or evening. I have the following positional data (adjusted from 'Count of sampling points within a grid cell') # Demo data set.seed(123) # lat <- runif(1000, 46.5, 48.5) lon <- runif(1000, 13,16) # pos <- data.frame(lon, lat) Using the following: ggplot(pos, aes(x = lon, y=lat)) + geom_bin2d(bins = 25) + stat_bin_2d(aes(label=stat(count)), bins = 25, position="identity") + scale_fill_gradient(low = "white", high = "red")+ theme_void() gives: Awesome, but, I want to do the

R Leaflet. Group point data into cells to summarise many data points

倾然丶 夕夏残阳落幕 提交于 2021-01-27 07:53:36
问题 Morning, afternoon or evening. I have the following positional data (adjusted from 'Count of sampling points within a grid cell') # Demo data set.seed(123) # lat <- runif(1000, 46.5, 48.5) lon <- runif(1000, 13,16) # pos <- data.frame(lon, lat) Using the following: ggplot(pos, aes(x = lon, y=lat)) + geom_bin2d(bins = 25) + stat_bin_2d(aes(label=stat(count)), bins = 25, position="identity") + scale_fill_gradient(low = "white", high = "red")+ theme_void() gives: Awesome, but, I want to do the

libgdal.so.20 issue centos rgdal

北慕城南 提交于 2021-01-27 05:39:23
问题 Can someone help me to understanding what is the problem of rgdal ? I installed gdal 2 for centos 6 64 bits but i didn't succeed to install rgdal. I tried to figure out what is the issue but i didn't found anything useful on the internet . this is Rstudio-server console: install.packages("rgdal") Installing package into ‘/home/admin/R/x86_64-redhat-linux-gnu-library/3.4’ (as ‘lib’ is unspecified) essai de l'URL 'https://cran.rstudio.com/src/contrib/rgdal_1.2-18.tar.gz' Content type

libgdal.so.20 issue centos rgdal

你说的曾经没有我的故事 提交于 2021-01-27 05:39:18
问题 Can someone help me to understanding what is the problem of rgdal ? I installed gdal 2 for centos 6 64 bits but i didn't succeed to install rgdal. I tried to figure out what is the issue but i didn't found anything useful on the internet . this is Rstudio-server console: install.packages("rgdal") Installing package into ‘/home/admin/R/x86_64-redhat-linux-gnu-library/3.4’ (as ‘lib’ is unspecified) essai de l'URL 'https://cran.rstudio.com/src/contrib/rgdal_1.2-18.tar.gz' Content type

How do I get rgdal to open a geodatabase (.gdb) file?

和自甴很熟 提交于 2020-12-12 06:06:50
问题 I'm trying to read in a .gdb file using rgdal:: readOGR. I finally got it to work a few days ago by removing the trailing "/" at the end of the path and the .gdb at the end of the file name. Then, poof! today my code won't work. As far as I can tell nothing has changed! After my code failed, I tried updating everything, so I'm now running: Mac OS10.14.4, RStudio v1.2.1335, R v3.6.0, and rgdal v1.4-3. I've checked that rgdal has the OpenFileGDB driver. I've also tried adding the .gdb extension

How do I get rgdal to open a geodatabase (.gdb) file?

馋奶兔 提交于 2020-12-12 06:06:07
问题 I'm trying to read in a .gdb file using rgdal:: readOGR. I finally got it to work a few days ago by removing the trailing "/" at the end of the path and the .gdb at the end of the file name. Then, poof! today my code won't work. As far as I can tell nothing has changed! After my code failed, I tried updating everything, so I'm now running: Mac OS10.14.4, RStudio v1.2.1335, R v3.6.0, and rgdal v1.4-3. I've checked that rgdal has the OpenFileGDB driver. I've also tried adding the .gdb extension

install rgdal on ubuntu 18.04

旧巷老猫 提交于 2020-12-12 04:01:45
问题 I am trying to install rgdal on Ubuntu 18.04. The error message I am having now is: configure: R_HOME: /usr/lib/R configure: CC: gcc -std=gnu99 configure: CXX: g++ -std=gnu++11 configure: C++11 support available configure: rgdal: 1.4-4 checking for /usr/bin/svnversion... no configure: svn revision: 833 checking for gdal-config... /home/kchen/anaconda3/bin/gdal-config checking gdal-config usability... yes configure: GDAL: 2.3.3 checking C++11 support for GDAL >= 2.3.0... yes checking GDAL