[gdal-dev] shifting (or snapping) one raster to another

Etienne Tourigny etourigny.dev at gmail.com
Fri Mar 23 11:53:51 EDT 2012


Great to know.  You can always clip the source rasters before the warp
operation to save time.

Etienne

On Fri, Mar 23, 2012 at 11:54 AM, Derek Morgan <jdmorgan at unca.edu> wrote:
> Etienne - Thanks for you advice.  Gdalwarp did work quite nicely.
> Afterwhich, I just needed to clip the resulting raster back down to my
> extent of interest which is no problem.
>
> Cheers,
> Derek
>
>
>
> On Thu, Mar 22, 2012 at 10:37 PM, Etienne Tourigny
> <etourigny.dev at gmail.com> wrote:
>> Derek - unless I am mistaken, gdalwarp should work fine for this, as
>> long as both datasets are properly geo-referenced.
>>
>> gdalwarp tmp1.tif tmp2.tif result.tif
>>
>> The order of the arguments controls how they are stacked one on top of
>> the other.
>>
>> Etienne
>> On Thu, Mar 22, 2012 at 11:12 PM, Derek Morgan <jdmorgan at unca.edu> wrote:
>>> Hello,
>>>
>>> I am in a jam with ArcGIS, and am hoping there is a easier way to do
>>> this with GDAL.  Here is the situation:  I am converting a vector
>>> dataset of county polygons to raster at a pixel resolution of 231 m.
>>> However, I want this to line up with a different raster dataset I have
>>> at a much larger extent, but also the same resolution 231 m. As you
>>> probably guessed the two datasets are slightly askew as they have
>>> different extents.  I would like to align the newly created county
>>> raster with the larger raster data set by shifting (or snapping) it to
>>> the closest pixels.  Hopefully, this makes enough sense for someone to
>>> let me know if this can be done in GDAL.
>>>
>>> Thanks ahead of time,
>>> Derek
>>> _______________________________________________
>>> gdal-dev mailing list
>>> gdal-dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list