A small program for converting a DWG file to a PNG image & saving it in the same directory.
-
The process will create a couple of temporary files in the directory, but they will be removed when the PNG has been saved.
-
Sample data source : ArcGIS
-
Run sync to install project dependencies locally
-
Testing requires Pytest (installed if sync is run)
-
- ODA File Converter : used to convert DWG to open DXF format
- Inkscape : used to convert SVG to PNG format
Check pyproject for system requirements
# Setup local env
python -m venv .venv
./.venv/scripts/activate
# Install pyproject dependencies
python -m sync
# Run DWG conversion
python -m src.process_dwg "tests/data/CoL_WaterUtility_Sept25_2024.dwg"