[gdal-dev] shifting (or snapping) one raster to another
Etienne Tourigny
etourigny.dev at gmail.com
Thu Mar 22 22:37:48 EDT 2012
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