OSM-es / CatAtom2Osm

Tool to convert INSPIRE data sets from the Spanish Cadastre ATOM Services to OSM files.
BSD 2-Clause "Simplified" License
13 stars 6 forks source link

ERROR - Could not read metadata from 'CDAU' #116

Open pvxe opened 9 months ago

pvxe commented 9 months ago

¡Buenas!

Estoy iniciándome para contribuir en OSM y estaba interesado en probar esta herramienta de cara a algún momento, con más experiencia probar a importar datos del catastro.

A la hora de generar los ficheros para el municipio de Sevilla me he encontrado con un error:

$ catatom2osm 41900
2024-02-22 11:10:07,954 - INFO - Municipality: 'Sevilla'
2024-02-22 11:10:07,954 - INFO - Start processing '41900'
2024-02-22 11:10:08,184 - INFO - Downloading '41900/A.ES.SDGC.CP.41900.zip'
2024-02-22 11:10:12,447 - INFO - Read 61661 features in '41900/A.ES.SDGC.CP.41900.cadastralparcel.gml'                                                                                                             
2024-02-22 11:10:20,020 - INFO - Downloading '41900/A.ES.SDGC.BU.41900.zip'                                                                                                                                        
2024-02-22 11:10:28,814 - INFO - Read 58653 features in '41900/A.ES.SDGC.BU.41900.building.gml'                                                                                                                    
2024-02-22 11:10:28,867 - INFO - Read 1914 features in '41900/A.ES.SDGC.BU.41900.otherconstruction.gml'
2024-02-22 11:14:24,827 - INFO - Read 220735 features in '41900/A.ES.SDGC.BU.41900.buildingpart.gml'                                                                                                               
2024-02-22 11:15:02,278 - INFO - Read 6230 features in '41900/A.ES.SDGC.CP.41900.cadastralzoning.gml'                                                                                                              
2024-02-22 11:25:39,622 - INFO - Downloading '41900/A.ES.SDGC.AD.41900.zip'                                                                                                                                        
2024-02-22 11:25:41,918 - INFO - Read 67644 features in '41900/A.ES.SDGC.AD.41900.gml'                                                                                                                             
2024-02-22 11:25:49,710 - INFO - Downloading 'auxsrcs/portal_Sevilla.csv'                                                                                                                                          
2024-02-22 11:26:02,965 - INFO - Read 626001 features in 'auxsrcs/portal_Sevilla.csv'                                                                                                                              
2024-02-22 11:26:06,491 - ERROR - Could not read metadata from 'CDAU

Por si fuera de utilidad los mensajes de DEBUG pego el contenido de catatom2osm.log:

2024-02-22 11:10:07,951 - DEBUG - Initialized QGIS 3.10.4-A Coruña API
2024-02-22 11:10:07,951 - DEBUG - Using GDAL 3.0.4
2024-02-22 11:10:07,954 - INFO - Municipality: 'Sevilla'
2024-02-22 11:10:07,954 - INFO - Start processing '41900'
2024-02-22 11:10:07,954 - DEBUG - Searching the url for the 'CadastralParcels' layer of '41900'...
2024-02-22 11:10:08,184 - INFO - Downloading '41900/A.ES.SDGC.CP.41900.zip'
2024-02-22 11:10:12,447 - INFO - Read 61661 features in '41900/A.ES.SDGC.CP.41900.cadastralparcel.gml'
2024-02-22 11:10:19,435 - DEBUG - Loaded 61661 features in 'cadastralparcel' from 'cadastralparcel.gml'
2024-02-22 11:10:19,436 - DEBUG - Searching the url for the 'buildings' layer of '41900'...
2024-02-22 11:10:20,020 - INFO - Downloading '41900/A.ES.SDGC.BU.41900.zip'
2024-02-22 11:10:28,814 - INFO - Read 58653 features in '41900/A.ES.SDGC.BU.41900.building.gml'
2024-02-22 11:10:28,867 - INFO - Read 1914 features in '41900/A.ES.SDGC.BU.41900.otherconstruction.gml'
2024-02-22 11:10:54,789 - DEBUG - Removed 2885 void parcels
2024-02-22 11:11:08,869 - DEBUG - Deleted 5 invalid part geometries in the 'cadastralparcel' layer
2024-02-22 11:11:08,869 - DEBUG - Deleted 1 invalid ring geometries in the 'cadastralparcel' layer
2024-02-22 11:11:08,869 - DEBUG - Deleted 7 invalid geometries in the 'cadastralparcel' layer
2024-02-22 11:11:08,869 - DEBUG - Deleted 21 zig-zag vertices in the 'cadastralparcel' layer
2024-02-22 11:11:08,869 - DEBUG - Deleted 19 spike vertices in the 'cadastralparcel' layer
2024-02-22 11:11:55,390 - DEBUG - Merged 1379 close vertices in the 'cadastralparcel' layer
2024-02-22 11:11:55,390 - DEBUG - Created 5282 topological points in the 'cadastralparcel' layer
2024-02-22 11:13:27,847 - DEBUG - Simplified 308565 vertices in the 'cadastralparcel' layer
2024-02-22 11:13:51,267 - DEBUG - Added 6 missing parcels
2024-02-22 11:14:17,014 - DEBUG - Loaded 58653 features in 'building' from 'building.gml'
2024-02-22 11:14:17,237 - DEBUG - Loaded 1914 features in 'building' from 'otherconstruction.gml'
2024-02-22 11:14:24,827 - INFO - Read 220735 features in '41900/A.ES.SDGC.BU.41900.buildingpart.gml'
2024-02-22 11:15:01,958 - DEBUG - Loaded 220735 features in 'building' from 'buildingpart.gml'
2024-02-22 11:15:02,278 - INFO - Read 6230 features in '41900/A.ES.SDGC.CP.41900.cadastralzoning.gml'
2024-02-22 11:15:03,506 - DEBUG - Loaded 25 features in 'rusticzoning' from 'cadastralzoning.gml'
2024-02-22 11:15:05,165 - DEBUG - Loaded 6205 features in 'urbanzoning' from 'cadastralzoning.gml'
2024-02-22 11:15:24,195 - DEBUG - Removed 908 building parts outside the outline
2024-02-22 11:15:24,195 - DEBUG - Deleted 6900 building parts with no floors above ground
2024-02-22 11:16:22,397 - DEBUG - Removed 122 parts without building
2024-02-22 11:16:24,923 - DEBUG - 4258 multi-polygons splitted into 12932 polygons in the 'building' layer
2024-02-22 11:17:12,393 - DEBUG - Deleted 8 invalid part geometries in the 'building' layer
2024-02-22 11:17:12,393 - DEBUG - Deleted 61 invalid geometries in the 'building' layer
2024-02-22 11:17:12,393 - DEBUG - Deleted 48 zig-zag vertices in the 'building' layer
2024-02-22 11:17:12,393 - DEBUG - Deleted 224 spike vertices in the 'building' layer
2024-02-22 11:20:27,078 - DEBUG - Merged 10578 close vertices in the 'building' layer
2024-02-22 11:20:27,079 - DEBUG - Created 72314 topological points in the 'building' layer
2024-02-22 11:21:12,252 - DEBUG - Located 114 swimming pools over a building
2024-02-22 11:21:12,253 - DEBUG - Translated 67323 level values to the outline
2024-02-22 11:21:12,254 - DEBUG - Merged 36406 building parts to the outline
2024-02-22 11:21:12,254 - DEBUG - Merged 35023 adjacent parts
2024-02-22 11:25:15,088 - DEBUG - Simplified 217182 vertices in the 'building' layer
2024-02-22 11:25:15,775 - DEBUG - Deleted 5 invalid geometries in the 'building' layer
2024-02-22 11:25:24,044 - DEBUG - Assigned 58026 zones from cadastralparcel to parcels
2024-02-22 11:25:24,529 - DEBUG - Assigned 749 zones from cadastralparcel to parcels
2024-02-22 11:25:36,313 - DEBUG - 54264 polygons merged into 5283 polygons in 'cadastralparcel'
2024-02-22 11:25:37,284 - DEBUG - 5478 polygons merged into 3037 polygons in 'cadastralparcel'
2024-02-22 11:25:37,320 - DEBUG - Searching the url for the 'addresses' layer of '41900'...
2024-02-22 11:25:39,622 - INFO - Downloading '41900/A.ES.SDGC.AD.41900.zip'
2024-02-22 11:25:41,918 - INFO - Read 67644 features in '41900/A.ES.SDGC.AD.41900.gml'
2024-02-22 11:25:49,584 - DEBUG - Loaded 67644 features in 'address' from 'address.gml'
2024-02-22 11:25:49,710 - INFO - Downloading 'auxsrcs/portal_Sevilla.csv'
2024-02-22 11:26:02,965 - INFO - Read 626001 features in 'auxsrcs/portal_Sevilla.csv'
2024-02-22 11:26:06,491 - ERROR - Could not read metadata from 'CDAU'