However, some versions of GDAL on Windows do not expand the * wildcard correctly and the command results in an error. ![]() Note: We could have done this operation in a single step using the command gdalbuildvrt merged.vrt *.hgt. gdalbuildvrt -input_file_list filelist.txt merged.vrt ![]() We can now use the gdalbuildvrt program to create a virtual raster from the source files in the filelist.txt. Once the command finishes, verify that the filelist.txt has the names of the source tiles. Here the /b option runs the command in the Bare mode which excludes all info except file names.įor Mac/Linux systems, the same can be achieved using the ls command. We can use the dir command on Command prompt to list the files matching the pattern *.hgt and redirect the output to a file. vrt file is just a text file, so it doesn’t consume any disk space but allows us to run any GDAL command as if it was a raster file.įirst we need to create a text file containing all the files we want to merge. vrt extension that is a pointer to multiple source files. ![]() GDAL provides a useful format called Virtual Raster that allows us to create a Virtual file with. We will now merge the 4 neighboring SRTM tiles into 1 raster so we can work with them together.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |