Terms
Land use zones
Urban planning divides land into classes such as residential, commercial and industrial zones and park or school sites, shown as a polygon layer. Zone colors follow Annex 3 of the Ministry of the Interior’s Urban Plan Drawing and Document Guidelines.
Style configuration file
A YAML file records the color, line width and opacity of each layer type. All maps read the same configuration.
District extent
The outline of each district. At export, this extent plus a margin sets the display area of the map. District boundaries are dissolved from the Taipei neighborhood-boundary layer by district.
Problem
Before
- Each map was exported from GIS software after adjusting the display extent, switching layers and setting the legend, and the same steps were repeated for every district.
- Layer styles followed the operator’s manual settings at the time, so colors and line widths could differ between maps.
- When the number of districts increased, the export time increased in proportion to the number of maps.
After
- A graphical interface allows selecting multiple districts, ticking layers and choosing paper size and orientation. After the start button is pressed, the maps are exported one by one.
- The styles of each layer type are written in the configuration file. Land use colors are set from the regulation annex, and all maps read the same specification.
- Progress and a preview are shown during export, and the export can be cancelled midway. A portable version that needs no installation and runs offline is also provided.
Workflow
Interactive demo: batch export
Districts to export (click a name to preview)
Layers
Paper
Layer style adjustment
Run
Before and after
Drag the handle to compare the output for one district under two style files. Before is an older setting (thinner lines, paler zone colors, no metro station or facility markers); after is this page’s current style file. Both sides are actual output of this page’s code. Neither is a hand-drawn map or a mock-up.
Legal basis for zone colors
The colors of land use zones and public-facility sites follow the R.G.B values in Annex 3 (Urban Plan Legends) to Point 7 of the Ministry of the Interior’s Urban Plan Drawing and Document Guidelines. The annex states that R.G.B values are the drawing-color basis for digital urban plan maps. Legends the annex does not define follow each urban plan’s own documents; this demo draws them in neutral grey and marks them in the legend.
Data sources and licenses
| Dataset | Provider | License | Update date and coordinate system |
|---|---|---|---|
| Taipei City Urban Plan Land Use Zoning Map (detailed plan, polygons) https://data.gov.tw/dataset/156197 | Taipei City Government, Department of Urban Development | Open Government Data License, Version 1 (Taiwan) | File "1150409細部計畫圖.zip"; DBF in the file dated 2026-04-09; dataset-page metadata updated 2026-10-13 TWD97 TM2 (EPSG:3826; the file has no .prj, so it was inferred from the coordinate range) |
| Taipei City Neighborhood Boundaries (dissolved into district boundaries) https://data.gov.tw/dataset/121424 | Taipei City Government, Department of Civil Affairs | Open Government Data License, Version 1 (Taiwan) | DBF in the file dated 2026-09-21; dataset-page metadata updated 2026-10-13 TWD97 TM2 (EPSG:3826; .prj included) |
| Taipei Metropolitan Area Mass Rapid Transit System Route Map https://data.gov.tw/dataset/121208 | Taipei City Government, Department of Rapid Transit Systems | Open Government Data License, Version 1 (Taiwan) | Dataset-page metadata updated 2026-10-13; the file does not state a content date EPSG:3826 (declared in the file) |
| Taipei Metropolitan Area Mass Rapid Transit System Station Points https://data.gov.tw/dataset/121140 | Taipei City Government, Department of Rapid Transit Systems | Open Government Data License, Version 1 (Taiwan) | Dataset-page metadata updated 2026-10-13; the file does not state a content date EPSG:3826 (declared in the file) |
Outcome and technology
Consistent style
Color, line width and opacity are kept in the configuration file, and a change in one place applies to all maps.
Automatic layout elements
Each map is scaled automatically to its district extent, the scale bar length is calculated, and the legend lists only the layers that are switched on and the zone classes that appear in that district.
Offline use
The portable version keeps the program and map data in one folder and runs on a computer without a network connection, with no installation.