Created
October 12, 2017 19:30
-
-
Save debboutr/3032c4ef380675008a56e4aed1cd71d9 to your computer and use it in GitHub Desktop.
Command line statement to perform gdal_rasterize on shapefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(nusc) L:\...\WetlandConnectivity\NitrogenModeling\LandscapeRasters\scrap_RD>gdal_rasterize -te -2556000.0, -1728000.0, 2952000.0, 1860000 -tr 12000 12000 -a TD_N -where "TD_N >= 0" -a_nodata -999 -l shapes shapes.shp agree2.tif | |
-te : extent (get from >ogrinfo -so shapes.shp shapes) | |
-tr : cell resolution/size | |
-a : attribute in shapefile to put into raster cells | |
-where : SQL statment on attribute values (not necessarily needed in this case, covered w/ nodata) | |
-a_nodata : value to be turned to nodata | |
-l : layer name w/in shapefile, normally same as filename | |
in .shp filename | |
out .tif file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment