Install
openclaw skills install @ruiduobao/geoskill-spatial-storytellingWeave multiple maps, text and charts into a scroll-driven storytelling HTML page
openclaw skills install @ruiduobao/geoskill-spatial-storytellingWeaves multiple maps, narrative text and statistical charts into a scrollytelling HTML page: each chapter contains an embedded map, a narrative passage and an SVG line chart, revealed chapter by chapter as the reader scrolls — well suited to data journalism and science-communication posts.
Each band of a multi-band GeoTIFF is treated as one chapter; synthetic mode generates an urban-expansion time series.
Per-band pipeline: render_band_png_b64(colormap) → line_chart_svg trend chart → build_section validation → assembled by build_story_html (sticky map + chapter cards + navigation).
pip install numpy rasterio scipy matplotlib geopandas shapely pillow
python geoskill-spatial-storytelling.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-spatial-storytelling.py --input series.tif --title "30 Years of Urban Expansion" --subtitle "1990-2020"
python geoskill-spatial-storytelling.py --bbox 116 39 117 40 --synthetic --chapters 4
python geoskill-spatial-storytelling.py --bbox 116 39 117 40 --synthetic --chapter-prefix "stage"
python geoskill-spatial-storytelling.py --input series.tif --cmap terrain
| File | Format | Description |
|---|---|---|
story.html | HTML | Scrollytelling page (primary output) |
story.json | JSON | Chapter structure and statistics (verifiable output) |
story_stack.tif | GeoTIFF | Multi-temporal stack |
Each run also produces output-manifest.json (run manifest).
Local GeoTIFF / vector files; --synthetic mode generates physically consistent simulated data, fully offline.
--synthetic mode requires no network at all.MIT
把多幅地图、文字解说与统计图表编织成滚动叙事(scrollytelling) HTML:每个章节含一幅内嵌地图、一段叙述与一张 SVG 折线图,随滚动逐章呈现,适合数据新闻与科普推文。
多波段 GeoTIFF 每波段视为一章;合成模式生成城市扩张时序。
逐期 render_band_png_b64(colormap) → line_chart_svg 趋势图 → build_section 校验 → build_story_html(sticky 地图+章节卡片+导航) 组装。
pip install numpy rasterio scipy matplotlib geopandas shapely pillow
python geoskill-spatial-storytelling.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-spatial-storytelling.py --input series.tif --title "城市扩张三十年" --subtitle "1990-2020"
python geoskill-spatial-storytelling.py --bbox 116 39 117 40 --synthetic --chapters 4
python geoskill-spatial-storytelling.py --bbox 116 39 117 40 --synthetic --chapter-prefix "阶段"
python geoskill-spatial-storytelling.py --input series.tif --cmap terrain
| 文件 | 格式 | 说明 |
|---|---|---|
story.html | HTML | 滚动叙事页面(主产物) |
story.json | JSON | 章节结构与统计(可验证产物) |
story_stack.tif | GeoTIFF | 多期 stack |
每次运行还会产出 output-manifest.json(运行清单)。
本地 GeoTIFF / 矢量文件;--synthetic 模式生成物理一致的模拟数据,完全离线。
--synthetic 模式完全无网络。MIT