# AGENTS.md — 上水道関連施設データ (P21)
47 files, 39 MB, 2012.

## Before you download
| | |
|---|---|
| Files | 47 |
| Measured total | 39 MB |
| Years present | 2012 |
| Newest edition | 2012 |
| Coordinate system | JGD2000 / （B, L） |
| Geometry | 面、点 |
| Formats | GML (47) |

## Licence
Per file, resolved from the file's own year: 再配布できない 47.
The Collection's own `license` is `other`; it falls back to `other` whenever any single year in the dataset does. Read the Item's `license` and its `ksj:terms_applied`, the sentence that decided it.

## Columns
- **P21-YYa.shp** — 5 columns: `P21A_001` 事業主体, `P21A_002` 事業名称, `P21A_003` 種別, `P21A_004` 給水人口, `P21A_005` 日最大給水量
- **P21-YYb.shp** — 4 columns: `P21B_001` 事業主体, `P21B_002` 事業名称, `P21B_003` 施設名称, `P21B_004` 日最大給水量

Column names are what a query has to spell; the readable name is beside it. These come from the dataset page, which keeps superseded schemas as HTML comments -- those are stripped, so what is listed here is the current edition's.

## Count it, do not trust this file
Every number above is generated from the catalog, but a fact stated in prose goes stale silently. The Items are the record:

```sql
select year, region, redistribution, file_size
  from 'https://stac.yuiseki.net/mlit-nlftp/items.parquet'
 where collection = 'P21'
 order by year desc;
```

`ksj:is_latest` on an Item is computed per region, so the newest year for the country is not the newest year everywhere.
