Hot answers tagged

30 votes

Merging all tiles from one directory using GDAL

You could create a virtual mosaic from all Tiff files: gdalbuildvrt mosaic.vrt c:\data\....\*.tif and convert it afterwards: gdal_translate -of GTiff -co "COMPRESS=JPEG" -co "PHOTOMETRIC=YCBCR" -co ...
user avatar
  • 3,653
19 votes
Accepted

Mosaicking rasters in R?

The issue here is that mosaic and do.call are expecting a raster object in the list and not just character names of the raster that is contained in the "rasters1" vector. You are, in effect, asking to ...
user avatar
10 votes

Understanding min and max values with Mosaic to New Raster?

As whuber mentioned, often statistics found in the raster properties are sometimes approximate or are out-of-date. They are predetermined properties that can be misleading to the actual raster values. ...
user avatar
  • 39.8k
8 votes

Mosaicking rasters in GRASS GIS

You can use r.patch for that (see help file) You probably want to set the region first to encompass all raster layers, after which you can use r.patch to 'mosaic' the layers. The following example is ...
user avatar
  • 1,673
7 votes

Converting GeoTIFF into non-compressed format for WhiteBox?

Sure, gdal_translate: gdal_translate in_file.tif out_file.tif -co "PROFILE=GeoTIFF" -co "TFW=YES" the above command should do the trick.
user avatar
  • 11k
7 votes

Mosaicking NDVI images from different scenes

Your best bet would be to mosaic the raw red band and near infrared band images from which the NDVI images are derived. There are techniques for creating seamless mosaics for images, e.g. through the ...
user avatar
  • 10.8k
7 votes
Accepted

Combine multiple partially overlapping rasters into a single raster in R

The best solution to this is making a list of the rasters, then passing this to a function based on the apply family The following code was pulled from a similar question wrapped into a function and ...
user avatar
7 votes

QGIS more than 3000 raster works slowly

You may see considerable benefit if you load them into a single virtual raster (vrt). You can do that through the processing toolbox, by searching for "build vrt"
user avatar
  • 26.3k
6 votes

Differences between Raster Dataset, Raster Catalog, and Raster Mosaic

The differences between Raster Datasets, Mosaic Datasets, and Raster Catalogs are explained well on the Esri help page. At the bottom has a chart that breaks everything down and list pros and cons of ...
user avatar
6 votes

Understanding min and max values with Mosaic to New Raster?

As the other replies say the statistics are likely out of date. If you prefer using ArcGIS try the Calculate Statistics tool in the Data Management toolbox. This should update the statistics for you.
user avatar
  • 302
6 votes
Accepted

mosaicing geotiffs with gdal creates gaps due to alpha layers

Found a quick solution - replacing "-hidenodata" with "-srcnodata 0" in the .vrt build: gdalbuildvrt -srcnodata 0 mosaic.vrt geo_pict20140910_131*
user avatar
6 votes
Accepted

Reprojecting raster with FME?

Agree to the comment of @FelixIP, one possible solution is to first create a whole raster using RasterMosaicker transformer, then reproject and re-tile the Raster with RasterTiler transformer. This ...
user avatar
5 votes

Is there any way to 'clean' up ASTER v2 DEM data?

Chris, Maksim is right, you should be able to solve this problem by mosaicing each of your individual tiles into a single DEM. The problem that you have currently is that each of the individual DEMs ...
user avatar
  • 10.8k
5 votes

Correctly merging DEM rasters and eliminating edge effects

It seems that there are two things going on here. First, your tiles are not seamless, in that in the areas of overlap at the edges of the tiles, the elevations are not identical. I can confirm this as ...
user avatar
  • 10.8k
5 votes

Combine multiple partially overlapping rasters into a single raster in R

Full credit to @Tom Higginbottom who answered the hard part but a small modification I made to fix the Error in compareRaster(x, extent = FALSE, rowcol = FALSE, orig = TRUE, : different origin Just ...
user avatar
  • 1,061
5 votes
Accepted

How import many raster in r?

Solution 1 Create a loop to iterate through files: library(raster) raster_files <- list.files(mypath,full.names = T) #use pattern = '.tif$' or something else if you have multiple files in this ...
user avatar
  • 12.1k
5 votes
Accepted

Image Export fails in Google Earth Engine because "export region contains no valid (un-masked) pixels

1st: The exact code you posted (https://code.earthengine.google.com/ce1a151ce06497b20cf1793715cb0120) did export the image correctly. So the error cannot be reproduced. May be, you changed the 'ROI' ...
user avatar
5 votes
Accepted

Mosaic to New Raster outputs whole numbers instead of decimals

You need to change the Pixel Type (optional) to 32_Bit_Float or 64_Bit, if you want decimals: 32_BIT_FLOAT—A 32-bit data type supporting decimals 64_BIT—A 64-bit data type supporting decimals. By ...
user avatar
  • 36.3k
5 votes
Accepted

Define original image ID for each pixel of Quality Mosaic in Google Earth Engine

I had the same problem when I created the 'Best Available Pixel' code (https://github.com/fitoprincipe/geebap), and I solved this way: Add a band in which the value of every pixel is the number of ...
user avatar
4 votes
Accepted

Mosaic Aerial Photography Tiles to a Seamless Raster

I recommend creating a mosaic dataset within a file geodatabase. There are many advantages of working with this type of data model. For one, you can modify properties of the dataset once it is ...
user avatar
  • 50.3k
4 votes

Correctly merging DEM rasters and eliminating edge effects

Suggest you try building a virtual raster from the DEM TIFFs: Raster -> Miscellaneous -> Build Virtual Raster (Catalog). It seems to work with your sample data. Sorry, I just had to put some hillshade ...
user avatar
  • 6,789
4 votes

How to create a mosaic in QGIS with cutline and feathering for Landsat-8 imagery

I am a developer of the open-source GIS Whitebox GAT, which contains several image processing tools including a tool called Mosaic With Feathering. I doubt that it is as sophisticated as ERDAS or ENVI ...
user avatar
  • 10.8k
4 votes

ArcGIS, mosaic first or calculate first

You're better off mosaicing first. It will save you time and effort to do so. Setting up a batch process in general usually takes a bit more time than firing off a single calculation on a single ...
user avatar
  • 2,994
4 votes
Accepted

Image footprint in Landsat mosaic using GDAL?

Use gdal_polygonize.py, ogr2ogr and ogrinfo in a loop. On linux (not tested): final=merged.shp for f in *.tif; do name=$(basename $f .tif) shp=${name}.shp gdal_polygonize.py $f -f "ESRI ...
user avatar
  • 3,051
4 votes

How to generate a collection of mosaic images by mapping over date list in Google Earth Engine

The following code creates a list of mosaic images, where each mosaic image is constructed from images of a specified time interval. Within each time interval, the "least cloudy pixel", determined by ...
user avatar
4 votes

Export mosaic to Google Drive, generating more than just one file and can't download this

You do not get a valid export geometry by using .getInfo(). As a result it looks like Earth Engine is exporting your image globally and thus creates a multitude of subsets (called shards). If you ...
user avatar
  • 9,450
4 votes
Accepted

Merging two rasters, obtain only highest values, overwrite raster in ArcGIS Desktop?

You can do this just by using the Mosaic to New Raster geoprocessing tool. Just choose maximum for your Mosaic Operator and the new raster will use the high value anywhere that they overlap.
user avatar
  • 1,933
4 votes

How put order in multiple raster file in RasterMosaic in FME?

In FME 2020.1 To order the rasters use the Attribute Creator and then assign a number (1,2 etc). Then sort them by numeric (ascending) Workspace template is available here https://community.safe.com/...
user avatar
  • 48.5k
3 votes

If I were flying over a flat world at constant elevation, taking aerial photos, how would I patch them into a mosaic?

Have you tried looking at a software package like pix4dmapper? There is a free trial available with a fair amount of functionality called pix4dmapper discovery: https://pix4d.com/download/ I use this ...
user avatar
3 votes
Accepted

Merge to New Raster resulting a raster with cell value 0 to 255

Yes, make the data 8 bit. I would use GDAL_Translate -ot byte, it's less messy than trying to do it in ESRI. Mosaic to new raster will also resample your data if there isn't an exact (or near exact) ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible