Changes between Version 11 and Version 12 of FAQRaster
- Timestamp:
- Jul 31, 2008, 12:20:00 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FAQRaster
v11 v12 23 23 == How can I create a blank raster based on a vector files extents for use with gdal_rasterize? == 24 24 25 Currently the gdal_rasterize utility cannot create a blank raster based a vector datasource although this feature has been requested (ticket1599).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.25 Currently the gdal_rasterize utility cannot create a blank raster based a vector datasource although this feature has been considered (Ticket #1599). 26 Until 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. 27 27 28 One way to do thisis 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].28 One 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]. 29 29 30 30 Another 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.