Skip to content

Updated hmi#202

Closed
madhavgupta8 wants to merge 13 commits intooriginalankur:mainfrom
madhavgupta8:main
Closed

Updated hmi#202
madhavgupta8 wants to merge 13 commits intooriginalankur:mainfrom
madhavgupta8:main

Conversation

@madhavgupta8
Copy link

No description provided.

madhavgupta8 and others added 13 commits February 1, 2026 16:45
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
- Add hmi.html: standalone browser UI with city/country inputs, 17 themed
  color swatches, radius slider, aspect ratio toggle (3:4 / 4:5), and
  include-small-roads checkbox; submits to Flask API and renders the
  generated poster inline with a download button

- Add app.py: Flask server that serves the HMI at / and exposes a
  POST /generate endpoint that runs the Python script via subprocess,
  then serves the output image at /poster/<path>

- Add maptoposter/create_map_poster_hmi.py: new PNG generator with:
  * --no-small-roads flag to exclude residential/living_street/unclassified
  * organized output dirs: posters/{country}/{city}/{theme}/{filename}.png
  * filenames include radius in metres and timestamp
  * map data caching: on first run saves graph.graphml, water.gpkg,
    parks.gpkg and metadata.json under posters/{country}/{city}/map_data_{r}m/;
    subsequent runs for the same city+radius skip all network calls and
    load from disk, showing [cache HIT] in output

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ter/ subdir

- git mv maptoposter/create_map_poster_hmi.py  → root
- git mv maptoposter/create_map_poster_svg.py   → root
- git mv maptoposter/create_map_poster_dxf.py   → root
- Deleted maptoposter/ subdir (fonts, themes, posters, requirements, README, LICENSE,
  .gitignore were all duplicates of root-level copies)
- Deleted main.py (scratch file)
- app.py: updated SCRIPT, POSTERS_DIR, cwd, and glob pattern to remove maptoposter/ prefix
- .gitignore: fixed poster ignore globs from maptoposter/posters/*.{png,svg,dxf}
  to posters/**/*.{png,svg,dxf}; updated .gitkeep path likewise

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@originalankur
Copy link
Owner

PR has too much changes and no description and explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants