Skip to main content
Solved

Aviod geometrycollection in MS SQL?


m_tengbrand
Participant
Forum|alt.badge.img

I have made an aggregation of lines that I have saved in MS SQL. when I then make a STGeometryType () on the table I find that a GeometryCollection has been formed. I want to avoid this and instead save it as a MultiLineString. However, I do not find any settings where I can control this. (then I will do the same for points and spaces to completely avoid GeometryCollection.)

Best answer by m_tengbrand

Now it's fixed, I had to run a deaggregate first, it was not the objects aggregated by fme that was the problem but the objects that were already multilines in SDE.

View original
Did this help you find an answer to your question?

2 replies

fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • December 6, 2017

Hi @m_tengbrand, the GeometryCoercer might be useful in this situation. You can change the geometry if needed using this transformer. Additionally, I would suggest looking at what you have set to the "Collection Type Handling" on the Writer feature type (under Advanced)


m_tengbrand
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • Best Answer
  • December 7, 2017

Now it's fixed, I had to run a deaggregate first, it was not the objects aggregated by fme that was the problem but the objects that were already multilines in SDE.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings