<div dir="ltr">I've just heard of this project - any reason (aside from licencing issues) that it could not be added to gdal/ogr itself?<div><br></div><div>It would be cool for gdal 2.0...</div><div><br></div><div>cheers</div>
<div>Etienne</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 6:49 AM, kempenep <span dir="ltr"><<a href="mailto:kempenep@gmail.com" target="_blank">kempenep@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jonathan,<br>
<br>
If I understand your question correctly, I might suggest an open source tool<br>
(GPL v3) for this job: pkcrop. It is part of pktools<br>
(<a href="http://pktools.nongnu.org" target="_blank">http://pktools.nongnu.org</a>), which is based on the GDAL API. By combining<br>
pkcrop with pkinfo (also in pktools), you could get what you want in a quite<br>
operational way. pkinfo allows you to define the proper bounding box, x, y<br>
resolution (pkinfo -i reference.tif -bb -dx -dy). The output can be directly<br>
used within pkcrop using $(command substitution). Not covered areas will<br>
have a nodata value. You can perform all steps in a one-liner: stacking a<br>
list of input images to  a multi-layer image using the same bounding box and<br>
spatial resolution<br>
<br>
pkcrop $(pkinfo -i reference.tif -dx -dy -bb) $(for LS in landsat*.tif; do<br>
echo " -i " $LS;done) -o stacked.tif<br>
<br>
Pieter.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/gdal-dev-Syncing-two-rasters-together-tp5131677p5131753.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/gdal-dev-Syncing-two-rasters-together-tp5131677p5131753.html</a><br>

Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br></div>