added bootstrap buildings

This commit is contained in:
2026-06-23 10:39:05 +03:00
parent 6797d9cabe
commit 07ec07b7b3
4 changed files with 72 additions and 12 deletions
+3 -1
View File
@@ -51,7 +51,9 @@ docker compose restart api worker
```
The script builds a local `radio-osm2pgsql:latest` image from
`scripts/Dockerfile.osm2pgsql` on first run.
`scripts/Dockerfile.osm2pgsql` on first run. It imports the PBF through standard
`osm2pgsql` tables, then normalizes `planet_osm_polygon` into the API `buildings`
table with `db/sql/normalize_buildings.sql`.
The import writes a `buildings` table with `geom`, `height_m`, `levels`,
`building_type`, and `source`. Heights come from `height`, then