Import SOSI File Does Not Work
Problem
When importing a SOSI file nothing is imported to Quadri. "Conversion did not produce any features"
Picture 1: Warning message in Quadri saying that nothing is imported to Quadri
Solution
When a SOSI file is not imported correctly there can be several reasons. The main reason is often that the conversion rule in Quadri was unable to read the information given in the SOSI file. Quadri needs to understand what information it is reading in order to create features and objects in Quadri.Â
Step 1: Open the SOSI file with notepad (or similar software). Here you want to check what kind of SOSI file you have and what information is provided. Check for SOSI version, coordinate system, units, and object types. In this example, you notice that Object type are defined as "ukjent"(unknown). The standard conversion rule is not able to know what an unknown object is. So in this case the produced of this SOSI file should define it. for example Object type: "Waterpipe".
Picture 2: Open the SOSI file with notepad to check what kind of SOSI file you have
Step 2: Create an import task, choose your SOSI file and select a conversion rule (Quadri will read the information in the SOSI file and help you automatically transform it to the correct coordinate system if needed). It is the Conversion rule that allows you to transform the information in the SOSI file to objects in Quadri. Quadri will read the SOSI file and help you select a conversion rule for that specific SOSI version. in this example version 4.5.
Picture 3: Screenshot from Quadri
Press select conversion rules, and you will notice you can see conversion rules especially made for version 4.5.
Picture 4: Here you can see conversion rules especially made for SOSI 4.5
Step 3: Always press Preview in order to see if your object has been imported or not. In this case, no objects are imported and the process window indicates that.
Picture 5: The process window indicates that nothing is imported to Quadri
Step 4: In this case, no objects are created as we can see in the SOSI file that all objects types are defined as "unknown". Look at the 2 examples from the file below. This object type is most likely a waterpipe, but since the creator of the SOSI file has marked it as unknown the conversion rule is not able to know and therefore not importing it.
Picture 6: This object type is most likely a waterpipe, but we don't know for sure
Picture 7: This object type could be a sewer pipe, but again we don't know for sure
How to import this file ?
Solution A - Ask for a correct SOSI file
The simplest solution is to ask the producer if they are able to provide you with a correct SOSI file. It is a good rule to always open any SOSI file you receive as soon as you get it to check whether it contains the necessary information to import it correctly. It is also the producer of the SOSI file that knows exactly what type of objects they created the file from.
Solution B - Edit the SOSI file in Notepad before importing
Open the file in notepad or a similar program and replace "Ukjent" with the correct object type. In this case, we replaced it with "Waterpipe" and "Sewerpipe". This is easy if there are few objects (no action required in the standard conversion rule). This method can be difficult if there are many objects, and if you don't know what kind of objects they are. This is why you should always ask the creator of the SOSI file to provide accurate data.
Now I could successfully import the file. This is the preview window after importing the new edited SOSI file:
Picture 8: The process window indicates that everything is imported to Quadri
And this is the result in Quadri:
Picture 9: This is the result in Quadri
Solution C - Create a new conversion rule in Quadri
You can create a new conversion rule, and use other attributes in the SOSI file to create features in Quadri. How to create a conversion rule is described here.