Questions tagged [gdalutils]
The gdalutils tag has no usage guidance.
22
questions
4
votes
2
answers
2k
views
Fast way to convert raster to polygon shapefile in R
I have a single-band raster showing different land cover classes. I want to convert it to a polygon shapefile. I tried to use the rasterToPolygons function with the option to dissolve neighboring ...
0
votes
1
answer
147
views
Error with gdalUtils when starting R - there is no package called ‘gdalUtils’?
I have a problem starting R with the following error message "Error in loadNamespace(x): there is no package called ‘gdalUtils’" (see screen capture below). I have tried all the ...
0
votes
2
answers
261
views
Downloading Global SoilGrids Data through WebDAV
I am attempting to download global SoilGrids data, following the tutorial for R. I want to download a full global map at 250 m resolution. Eventually I want to reproject it to EPSG:4326 but first I am ...
0
votes
1
answer
459
views
Meaning of error message for gdal_translate() and gdalbuildtvrt()? [closed]
I am working with gdal_translate() and gdal_buildvrt() from the gdalUtils package in R to merge several batches of a large number of raster files.
This is my code
gdalbuildvrt(gdalfile = l, # uses all ...
1
vote
3
answers
1k
views
Converting sinusoidal to WGS - MODIS TIFF file too big with R
I am interested by MODIS product. I've converted HDF file to TIFF with R and gdalUtils. I used a method similar to this :
https://stackoverflow.com/questions/36772341/reading-hdf-files-into-r-and-...
1
vote
1
answer
1k
views
Unable to library "rgdal" and "gdalUtils" after upgrading to macOS big sur
I just upgraded my laptop to macOS big sur, but then I could not library "rgdal" and "gdalUtils". It threw me an error:
Error: package or namespace load failed for ‘rgdal’ in dyn....
4
votes
1
answer
252
views
How to use sf:gdal_utils with extent option (-te)?
I want to build a Gdal VRT dataset with several bands and cropped to a specific region. For that, I'm using sf::gdal_utils but somehow I can't get the option -te to work. It either complains about an ...
0
votes
0
answers
632
views
Controlling number of gdal_translate cores when started via R's gdalUtils
I am processing satellite data in R and need to merge sat images of different UTM zones, which is where I ran into unexpected problems. I think I have solved them, but before moving to the production ...
1
vote
1
answer
556
views
Combine several raster files with heterogeneous bands
I am attempting to (a) combine several non-overlapping pop density raster files, (b) create a velox object from this raster, (c) and then extract the mean population value for each overlapping polygon ...
0
votes
0
answers
684
views
R: gdal_translate/gdalwarp/gdalUtils for georreferencing raster
I am currently working on georreferencing a 530 X 587 .bmp file called my_raster.bmp with gdal_translate and gdalwarp from gdalUtils package, which is equivalent to using GDAL with those commands. ...
4
votes
1
answer
2k
views
How to make 'gdalUtils' package in R to use GDAL installed in OSGeo's directory instead of QGIS's directory
I have GDAL installed through QGIS and OSGeo in the directories:
C:\Program Files\QGIS 3.6\bin\gdalinfo.exe
C:\OSGeo4W64\bin\gdalinfo.exe
My gdalUtils package uses GDAL installed in QGIS and I want ...
0
votes
0
answers
431
views
read error after mosaic_rasters in R
I am using mosaic_rasters from gdalUtils to combine different raster files. More specifically, I am using the 12 tiles that cover Southern Africa from the well-known Hansen et al. (2013) forest map (1....
-1
votes
1
answer
435
views
gdal_translate in R changing the cell resolution of extracted subdataset from HDF
I'm trying to extract subdataset from MODIS LST HDFs using following code.
library(gdalUtils)
HDF_list = list.files(path, pattern= "\\.hdf$", all.files=FALSE, full.names=TRUE,recursive=FALSE)
...
1
vote
0
answers
103
views
Issue with gdalUtils vs. raster in gridding data in R
I have irregularly spaced data (XYZ) and I'm trying to grid it in R using 2 different libraries, gdalUtils and raster. I'd prefer to use gdalUtils as I have more options, but the output looks off. ...
4
votes
2
answers
2k
views
Calculate buffer / multi-ring buffer of geometry with GDAL / gdalUtils
I wonder if there is any way to calculate a buffer on a spatial data set with basic command line GDAL or the R interface gdalUtils.
To specify the Q: I have a lot of points around the globe. For ...
2
votes
0
answers
807
views
Download HDF NDVI in R
I have a function to automate downloading NDVI data from https://e4ftl01.cr.usgs.gov/MOLT/
However, I'm hitting an error when downloading the .HDF files. They download fine but they seem to be ...
1
vote
0
answers
534
views
Using gdalUtils to reproject hdf file in R
I am now working with GEFED dataset, which is a global wild file dataset.You can download one from FTP: fuoco.geog.umd.edu; Login name: fire; Password: burnt; The file is stored into gfed4/monthly/
...
1
vote
1
answer
1k
views
Rasterizing lines with “gdal_rasterize” in R return no result and status 1
I am using gdal_rasterize in the gdalUtils package to convert lines in a Shapefile to a raster.
library(gdalUtils)
src <- "D:/Test/sample.shp"
dst <- "D:/Test/raster.tif"
raster <- ...
3
votes
0
answers
703
views
ogr2ogr{gdalUtils} correct syntax to set Ground Control Points for vector georeferencing
I would like to know correct syntax of R {gdalUtils} package (version 2.0.1.7) to georeference Shapefiles using corner points as GCPs. (These Shapefiles have y=height and x=width information, without ...
2
votes
1
answer
249
views
R gdalUtils::ogrinfo error or very slow
I am pulling WFS data into R and using gdalUtils::ogrinfo to look at the available layer names on a WFS server. Using the same url in QGIS, this is very fast and gives complete information. With ...
3
votes
2
answers
5k
views
Rasterizing polygons with the function "gdal_rasterize" in R
I'm using the function gdal_rasterize in R (package gdalUtils) to convert a polygon shapefile into a raster. Here is my code:
r.test <- gdal_rasterize(src_datasource="df.shp", dst_filename="test....
4
votes
1
answer
2k
views
Working with MODIS in R
I am new to using MODIS data and was hoping to get some help starting out. I have been able to download the hdf file but viewing it in R has been a problem for me. What I have found so far, and ...