Spanish Cadastre/Buildings Import/Data Conversion
Import guide | Projects management | Results | Documentation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Data Conversion describes the conversion procedure of the datasets for this Spanish Cadastre/Buildings Import. How to downloadThe data is available for download through these ATOM services: You can also use the conversion tool to download the data. Content of the DatasetsA full description of the download service is available here. The downloads are files in ZIP format that contain the data for each object in GML files, according to the specifications defined for the DGC INSPIRE data sets, plus an XML file with the metadata of the data downloaded. The ZIP filenames follows this pattern: A.ES.SDGC.XX.PPMMM.zip with:
Contents of the ZIP file of cadastral parcel
Contents of the ZIP file of addresses
Contents of the ZIP file of Buildings
Description of the dataThe detailed description of the data set and its structure can be found here. Cadastral Parcels (CP) dataset elements
Addresses (AD) dataset elements
The object Address, in order to complete a structured address, is associated with other objects that do not have a defined geometry, and they are:
Buildings (BU) dataset elements
Generation of tags from the datasetConversion of the Addresses (AD) datasetThis chapter describes the conversion criteria of the elements contained in the GML file of Addresses (A.ES.SDGC.AD.GGMMM.gml). <AdminUnitName> elements (Municipalities)
<PostalDescriptor> elements (Postcodes)
<ThoroughfareName> elements (Streets)
<Address> elementsEach element <Address> included in the data set will be assigned to an OSM element as described here. The labels will be generated according to the following table:
Conversion of the Building (BU) datasetThis chapter describes the conversion criteria of the elements contained in the GML file of Buildings (A.ES.SDGC.BU.GGMMM.gml). <Building> elementsFor each <Building> element included in the dataset a closed way will be created with nodes according to the geographic coordinates specified in the outer linear ring. If the <Building> element includes one or more inner linear rings, a multipolygon type relation will be created with the outer closed way having the role outer and the inner closed having the role inner. Some <Building> elements could contain many outer rings. This happens when different buildings have the same cadastral reference (<base:localId> field). The tags of the way (or multipolygon relation in case of inner rings) will be generated according to this table:
<BuildingPart> elementsFor each <BuildingPart> element included in the dataset a closed way will be created with nodes according to the geographic coordinates specified in the outer linear ring. If the <BuildingPart> element includes one or more inner linear rings, a multipolygon type relation will be created with the outer closed way with the role outer and the inner closed ways with the role inner. The tags of the way (or multipolygon relation in case of inner rings) will be generated according to this table:
<OtherConstructions> elements (Swimming Pools)In the Cadastre dataset, the <OtherConstructions> elements refers only to swimming pools. For each <OtherConstructions> element included in the dataset a closed way will be created with nodes according to the geographic coordinates specified in the outer linear ring. If the <OtherConstructions> element includes one or more inner linear rings, a multipolygon type relation will be created with the outer closed way having the role outer and the inner closed ways having the role inner. The tags of the way (or multipolygon relation in case of inner rings) will be generated according to this table:
Conversion of the Cadastral Parcel (CP) datasetThis chapter describes the conversion criteria of the elements contained in the GML file of Cadastral Parcels (A.ES.SDGC.CP.GGMMM.gml). <CadastralParcel> elementsIt was decided (in spanish) not to import the cadastral parcels. <CadastralZoning> elementsWith the <CadastralZoning> elements two files in GeoJSON format are generated to create projects in the task manager and to split the data in tasks. No tag or property is generated from the data, but these are the fields to considered:
Changeset tagsThe following tags will be used for the import changesets:
Data conversion problemsProblems found in the dataset that must be corrected before converting to OSM format are listed on this page: Problems. Data conversion processTaking into account the propossal for tags translation and conversion of the different elements of the data sets explained in the previous sections, the complete process of data conversion is summarized in the following steps:
The data conflation is carried out in steps 3, 6 and 11. Data conversion toolTo carry out the data conversion process, a software tool has been developed with Python that takes the ZIP files from the data sets of each municipality and generates the OSM files, either of the entire municipality or splitted into blocs for the Task Manager. The program is described on this page: CatAtom2Osm. Validation of the data conversion processFor the validation of the data conversion process, it is proposed to download the datasets of several Municipalities, perform the conversion of the data and then perform an analysis of the data obtained. The following statistics must be obtained from each municipality:
This data and others are provided by the conversion tool in the file 'report.txt'. A qualitative analysis will also be carried out:
The criteria to take into account to select the Municipalities are:
Validation resultsThe validation process generates the following data. |