Work / Research · corpus and standard
Guiju and Smart Cities
A China city corpus, a global centre layer, and the livability standard that formalises the index.
Guiju is a working collection of Chinese urban data: boundaries, air quality, mobility, traffic, land use and supporting tables. The 32.1 GB raw corpus sits in a private bucket. The local tree is a 1.1 GB working cache of processed tables, global outputs and extracts. The catalogue is generated, not typed.
The project began as a China sample. The global layer is the frame that makes the sample comparable with cities outside China. One schema and one analysis engine are the goal; neither is finished.
The global layer
The registry is built from the Global Human Settlement Layer (GHSL) Urban Centre Database R2024A V1.2, published by the European Commission's Joint Research Centre under CC BY 4.0. It has one row per urban centre, defined by built-up land rather than administrative boundaries.
- 11,422 urban centres
- 190 countries
- 3.69 billion people, the sum of the centre populations
- 32 canonical columns in the working registry, and 2,617 source columns in the full Parquet
The 3.69 billion is the sum of the 11,422 centre populations. It is not a census of every urban resident and not a country total: GHSL centres cover built-up agglomerations, not rural areas or administrative populations.
Coverage is not uniform. Population, area, GDP, emissions, built area and elevation are complete. HDI covers 11,267 centres and 98.7 per cent of the urban population. Road length covers 11,410 centres. The WHO air-quality join covers 1,619 centres with PM2.5, 36.6 per cent of the urban population, not a global census.
What the data measures
The global scaling fits are measured associations on the 2024 registry, not causal forecasts. Each row is a pooled log-log ordinary least squares fit, Y ∝ X^β, on cities with positive X and Y. The exponent is an elasticity. Above 1 is superlinear, below 1 sublinear.
| Relationship | β pooled | 95% CI | β within country |
|---|---|---|---|
| GDP, 2020, on population | 1.150 | 1.130 to 1.169 | 1.100 |
| CO2 emissions, 2024, on population | 1.274 | 1.245 to 1.302 | 1.207 |
| PM2.5 emissions, 2024, on population | 1.032 | 1.016 to 1.050 | 1.056 |
| Road length, 2024, on population | 1.076 | 1.060 to 1.093 | 1.052 |
| Built area, 2025, on population | 0.977 | 0.964 to 0.992 | 0.955 |
| Area, on population | 0.891 | 0.882 to 0.901 | 0.880 |
The city-size distribution has a rank-size exponent of 1.051 (R² 0.997). The Gini is 0.685. The top 1 per cent of centres hold 31.1 per cent of the summed population and the top 10 per cent hold 63.6 per cent. These describe the registry's centres, not national income inequality.
The China corpus adds measurements the global cross-section cannot. The Shanghai taxi demand decays with distance at a power-law slope of -1.868 (95 per cent CI -2.139 to -1.666, R² 0.923). Demand is concentrated: Gini 0.830 for Shanghai taxi grids, 0.608 for Beijing DiDi grids and 0.779 for Shenzhen EV stations. Guiyang link travel time scales with length at 0.930 (95 per cent CI 0.852 to 1.009, R² 0.761).
These are associations on named samples. The radial law is one city and one mode. The concentration law drops empty grid cells. The traffic and air fits leave weather and station confounding in place.
The standard
The smart cities program is the applied layer of Guiju. It turns the corpus into a city standard: a livability index with fixed weights, integer arithmetic, a Lean specification and a Rust reference. It is not a national policy, and it is not a shipped Song artifact.
The four-dimension proxy scores 207 prefecture cities on air quality at 45 per cent, HDI at 25 per cent, greenness at 15 per cent and province GDP per capita at 15 per cent. It is a proxy, not the Economist Intelligence Unit liveability index. It has no safety, housing, healthcare quality, culture or transit data. A major-city table uses air 35, HDI 30, green 15 and GDP 20. A separate amenity table for 30 cities adds counts within 10 km. Proximity is not access or quality, and OpenStreetMap completeness varies by city.
The standard is separate because an index needs a specification, not only a table. The Lean specification is proved and the Rust reference is tested. The extraction to a verified artifact is prepared, not run.
Limits
- The city panel is a cross-section. The exponents are not growth forecasts. The indicators carry different reference years and the fit treats them as one cross-section.
- GHSL centres are built-up agglomerations, not administrative cities. The Guangzhou centre sits in the Pearl River Delta agglomeration.
- Mobility, traffic and parking are China-only. A global comparison needs GTFS, TomTom, HERE or a research feed.
- The OSM amenity layer is a 30-city, 10 km sample. A low count can mean missing mapping rather than absence.
- 49 GHSL centres are shared by more than one prefecture. Province GDP is not city GDP.
Record
- Guiju on sanguine.sh, the current record.
- The smart cities standard, the applied layer.
- The Sanguine corpus, the method the standard shares.
Results and evidence · Discuss collaboration, funding or a contract.