-
Notifications
You must be signed in to change notification settings - Fork 898
Add --svg-layers option for plotter-friendly SVG output with layers sorted by line size #117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
e1526e5 to
096aed1
Compare
|
Conflicts have been resolved. |
|
(Could the github action be configured to edit labels but not add comments?) |
|
That's a question for the repo maintainer (@originalankur) - the conflict-checking workflow is configured on the upstream repository, not on my fork. |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
When generating SVG output with the --svg-layers flag, roads are now organized into separate SVG groups based on their line width/road type: - Motorways (width 1.2) - Primary Roads (width 1.0) - Secondary Roads (width 0.8) - Tertiary Roads (width 0.6) - Residential & Other (width 0.4) Each layer is identifiable by its gid attribute in the SVG, making it easy to select, edit, or hide specific road types in vector graphics editors like Adobe Illustrator or Inkscape. Usage: python create_map_poster.py -c "Berlin" -C "Germany" -f svg --svg-layers Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Includes 3 sample cities demonstrating the --svg-layers feature: - Manama, Bahrain (5.8 MB) - Dubai, UAE (8.5 MB) - Cairo, Egypt (14 MB) Each SVG contains 5 road layers sorted by line size for plotter-friendly workflows. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
096aed1 to
0b1096d
Compare
|
Conflicts have been resolved. |
Summary
Adds a new
--svg-layersCLI flag that creates plotter-friendly SVG output with roads organized into separate layers by line width. This is ideal for:Road Layers (sorted by line size)
Each layer has an identifiable
gidattribute in the SVG for easy selection.Usage
Example Output Files
Sample SVG files included in this PR (see
examples/svg-layers/):manama_bahrain.svg- Manama, Bahraindubai_uae.svg- Dubai, UAEcairo_egypt.svg- Cairo, EgyptAll files contain 5 properly separated SVG layers:
Additional Tested Cities
Bahrain (Top 5 Cities):
Top 5 Arab Cities:
Use Cases
Pen Plotter Workflow
--svg-layersLaser Cutter Workflow
Test Plan
--svg-layers(standard behavior unchanged)--svg-layersand verify layers appear as separate groups🤖 Generated with Claude Code