Use Case 01: Import SOSI using custom conversion rule
In this use case, we want to import a SOSI file with many object types, but we will only convert and read objects of the type "Påkoplingspunkt".
To achieve this we will set up a custom conversion rule.
Before creating the conversion rule, its recomended to open the file in a text editor like Notepad o Notepad++. In the text editor you can see how the objects are defined and what attributes the object has. In this case the objects are defined as OBJTYPE "Påkoblingspunkt", and we want to import the attributes EIER(owner), REGDATO(date registered) and ENDREDATO(Date changed).
Importing and setting up conversion rule:
Create import task and select SOSI file.
Its possible to either create a copy of a existing conversion rule or create a new one. In this example we create a new one.
3. In the Conversion Rule Editor we add a new rule, and then set up the rule to convert all SOSIPoints that are defined as OBJTYPE "Påkoplingspunkt" to the destination feature "VA_Anboring".
4. After setting up the conversion rule for the geometry, we need to set up the conversion of attributes. To do that we have to toggle "View Attributes Conversion per Feature".
In this case we will use the attribute P_TEMA to define the result features name. We will also map the attributes EIER, REGDATO and ENDREDATO to attributes with the same name in the result feature.
5. After the rule is configured we can choose the conversion rule in the Import task, and then preview the import. When selecting one of the points we can see in the Properties window that the feature is now a TappingSleeve(VA_Anboring), and the name and attributes that we defined in the conversion rule are present.