KLIC Transformer (version 1)By: Vos Geo-analyses (Roelof Vos)
This transformer reads a previously downloaded KLIC file. The KLIC is downloaded from Kadaster.nl and shows all cables and pipelines in the specified area.The goal of this transformer is to read the .xml file, connect and expose all relevant data to each geometry and write it with a pre-defined style to a GeoPackage, or provide it to the end user as a raw output.Input
Use a Creator with one creation instance to kick off the transformer.The KLIC file can be zipped or unzipped. The transformer can also process unzipped files within the same folder. KLIC files must begin with the name "Levering_".
User parameters
The KLIC transformer works with three user parameters:
1. KLIC_FOLDER: specify where you saved your KLIC downloads on your computer. From here the transformer will load all data with a Directory and File Pathnames reader.
2. Destination_writer: Specify where you want the styled GeoPackge to be written to.
3. KLIC_style_GPKG: Specify where you have saved the styling GeoPackage. This GeoPackage can be obtained via an email to roelof@vosgeo-analyses.nl or via this download link: "https://vosgeo-analyses.nl/assets/KLIC%20Styling_V2.gpkg". This GeoPackage is required to automatically provide styling for your output KLIC.
Output
A raw output port is provided to the user to continue with their KLIC data within FME.
A Geopackage writer is used to write off the pre-styled KLIC. The location where this Geopackage is stored is provided by the user via user parameters.
Use notes:
The KLIC transformer can encounter inconsistencies within the KLIC data. The script uses Error Loggers to provide user feedback regarding these inconsistencies. Examples include non-matches related to beheerder-netwerk matching, K&L matching with netwerk, etc. These types of errors are not fatal, but users are advised to review them.
Non-matches on IDs may also occur within the UtilityLink geometries. These are written as fme_feature_type "UtilityLink"
The GeoPackage writer uses a template GeoPackage that is pre-styled, allowing users to work with a ready-to-use file in their GIS system. A raw output port is also available for further use in FME.
Use of this transformer is at your own risk. Vos Geo-Analyses cannot be held responsible for any errors in the script.
Credits:
Without the help of others I couldn't have published this transformer. Thanks to:
Annika van den Boom (Stantec): for helping me brainstorm with certain data-issues
Koen Verhoeven (Terralytics): for helping me optimize my script and provide all-round feedback.
Hans van der Maarel (Red Geographics): for helping me troubleshoot with the .fmx.
For help, questions and/or feedback, feel free to reach out. I'd love to hear from you.
Roelof@vosgeo-analyses.nl
Would you like to know more? Click here to find out more details!