A workflow we use at work is as follows:
- Geometry data is stored in SQL Database (attached screenshot - SQL Geometry.png). It is a multi-part polygon and looks to be correct.
- I use a SQL Creator in an FME job to get the data from the SQL Database. We call a stored procedure to get this data but no transformations are performed in this GET.
- I use a Geometry Replacer in the FME job with the following settings:
- Geometry Encoding: Microsoft SQL Server Binary
- MS SQL Server Format: Geometry
- After this Geometry Replacer the shape looks correct in FME Inspector, but the Type looks incorrect (attached screenshot FME Data Inspector.png)
- The shape looks right
- It is classed at the top level as an IFMEMultiArea type of 1 part which is not right. It seems to have classed it as a shape with 1 part (a donut) with an outer boundary and 2 inner boundaries.
I'm pretty sure the data conversion into the SQL format is correct but I can't get access to that right now to double check.
Has anybody got any advice on how to debug this? How does FME determine the feature type? i.e. MultiArea/No. Parts etc.
Thanks