# AGENTS.md — 洪水浸水想定区域データ (A31a)
1042 files, 60.4 GB, 2012–2025.

## Before you download
| | |
|---|---|
| Files | 1042 |
| Measured total | 60.4 GB |
| Years present | 2012, 2019, 2020, 2021, 2022, 2023, 2024, 2025 |
| Newest edition | 2025 |
| Coordinate system | JGD2011 / （B, L） |
| Geometry | 面 |
| Formats | GML (418), Shapefile (312), GeoJSON (312) |

## Licence
Per file, resolved from the file's own year: 再配布できる 925, 再配布できない 47, 要確認 70.
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.
70 of these need a human: upstream states the terms per prefecture or per municipality. Treat them as not redistributable until someone has read `ksj:terms` on the Collection.

## Columns
- **属性情報 （計画規模）** — 5 columns: `A31a_101` 河川番号, `A31a_102` 河川名, `A31a_103` 河川管理者番号, `A31a_104` 河川管理者, `A31a_105` 浸水深ランク
- **属性情報 （想定最大規模）** — 5 columns: `A31a_201` 河川番号, `A31a_202` 河川名, `A31a_203` 河川管理番号, `A31a_204` 河川管理者, `A31a_205` 浸水深ランク
- **属性情報 （浸水継続時間）** — 5 columns: `A31a_301` 河川番号, `A31a_302` 河川名, `A31a_303` 河川管理番号, `A31a_304` 河川管理者, `A31a_305` 浸水継続時間ランク
- **属性情報 （家屋倒壊等氾濫（氾濫流））** — 5 columns: `A31a_401` 河川番号, `A31a_402` 河川名, `A31a_403` 河川管理番号, `A31a_404` 河川管理者, `A31a_405` 危険区域区分
- **属性情報 （家屋倒壊等氾濫（河岸浸食））** — 5 columns: `A31a_401` 河川番号, `A31a_402` 河川名, `A31a_403` 河川管理番号, `A31a_404` 河川管理者, `A31a_405` 危険区域区分

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.

## Often used with
- `../P04/collection.json` — 洪水浸水想定区域の中にある医療機関を数える
- `../P29/collection.json` — 洪水浸水想定区域の中にある学校を数える
- `../P20/collection.json` — 洪水浸水想定区域と避難施設の位置関係を見る (測地系が違います)
- `../P11/collection.json` — 浸水時に使えなくなるバス停を洗い出す (測地系が違います)

These pairs are an editorial judgement, not upstream metadata: they carry `ksj:editorial: true`. The list is not exhaustive, and a combination missing from it is not a combination that was rejected.

## 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 = 'A31a'
 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.
