Add --svg-layers option for plotter-friendly SVG output with layers sorted by line size#117
Open
iret33 wants to merge 2 commits intooriginalankur:mainfrom
Open
Add --svg-layers option for plotter-friendly SVG output with layers sorted by line size#117iret33 wants to merge 2 commits intooriginalankur:mainfrom
iret33 wants to merge 2 commits intooriginalankur:mainfrom
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?) |
Author
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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