gdal
gdal copied to clipboard
VFK: Table BUD needs Multipolygon type instead of Polygon for storing building's geometry
What is the bug?
Current code in VFK driver defines geometry column of BUD table as Polygon. But this is not always true as some of features are of shape of Multipolygons (several seperate building on one or more parcels). In these cases NULL or invalid geometry is created and saved in BUD table.
Example:
k.u. Dolní Aršpach, č.p. 121
Steps to reproduce the issue
import SGI and SPI (protected access needed) data from "Dolní Adršpach" and look for building with "CISLO_DOMOVNI = 121" you will find NULL geometry. https://services.cuzk.cz/vfk/stavy/20250101/600059.zip
/usr/local/gdal/devel_0/bin/ogrinfo --config OGR_VFK_DB_NAME fix_bud_multipolygon/600059.db -where "CISLO_DOMOVNI = 121" fix_bud_multipolygon/600059.db BUD
Versions and provenance
3.10
Additional context
No response