fix(cadastre): cad_territorial_zones MULTIPOLYGON typmod + ST_Multi coercion (#1344) #1673
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#1673
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/cad-zones-multipolygon-1344"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Проблема (#1344)
cad_territorial_zones.geomобъявленаGEOGRAPHY(POLYGON, 4326), а НСПД ПЗЗ-зоны часто MultiPolygon → нарушают typmod, ловятся per-rowbegin_nestedsavepoint и молча отбрасываются. Неполное ПЗЗ-покрытие в G1-gate без видимой ошибки.Решение (зеркалит upsert_zouit)
159_alter_cad_territorial_zones_multipolygon.sql—ALTER COLUMN geom TYPE geography(MultiPolygon,4326) USING ST_Multi(geom::geometry). Идемпотентна (DO-block проверяетgeometry_columns.type), GIST-индекс пересоздаётся, зависимых view нет. Стиль повторяет прецедент93_cad_parcels_geom_multipolygon.sql.bulk_harvest.py_save_territorial_zones: geom_type-фильтр (только Polygon/MultiPolygon, иначе NULL + log) +ST_Multi(...)в INSERT.Verify
ruffclean,py_compileok.pytest -k "harvest or territorial or zouit"→ 95 passed, 1 skipped, 0 failed.Closes #1344