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
5
votes
2 answers

Error installing R package sf 0.9.0 after updating gdal on macOS

I've had sf and rproj working on mac forever, and still working since upgrading to Catalina / R 3.6.2. I tried to install the latest version of sf (0.9.0), both from CRAN and the dev version, and get errors both ways, configure: error: libproj not…
DanO
  • 600
  • 3
  • 11
5
votes
3 answers

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

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…
ESELIA
  • 132
  • 1
  • 12
5
votes
1 answer

guess coordinate system from x and y in meters, and approximate corresponding long and lat

I have this data frame of coordinates of Belgian locations : data # # A tibble: 11 x 4 # LON LAT x y # # 1 3.618942 50.68165 96227.01 152551.2 # 2 3.473466 50.55899 86074.26…
moodymudskipper
  • 46,417
  • 11
  • 121
  • 167
5
votes
4 answers

Can No Longer Load rgdal

I updated my GDAL to 2.2.2 on Ubuntu and now rgdal fails in R. I get this message when I try to load rgdal (I also tried to update rgdal, but didn't work). Error in get(method, envir = home) : lazy-load database…
user13317
  • 451
  • 3
  • 13
5
votes
1 answer

Convert Lambert conformal conic projection to wgs84 in r

I have Lambert conformal conic projection x,y information. I need the WGS84 coordinate. But I don't know what is lcc exactly. I have provided the lcc information below. Is there a way to convert lcc to WGS84 in r? example lcc x,y : xy <-…
Rokmc1050
  • 463
  • 1
  • 6
  • 16
5
votes
2 answers

Error: isTRUE(gpclibPermitStatus()) is not TRUE when using fortify function, rgdal package

I am trying to work with spatial data that I downloaded here in order to make a map in ggplot2. library(rgdal) library(ggplot2) library(rgeos) df <- readOGR(mydirectory, layer = 'gem_2013_v1') df.fort <- fortify(df, region = "AANT_INW") I keep on…
rdatasculptor
  • 8,112
  • 14
  • 56
  • 81
5
votes
2 answers

Opening shapefiles in R using rgdal always better than using maptools?

I found two basic ways to open shapefiles in R - using rgdal and maptools: # 1 require(maptools) shape_maptools <- readShapeLines("file.shp") # 2 require(rgdal) shape_rgdal <- readOGR(".", "file") The data structures seem exactly the same in both…
Tomas
  • 57,621
  • 49
  • 238
  • 373
5
votes
1 answer

What does the following error mean: TopologyException: found non-nonded intersection between LINESTRING

I'm trying to fortify a shape file that I loaded into R with rgdal, but I get the following error: "Error: TopologyException: found non-noded intersection between LINESTRING (34.7279 1.59723, 34.7278 1.59729) and LINESTRING …
David
  • 265
  • 4
  • 13
4
votes
1 answer

R install rgdal package - Error: GDALAllRegister not found in libgdal

I am trying to install the package in R on a Fedora platform. However, the following error message appears: configure: error: GDALAllRegister not found in libgdal. I don't know what to do with the error message. In this post there was already the…
TobKel
  • 1,293
  • 8
  • 20
4
votes
1 answer

spTransform() in R warnings with PROJ

I'm in R v 4.0.4 - sp v 1.4-5, and rgdal 1.5-23. I'm loading a shapefile using the rgdal package and then trying to simply apply spTransform() but I'm getting a ridiculous set of warnings that I can't get rid of. Anyone have any insight on…
GrantRWHumphries
  • 612
  • 7
  • 22
4
votes
1 answer

Errors installing rgdal MacOS - still

There have been many posts regarding problems installing the rgdal package. I've been through lots of them, have tried many of the recommended solutions, but still am having problems. I'm using R4.0.3 on a Mac under OS10.15.7 (Catalina). I use…
Fleetboat
  • 189
  • 7
4
votes
2 answers

Since update of sp package i get a warning by calling a sp::CRS definition

Since update of sp package i get a warning i did not get before: 1: In showSRID(uprojargs, format = "PROJ", multiline = "NO") : Discarded ellps unknown in CRS definition: +proj=stere +lat_0=90 +lon_0=10 +k=0.93301270189 +x_0=0 +y_0=0 +R=6370040…
Andreas
  • 397
  • 4
  • 18
  • 37
4
votes
1 answer

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

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,…
Jim
  • 558
  • 4
  • 13
4
votes
2 answers

How to preserve scale_fill_color from first plot using shapefiles in ggplot2

I need help with scale_fill_manual using a shapefile in ggplot2. I have tried many thing and I am finally posting so hopefully someone will be able to give me a hint. I am basically ploting a shapefile and use scale_fill_manual to vizualise it with…
Salvador
  • 1,229
  • 1
  • 11
  • 19
4
votes
0 answers

Cannot install Rgdal (Centos)

Hello I have a problem when I try to install RGDAL. If found other posts with similar problems, but the solutions were always limited to Debian distributions, can you help me on CentOs? This is the error I have when running the following command in…