Skip to content

Export DF world map for use in GIS tools - #5376

Open
chdoc wants to merge 25 commits into
DFHack:developfrom
chdoc:export-map-2
Open

Export DF world map for use in GIS tools#5376
chdoc wants to merge 25 commits into
DFHack:developfrom
chdoc:export-map-2

Conversation

@chdoc

@chdoc chdoc commented Apr 3, 2025

Copy link
Copy Markdown
Member

The goal of this plugin is to export the world map at the region-tile (i.e., embark tile or midmap-tile) level for use with GIS programs like ArcGIS or QGIS. For a medium-sized map, this amounts to (129*16)^2 = 4260096 region tiles with biome information for every region tile fetched from one of the surrounding world tiles.

In order to keep the output down to a manageable size (17 MB of CSV for a medium-sized world), region tiles are clustered by the world tile they take their information from, and every cluster is exported as a single feature with its geometry described as a WKT (MULTI)POLYGON, resulting in an export of only 129^2 = 16641 features.

  • proper classification for site export
  • documentation and change log

Comment thread plugins/CMakeLists.txt Outdated
Comment thread plugins/export-map.cpp Outdated
@chdoc
chdoc marked this pull request as ready for review August 2, 2026 17:57
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.

3 participants