Changes between Version 11 and Version 12 of FAQRaster


Ignore:
Timestamp:
Jul 31, 2008, 12:20:00 PM (16 years ago)
Author:
springmeyer
Comment:

Fix link and description of related gdal_rasterize ticket - not sure if one exists that is dedicated to the ability to create new rasters

Legend:

Unmodified
Added
Removed
Modified
  • FAQRaster

    v11 v12  
    2323== How can I create a blank raster based on a vector files extents for use with gdal_rasterize? ==
    2424
    25 Currently the gdal_rasterize utility cannot create a blank raster based a vector datasource although this feature has been requested (ticket 1599).
    26 Until that feature is add you'll need to find a way to generate a raster that matches the extent of your vector layer that you plan to use to burn features into the raster.
     25Currently the gdal_rasterize utility cannot create a blank raster based a vector datasource although this feature has been considered (Ticket #1599).
     26Until that feature is added you'll need to find a way to generate a raster that matches the extent of your vector layer. You can then use that blank raster to burn in features from your vector layer.
    2727
    28 One way to do this is to use gdal_translate to clip out and flatten an existing raster file that covers your area of interest. See this [http://lists.osgeo.org/pipermail/gdal-dev/2008-February/016061.html example of syntax].
     28One approach is to use gdal_translate to clip out and flatten an existing raster file that covers your area of interest. See this [http://lists.osgeo.org/pipermail/gdal-dev/2008-February/016061.html example of syntax].
    2929
    3030Another approach is to use one of the language bindings to GDAL to create a blank raster from scratch. The tricky part is understanding the !GeoTransform syntax.