Questions tagged [rgdal]

The rgdal package for R provides bindings to the Geospatial Data Abstraction Library (GDAL) and access to projection/transformation operations from the PROJ.4 library.

rgdal is an package providing bindings to the Geospatial Data Abstraction Library () and access to projection/transformation operations from the library.

Repositories

Vignettes

Other resources

Related tags

572 questions
7
votes
3 answers

rgdal not available for R version 3.2.2

I am trying out the examples mentioned in this link . I have successfully installed all the packages mentioned as the basic packages here. When I try to use command gmap (given in the example as mymap <- gmap("France") i get the following problem:…
Shreta Ghimire
  • 1,019
  • 2
  • 13
  • 27
7
votes
3 answers

Convert features of a 'multifeature' GeoJSON into R spatial objects

Normally you can read geojson files into R with trusty readOGR, as illustrated here. However, this fails for multifeature geojsons. Reproducible…
RobinLovelace
  • 4,799
  • 6
  • 29
  • 40
7
votes
1 answer

Use Rcartogram on a SpatialPolygonsDataFrame object

I'm trying to do the same thing asked in this question, Cartogram + choropleth map in R, but starting from a SpatialPolygonsDataFrame and hoping to end up with the same type of object. I could save the object as a shapefile, use scapetoad, reopen it…
duncandoo
  • 313
  • 2
  • 6
7
votes
1 answer

Install rgdal library in rstudio - GDALAllRegister not found in libgdal

I'm trying to install rgdal library in Rstudio (0.97.332), using Ubuntu 12.10 (quantal) and R 2.15.1 (Roasted Marshmallows). I have the following installed regarding gdal in Ubuntu: $ apt-cache search gdal dans-gdal-scripts - GDAL contributed tools…
Tomas Greif
  • 21,685
  • 23
  • 106
  • 155
6
votes
1 answer

How to rotate world map using Mollweide projection with sf/rnaturalearth/ggplot in R?

I would like to plot a world map in R using the Mollweide projection centred on the Pacific region (specifically, Australia), using a rnaturalearth --> sf --> ggplot pipeline. I have been running into the annoying issue of having connected lines…
dbarneche
  • 645
  • 1
  • 5
  • 8
6
votes
2 answers

"recipe for target 'projectit.o' failed" while installing rgdal

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,…
ze miguel
  • 306
  • 3
  • 9
6
votes
1 answer

Using ggplot to plot shapefile and gganimate for animation

Sample data library(raster) library(ggplot2) my.shp <- getData('GADM', country = 'FRA', level = 1) plot(my.shp) If I want to plot this data using ggplot: my.shp_f <- fortify(my.shp, region = "ID_1") ggplot(data = my.shp_f, aes(long, lat, group =…
89_Simple
  • 3,393
  • 3
  • 39
  • 94
6
votes
2 answers

libgdal.so.20 issue centos rgdal

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…
Saber bouabid
  • 117
  • 1
  • 11
6
votes
1 answer

spatial join on two simple features {sf} with over 1 mil. entries as fast as possible

I hope this is not too trivial but I really can't find an answer and I'm too new to the topic to come up with alternatives myself. So here is the Problem: I have two shapefiles x and y that represent different processing levels of a Sentinel2…
6
votes
2 answers

Extract shapefile value to point with R

I want to extract a shapefile value at a particular location. The shapefile I am using is can be found here, downloaded by clicking Download IHO Sea Areas. The shape file contains all the possible seas. I can read it and plot it…
user3910073
  • 511
  • 1
  • 6
  • 23
6
votes
2 answers

readOGR .gdb with multiple Feature Datasets in R

I am trying to read shapefiles contained within a geodatabase file (.gdb) into R. The .gdb contains two Feature Datasets with multiple Feature Classes within each. The problem is only one of the two Feature Datasets is being read. Specifically, I…
habd
  • 158
  • 1
  • 8
6
votes
2 answers

unable to install rgdal in ubuntu 14.04 (undefined to reference to 'pj_ctx_fclose')

I tried to install rgdal with configure.args but no luck. Installed gdal version: gdal-config --version 1.11.2 ogrinfo --version GDAL 1.11.2, released 2015/02/10 found gdal binary tools: ls /usr/bin | grep…
seifer_08ms
  • 375
  • 5
  • 17
6
votes
1 answer

plotting SpatialPointsDataFrame over a SpatialPolygonsDataFrame

I have a SpatialPolygonsDataFrame that I plot using the following command: spplot(milanoNILNew, "percPolVita",at = c(0,0.0696,0.08979,0.0974,0.1116,0.181),col.regions =pal,main="Quota Clienti Unipol con Polizze Vita ") I have created a…
Giorgio Spedicato
  • 2,413
  • 3
  • 31
  • 45
5
votes
0 answers

package ‘gdalUtils’ is not available for this version of R (4.2.0.)

I'm trying to install gdalUtils in RStudio but it throws an error saying that a compatible version of it with my R v 4.2.0. (latest) does not exist. I need this package in order to use another. Any suggestions how to sole this? Warning in…
FlyingDutch
  • 1,100
  • 2
  • 14
  • 24
5
votes
1 answer

Assistance installing 'rgdal' package on Mac

How do you install "rgdal" package on a MacOS Catalina? Ran the following code: install.packages('rgdal', type = "source", configure.args=c( '--with-gdal-config=/Library/Frameworks/GDAL.framework/Programs/gdal-config', …
Ish
  • 95
  • 1
  • 7
1 2
3
38 39