NimbleMap

Workflow 3 · Free

Walled cities of China, 1866

In 1866 almost every seat of government in China, from the capital down to county towns and garrison posts, sat inside a wall. This example maps 1,789 of them. You will lay them over satellite imagery, find the biggest, keep only the provincial capitals and make a map to share.

  1. Open the example

    Click Examples on the welcome card (or File › Open Example) and choose Walled cities of China, 1866. The card reads 1,789 areas · walled cities 1866.geojson; each area is the land inside one city wall.

    The first line on the card is an assumption: If these came from a Chinese map app (Amap, Tencent or Baidu), they may sit a few hundred meters off. These outlines were drawn on GPS coordinates, so leave them as they are. With your own data from a Chinese map app, click Compare to see both positions; see GCJ-02.

  2. Switch to the satellite basemap

    Click the basemap button at the bottom right of the map (the folded-map icon, Basemap) and choose Satellite. North China’s plain, mountains and coast appear in NASA’s Blue Marble imagery, with place names on top.

    North China on satellite imagery, from Hohhot to Qingdao, with the walled cities layer open and its card showing a legend by reliability.
    At this distance the walls are small specks: county walls were often under a square kilometre.

    The satellite imagery is sharp to about city scale. Zoom in further and the app switches to the street map by itself, then back again as you zoom out.

  3. Find Beijing and see how big it was

    Type Beijing in Find in walled cities 1866 on the layer’s card (or in the toolbar’s search box) and zoom in. Click inside the wall. The card shows its facts and how it compares: area_km2 35.32 km², higher than 99% of 1,789 areas.

    Beijing’s walls outlined over satellite imagery; the card shows area 35.32 km², higher than 99% of 1,789 areas, type Provincial Capital.
  4. Rank every walled city

    Click Compare with other walled cities 1866. The card turns into a ranked list, 1,789 areas, highest first, with the selected wall highlighted. Nanjing, the old southern capital, tops the list at 40.85 km²; the dataset records two walled areas named Beijing. Compare by switches the field; Back returns to the card.

    A ranked bar list: Nanjing 40.85 km², Beijing 35.32, Beijing 25.38, Tianjin 24.39, Suzhou 13.62, Shengjing, Kaifeng, Hangzhou, Chengdu…
  5. Keep the capitals

    Click View in table, then + Filter. Finish the sentence as Show areas where type is any of Provincial Capital; it says 19 match. Add Capital to the same list if you want the imperial capitals too, then click Apply.

    The filter sentence “Show areas where type is any of Provincial Capital”, 19 match, above the table of walled cities.

    The type field follows the Qing hierarchy: Capital, Provincial Capital, Fu (prefecture), Zhou, Ting, County, and military posts (Wei, Suo, Manchu garrisons). reliability is the dataset’s own grade, A to D; D marks places that had no wall.

  6. Colour the walls by type

    Remove the filter (× on its chip) to see every wall again, then open the layer’s Style tab and pick type in the Color menu. Each kind of town gets its own colour and the Legend lists them. Raise Opacity or Outline Width so small walls show up on the imagery.

  7. Share it

    Zoom to the region you want to show; the lower Yangtze around Nanjing and Suzhou is dense with walled towns. Then click Share › Map image…, set Show to Current view (at a whole-China view the walls are too small to see), add a Title such as “Walled cities of the lower Yangtze, 1866”, and click Save…. The export sheet works the same for every map.

    Share › Data… writes the walls you have filtered to a GeoJSON or CSV file for a spreadsheet or another GIS. To keep the whole map, with its layers, styles and filters, use File › Save (⌘S).

    The dataset is CC BY 4.0: when you share a map, credit Xue et al. 2021 (the caption the app writes names the file; add the authors).

Adding your own facts. You can attach a spreadsheet to places by a shared column, a join: open the spreadsheet while the layer is open and NimbleMap matches it. A join needs a column whose values are unique in the layer. In this dataset several towns share a name (there are two Beijings and many Taizhous), so names can’t be the key; a table of countries joined by country name or code works at once.
NimbleMap Pro. Ask, for example, “Which walled cities sat highest above sea level?” Pro’s built-in elevation layer and the Ask box answer with a ranked list and a preview on the map, using the same checked steps you could read in its recipe.

Data: Xue, Q., Jin, X., Cheng, Y., Yang, X., Zhou, Y. (2021). The dataset of walled cities and urban extent in late imperial China in the 15th–19th centuries. Earth Syst. Sci. Data 13, 5071–5085, doi:10.5194/essd-13-5071-2021; CC BY 4.0. Satellite imagery: NASA Blue Marble (NASA Earth Observatory, GIBS). Labels © OpenStreetMap contributors, Natural Earth.