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
0
votes
0 answers

RStudio and R 2.14.0, installing sp and rgdal

In the process of installing and getting the packages sp and rgdal running in my RStudio Version 0.98.501 on my Mac OS X 10_7_5, I get this error message: Error: This is R 2.11.1, package 'rgdal' needs >= 2.14.0 However if I look at on the RStudio…
0
votes
1 answer

installing GDAL 1.10 Complete needed to run rgdal package?

I am starting to work with Rstudio and have to work with spatial data. This question relates to my previous question about installing rgdal. I work on a Macbook pro with OSX10.7.5. Do I need to install GDAL 1.10 Complete as an installer in order to…
0
votes
1 answer

Trying to convert national grid system to lat long in r

I have seen code for this in python, but can't figure out how to do it in R. I have some code but it isn't working for me. My data has a column with latitude and a column with longitude but they are in the national grid system. I don't know how to…
0
votes
1 answer

Error importing OSM map tiles into R in Windows

This code works fine on a Macbook, but fails on my Windows desktop with the error: Error in raster(x) : error in evaluating the argument 'x' in selecting a method for function 'raster': Error: 'merge' is not an exported object from…
geotheory
  • 22,624
  • 29
  • 119
  • 196
0
votes
2 answers

rgdal not working in ubuntu 12.04

I have recently switched from windows to ubuntu and can't make the rgdal package working properly. I know there are a lot of posts on this but I just can't make it work. I have installed gdal following https://gist.github.com/lossyrob/4348503 but…
Irene
  • 744
  • 1
  • 12
  • 36
0
votes
1 answer

Mapping points to grid to plot density on a map

I have a dataset of 900K randomly sampled coordinate points with a value associated with each point. I want to make a grid on the map and assign each cell the avg value of all the points that lie within the cell. Finally I want to plot the grid as a…
Nitin
  • 2,624
  • 7
  • 29
  • 43
0
votes
2 answers

Latitude and Longitude to UTM coordinates

I have a big latitude longitude information from the UTM-zone 33 north. I tried the following commands to convert this geographical information to UTM coordinates (my data set object is initially called…
user2120231
  • 25
  • 1
  • 5
0
votes
1 answer

Is there a possibility to pass (binary) raster data directly to a spatial object?

I use getBinaryURL of curl packet to receive raster data (png, tiff, ...) from the web and save data to disk. This raster data is later used for spatial analysis where I currently use raster (and rgdal) packet to load raster data and create a raster…
0
votes
1 answer

how to make a loop for reading several nc files as a raster and then write them as envi?

This code given below (developed by stackoverflow users) will read a variable from a netcdf file and write it as an envi file. This code is working fine but I have several netcdf files like this one and I want to make a loop to do this for all files…
sacvf
  • 2,463
  • 5
  • 36
  • 54
0
votes
1 answer

why gdal gave me different max and min values of a variable from R?

These three lines will open and read one variable from a netcdf file: f=open.ncdf("C:\\BR_Ji1.nc") A = get.var.ncdf(nc=f,varid="date",verbose=TRUE) B = get.var.ncdf(nc=f,varid="GPP",verbose=TRUE) [1] "get.var.ncdf: entering. Here is varid:" [1]…
Sami Yemein
  • 125
  • 2
  • 8
-1
votes
1 answer

error in install.packages 'rgdal': gdal-config not found - configure argument error

I am trying to install rgdal package in rstudio. I am using centos8. I have already installed: sudo yum install gdal gdal-devel sudo yum install geos geos-devel I have also tried to install using: install.packages('rgdal', type = "source",…
motipai
  • 328
  • 3
  • 10
-1
votes
1 answer

The extent in UTM and the projection in lat lon

I have a raster with 4 layers and I want to convert the extent into lon/lat, in order to make the extract, but the points and the raster projection or extent doesn't match. Can you please help me ? pp.an class : RasterBrick dimensions :…
Alex.V
  • 45
  • 8
-1
votes
3 answers

R: readOGR() cannot open file

I downloaded a SHAPE file from here. I added to my working directory: > list.files('/home/lucho/data/EnglandGIS/', pattern='\\.shp$') [1] "england_gor_2011.shp" > file.exists('/home/lucho/data/EnglandGIS/england_gor_2011.shp') [1] TRUE However, I…
luchonacho
  • 6,759
  • 4
  • 35
  • 52
-1
votes
1 answer

Can't project data to robinson map with ggplot "no system list"

I am trying to plot some points on a map in R following instructions found here http://rpsychologist.com/working-with-shapefiles-projections-and-world-maps-in-ggplot When I get to the line where I use the rgdal:project function though I get an error…
ohnoplus
  • 1,205
  • 1
  • 17
  • 29
-1
votes
3 answers

How to add count to duplicates in R dataframe

I am having difficultly with my R code. I am trying to create a new dataframe, based on a dataframe I already have, where each duplicate value is individually multiplied by 1000 and added by 1 in order. For example, the values in my dataframe range…
timpjohns
  • 599
  • 4
  • 13
1 2 3
38
39