Derek,<br><br>Since you are rasterizing vectors, you can get the best results if you do it onto the original raster or a blank raster created based on the extents of the original raster. The key here is to create a georeferenced raster prior to burning the vector onto it.<br>
You can create a raster that fits perfectly with the original.<br><br>GDAL has a simple rasterization utility that can burn vectors onto a raster image directly.<br>You can use gdalbuildvrt to create a raster with modified extents.<br>
<br><a href="http://www.gdal.org/gdal_utilities.html">http://www.gdal.org/gdal_utilities.html</a><br><br><div class="gmail_quote">On Fri, Mar 23, 2012 at 7:42 AM, Derek Morgan <span dir="ltr"><<a href="mailto:jdmorgan@unca.edu">jdmorgan@unca.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am in a jam with ArcGIS, and am hoping there is a easier way to do<br>
this with GDAL. Here is the situation: I am converting a vector<br>
dataset of county polygons to raster at a pixel resolution of 231 m.<br>
However, I want this to line up with a different raster dataset I have<br>
at a much larger extent, but also the same resolution 231 m. As you<br>
probably guessed the two datasets are slightly askew as they have<br>
different extents. I would like to align the newly created county<br>
raster with the larger raster data set by shifting (or snapping) it to<br>
the closest pixels. Hopefully, this makes enough sense for someone to<br>
let me know if this can be done in GDAL.<br>
<br>
Thanks ahead of time,<br>
Derek<br>
_______________________________________________<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>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>