Skip to main content
Question

Raster to Vector flow creates only triangles


So, I have a little issue, that I cannot get to the ground of. Maybe someone can help.

 

So, I have this TIF File, which I am trying to convert into a SHP file.

This is how the TIF looks:

image 

And this is how my FME Flowchart looks like:

 

image 

But... When I let it run I get a SHP file, yes, but it looks like this:

 

image 

Lots of triangles instead of one solid block.

 

Can someone tell me, what the issue is? What am I doing wrong?

5 replies

tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • June 13, 2023

Which params are you setting by the generalizer? I thing you want one area, you can use the tranformer dissolver before the generalizer.


nielsgerrits
VIP
Forum|alt.badge.img+54

This is probably caused by the Generalizer. Which is removing vertices from the original cell polygons.

 

You can use a Dissolver to merge the individual cells to bigger polygons.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35

What kind of output are you hoping for? Do you just want the outline of the image data here or do you need polygons with the actual values from the data.

 

If you just need the outline then you can use the RasterExtentsCoercer picking DataExtents. This should give you one polygon.

 


  • Author
  • June 13, 2023
nielsgerrits wrote:

This is probably caused by the Generalizer. Which is removing vertices from the original cell polygons.

 

You can use a Dissolver to merge the individual cells to bigger polygons.

Thank you. That did the trick! :D


nielsgerrits
VIP
Forum|alt.badge.img+54
alex_rump wrote:

Thank you. That did the trick! :D

We used to do a lot of raster to vector conversions and used the PotraceCaller from the FME Hub, which turned out perform a lot faster than the RasterToPolygonCoercer route.


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