惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
Microsoft Security Blog
Microsoft Security Blog
Jina AI
Jina AI
博客园 - 叶小钗
J
Java Code Geeks
博客园 - 聂微东
博客园 - 司徒正美
大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
美团技术团队
WordPress大学
WordPress大学
M
MIT News - Artificial intelligence
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
罗磊的独立博客
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
The Cloudflare Blog
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
小众软件
小众软件

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - open-energy-transition/grid2poster: Design stunn...
lyoncy · 2026-05-13 · via Hacker News: Show HN

Generate print-ready posters of electrical grid infrastructure from OpenStreetMap data.
Transmission lines for a country or continent are downloaded and rendered with GeoPandas, OSMnx, and Matplotlib. The project is heavily inspired and reused styling from maptoposter.

India transmission grid — paper_grid theme Africa transmission grid — paper_grid theme

Grid2Poster supports countries, states, provinces and continents, as well as optional administrative boundaries.

Data

Grid2Poster uses OpenStreetMap features tagged as:

  • power=line
  • power=minor_line when enabled
  • power=cable when enabled

Feature completeness depends on OpenStreetMap coverage in the selected country or region.

Contributing to the data

Coverage and quality in your country can be improved by mapping transmission infrastructure directly in OpenStreetMap. MapYourGrid is a community initiative that coordinates this work. It provides tutorials, country-level completeness/quality statistics and mapping tools for tracing power lines, generators and substations from imagery.

Installation

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Usage

python create_grid_poster.py --country Germany

For large countries, reduce the Overpass query tile size:

python create_grid_poster.py --country France --tile-size-km 150

Export as SVG or PDF for vector workflows:

python create_grid_poster.py --country Spain --format svg
python create_grid_poster.py --country Poland --format pdf

Include additional infrastructure layers:

python create_grid_poster.py --country Germany --include-minor-lines --include-cables

List available themes:

python create_grid_poster.py --list-themes

Render an entire continent. Continent boundaries come from the Natural Earth admin-0 dataset (downloaded and cached on first use) because Nominatim does not resolve continent names. Accepted values are Africa, Antarctica, Asia, Europe, North America, Oceania, and South America:

python create_grid_poster.py --country Africa --tile-size-km 500

Continent-scale runs hit the Overpass API hundreds of times and can take several hours. A larger --tile-size-km cuts the number of queries; pick a value that still stays under the Overpass per-query size limit.

Export the rendered transmission lines as GeoJSON (WGS84) alongside the poster, for reuse in GIS tools:

python create_grid_poster.py --country Germany --export-geojson
python create_grid_poster.py --country Germany --export-geojson data/germany_grid.geojson

Without a path, the file is written to posters/ next to the poster. The export is a single FeatureCollection of all fetched lines reprojected to EPSG:4326.

Options

Option Default Description
--country Country or region name resolvable by Nominatim, or a continent name (Africa, Antarctica, Asia, Europe, North America, Oceania, South America).
--display-country value of --country Text to print on the poster. Useful when the geocoder name differs from the desired title.
--theme electric_midnight Theme ID from the themes/ directory.
--list-themes List available themes and exit.
--include-minor-lines off Also fetch power=minor_line features.
--include-cables off Also fetch power=cable features.
--width 12.0 Poster width in inches.
--height 16.0 Poster height in inches.
--dpi 300 Raster output DPI (applies to PNG output).
--tile-size-km 200 Overpass query tile size in kilometers. Use smaller values for very large countries or busy servers.
--format png Output format: png, svg, or pdf.
--output auto-generated in posters/ Output file path.
--crs EPSG:3857 Projection used for rendering. EPSG:3857 (Pseudo-Mercator) works well for country posters.
--hide-metadata off Do not print segment counts on the poster.
--export-geojson off Also save all transmission lines as a single GeoJSON in WGS84 (EPSG:4326). Pass a path to override the default location in posters/.
--verbose-osmnx off Print OSMnx request logs.

Output

Generated posters are written to the posters/ directory by default. Intermediate OSM responses and processed geometries are cached in cache/ to avoid repeated downloads.

Gallery

Poster Country Theme
india_grid_paper_grid_20260512_125057.png India paper_grid
india_grid_japanese_ink_20260512_134242.png India japanese_ink
pakistan_grid_electric_midnight_20260512_152527.png Pakistan electric_midnight
vietnam_grid_midnight_blue_20260512_153543.png Vietnam midnight_blue
california_grid_warm_beige_20260512_155549.png California warm_beige
mexico_grid_forest_20260512_160112.png Mexico forest
italy_grid_autumn_20260512_162023.png Italy autumn
zambia_grid_sunset_20260512_162627.png Zambia sunset

Notes

The script uses the public Overpass API through OSMnx. Large requests may fail or be rate-limited. Use smaller --tile-size-km values for large countries or when the Overpass server is busy.

The map is intended for visualisation and print design. It should not be used as an authoritative grid model.

Attribution

Map data © OpenStreetMap contributors.