I am trying to convert a vector file that includes polygons to an RGB raster using gdal_rasterize without filling the polygons. Is there a way to do this?
For example, I use the following command to create an RGB raster with opaque black values showing the vector information from a vector file:
gdal_rasterize.exe -burn 0 -burn 0 -burn 0 -burn 255 -ot Byte -ts 927 583 -te -87.7595200000000 41.8042200000000 -87.5067400000000 41.9631900000000 -of GTiff -l ACHARE -l BCNLAT -l BCNSPP -l BERTHS -l BRIDGE -l BUISGL -l BUAARE -l BOYLAT -l BOYSPP -l CBLARE -l CBLOHD -l CBLSUB -l CTNARE US5IL11M.000 out.tif
When I run the above command, I end up with an RGBA raster with a single black box covering most of the image because the vector file has a polygon bounding all the other layers. Is there a way to rasterize only the boundary of this polygon instead of all the area inside this polygon? Is there another tool (preferably with GDAL) I could use to do this?
I might be able to get all the point and line layers in my vector file and only display these layers. This is one possible solution for me if there's not an easy way to do this using gdal_rasterize. I might also be able to convert the polygons to lines and rasterize them as lines. That's another possibility. Both of these solutions would be more work than I was hoping to do to solve this problem.