<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Jorge,<br>
<br>
I didn't see an answer to this question, so...<br>
<br>
On 29/01/15 15:39, Jorge Arévalo wrote:<br>
<span style="white-space: pre;">> Hello,<br>
><br>
> What's the difference between gdal_merge and gdalbuildvrt? If
I'm not wrong, gdal_merge actually creates a new dataset, merging
the input ones. And gdalbuildvrt just creates a VRT file, which
works as descriptor for a mosaic.</span><br>
<br>
That's correct. Although you can theoretically create VRT files with
gdal_merge<br>
using the `-of VRT` option, this doesn't appear to work in practice.<br>
<br>
<span style="white-space: pre;">> At the end, in both cases we
have a mosaic from several input files (real mosaic vs virtual
mosaic). So, why would I use gdal_merge instead of gdalbuildvrt?
With gdal_merge, I'd need more space in disk, in order to generate
a merged file.</span><br>
<br>
gdal_merge provides a quick way to provide a mosaic output in a
transferrable<br>
format (e.g. tiff for checking in an image viewer or serving up via
a wms). gdalbuildvrt is a more<br>
powerful tool that provides a virtual raster that acts as a 'window'
into the<br>
input datasets, potentially with reprojection amidst other options.
Saving disk<br>
space at the expense of additional CPU processing is useful in data
processing<br>
pipelines but not generally ideal as a final output.<br>
<br>
Best regards,<br>
<br>
Homme<br>
<br>
<span style="white-space: pre;">> Many thanks in advance.<br>
><br>
> Best regards,<br>
><br>
> -- <br>
> Jorge Arévalo<br>
><br>
> CartoDB<br>
> <a class="moz-txt-link-freetext" href="http://cartodb.com/">http://cartodb.com/</a><br>
> <br>
><br>
><br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
> <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></span><br>
<br>
<br>
</body>
</html>