span8
span4
span8
span4
As part of the INSPIRE Directive*,EU countries are required to submit cadastral parcel** data in the INSPIRE specified format.As of FME 2014,it is easier to both read and writeINSPIRE GML.This example demonstrates how FME can be used to manipulate cadastre data and transform it into INSPIRE Annex I cadastral parcels.In the demo,French EDIGEO*** data is transformed into INSPIRE compliant GML,utilizing the INSPIRE Cadastral Parcels XML schema (XSD).The process outlined in the demo to write INSPIRE compliant GML can be applied to other INSPIRE themes.
In this example,EDIGEO cadastre data is read using the EDIGEO Reader.The demo utilizes municipality and cadastral section data for INSPIRE CadastralZoning,and parcel data for INSPIRE CadastralParcels.
This is the typical extract,transform and load (ETL) process for extracting data from operational systems,transforming it and loading it into INSPIRE compliant GML.Implementation will vary on source data and INSPIRE theme involved.
1.Read source EDIGEO cadastre data using the EDIGEO Reader
National French cadastre data is often stored in EDIGEO format.Municipality (commune) and cadastral section data (section cadastrale) is used for CadastralZoning features,while parcel data (parcelle) is used for CadastralParcel features.Cadastral zonings are intermediary areas used in the division of national territory while cadastral parcels are the most basic unit of area,according to the INSPIRE cadastral parcels data specifications.
2.Generate IDs as required by the INSPIRE application schema
A National ID and a GML ID are created to fulfill the INSPIRE cadastral parcel data specifications.The National ID is mapped to the nationalCadastralReference,a national thematic identifier.Additionally,GML IDs are generated automatically at both the feature level and geometry level as needed by the writer.
3.Augment required fields
For cadastral parcels,a datetime attribute is created and populated,which later is mapped to beginLifespanVersion,the spatial object insertion or modification date and time.Parcel area is calculated by first reprojecting the data,then using an AreaCalculator.For cadastral zoning,a level attribute is created to store the level of cadastral zoning for each feature.The municipality data receives a 1st order value,while the cadastral section data receives a 2nd order value.
4.Reproject to the official coordinate system
The INSPIRE Directive requires that cadastral parcels be published in ETRS89 (EPSG:4258),or for systems outside of ETRS89,in the ITRS reference system.As France is within ETRS89,the cadastre data is reprojected to ETRS89 using the Reprojector.Additionally,as the French coordinate system RGF93 is based on ETRS89,there is no loss of accuracy from coordinate transformation.
5.Schema mapping
The source attributes are mapped to the destination attributes,to ensure that the correct source attributes are sent to the required destination attributes.Mapping is guided by required fields for the INSPIRE application schema.For example,the Attribute Copier maps source field nationalZoningReference to destination field nationalCadastralZoningReference.
XML Schema - Attribute name mapping
6.Geometry transformation through assembling required multi-geometry
First,the name is set for each geometry.Cadastral zoning has two geometry names,‘surfaceMember' for the inner geometry,the cadastral sections,and ‘geometry' for the outer geometry,the municipality.Cadastral parcels also have two geometry names,‘geometry' and ‘referencePoint'.The ‘geometry' name is for the parcel geometry,while the ‘referencePoint' name is for the point geometry inside the parcel,for example the centroid of the cadastral parcel geometry.Geometries are then combined using the Aggregator to create multi-part geometry as per INSPIRE geometry requirements.
7.INSPIRE GML Writing
INSPIRE GML is written using the INSPIRE GML Writer.In the INSPIRE GML Writer,under the User Attributes tab,note thexml_geometrydata type.The xml_geometry fields dictate the geometry name required for geometries to be mapped correctly into the destination GML object.The output feature's root level geometry names must correspond to the names of these xml_geometry fields,or the geometries will be dropped.
Note that for nested geometries,only the root level geometry name shows up on the FME destination feature type output schema as an xml_geometry field.To find out the names for any required inner geometries,you need to examine a sample GML file,a UML data structure diagram,or the corresponding GML application schema.In this case the CadastralParcels.xsd contains an element definition for
Additionally,notice the parent.child notation for nested object hierarchy,such as inspireId.Identifier.localId.Also note that the list{} notation is used for series when an element can occur more than once,for example there can be multiple spellings for the same place name.
INSPIRE CasdastralParcel Feature Type Properties
In order to add an INSPIRE writer and destination feature types,you need to import the destination feature type definitions from the appropriate schemas.User defined schemas will not work in this case.
Cadastral parcels GML read by the INSPIRE GML Reader in Data Inspector.Note the nested ID field structure and complex,multi-part geometry,‘geometry' and ‘referencePoint',as required for INSPIRE cadastral parcels.
Data Source: Direction générale des Finances Publiques - Cadastre;Updated: 2013
Hey and thanks for a great post.I just seem to find how to transform to INSPIRE while I am after how to automatise to download from INSPIRE RSS feed based on a defined area (polygon or corner coordinates) and then transform it further into DWG/SHP.
Anyone got a good workspace up and running for that or some tips for me in the right direction?
Working with this one here:
http://geodata.nationaalgeoregister.nl/plu/atom/plu.xml
Hi@hlynur.FME'sGeoRSS/RSS Feed Reader and Writersupports RSS and ATOM,enabling users to read and write ATOM feeds.
Reading from RSS Feed:
https://knowledge.亚搏在线safe.com/articles/44293/json-writing-overview.html
https://knowledge.亚搏在线safe.com/articles/602/reading-and-writing-georss-and-rss-feeds.html
Once you read in your data,you can continue in the same workspace converting it into DWG/SHP
If you ever want to create a service:
https://knowledge.亚搏在线safe.com/articles/1062/rss-feed-of-fme-server-data-download-layers.html
https://knowledge.亚搏在线safe.com/articles/1340/create-inspire-atom-download-service.html
© 2019 亚搏在线Safe Software Inc |Legal