| 1 | = vec2ras = |
| 2 | vector to raster conversion |
| 3 | {{{ |
| 4 | vec2ras [options] <vector file> |
| 5 | |
| 6 | Options: |
| 7 | |
| 8 | -k <kwl> Takes a keywordlist that describes the |
| 9 | drawing techniques of the vector file and |
| 10 | the output projection. Please see the -t |
| 11 | option to generate template kwl to edit |
| 12 | -t <template_file> Generates a keywordlist for this app to take in with the -k option |
| 13 | -o <raster file> Raster output filename |
| 14 | currently only geotiff output |
| 15 | -d <file_name> dump vertices to file |
| 16 | |
| 17 | <vector file> Currently we only support shape files |
| 18 | .shp .dbf .shx |
| 19 | |
| 20 | Typical usage example: |
| 21 | Assuming you have file my_shape_file.shp to convert. |
| 22 | |
| 23 | run the command: |
| 24 | |
| 25 | vec2ras -t my_shape_file.kwl |
| 26 | |
| 27 | The above command will output a my_shape_file.kwl which is a template. |
| 28 | Edit my_shape_file.kwl for desired output. |
| 29 | |
| 30 | NOTE: |
| 31 | |
| 32 | The meters_per_pixel keywords determine the file size. |
| 33 | If your shape file covers a large geographic area and you use |
| 34 | a meters_per_pixel of 1 you're going to get a huge output file. |
| 35 | After editing the my_shape.kwl. |
| 36 | |
| 37 | run the command: |
| 38 | |
| 39 | vec2ras -k my_shape_file.kwl -o my_shape_file.tif my_shape_file.shp |
| 40 | |
| 41 | You now should have a rasterized shape file called my_shape_file.tif. |
| 42 | }}} |