Hi all,

I’ve written a small Python library that generates workflow diagrams (using 
Graphviz) from GDAL Pipelines:

GitHub: https://github.com/geographika/gdalgviz
PyPI: https://pypi.org/project/gdalgviz/

For example, the following pipeline:

gdal raster pipeline ! read n43.tif ! color-map --color-map color_file.txt ! \
tee [ write colored.tif --overwrite ] ! \
blend --operator=hsv-value --overlay \
[ read n43.tif ! hillshade -z 30 ! tee [ write hillshade.tif --overwrite ] ] \
! write colored-hillshade.tif --overwrite

Running `gdalgviz tee.json tee.svg` produces this diagram:
https://raw.githubusercontent.com/geographika/gdalgviz/refs/heads/main/examples/tee.svg
Each command node links to the relevant GDAL documentation page.

I’m hoping this might be useful for some of you - feedback is welcome, and 
please log any issues or suggestions on GitHub.

Seth

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to