Skip to main content
Open

Improve support for raster to vector (RasterToPolygonCoercer)

Related products:Transformers
  • September 7, 2017
  • 11 replies
  • 125 views

tianawarner
Safer
Forum|alt.badge.img+1
  • Make it easier and faster to convert raster images to vector polygons.
  • Improve performance of RasterToPolygonCoercer and add more options for customizing the transformation.

FMEers, we are interested in knowing how important raster-to-vector conversion is to you. Please upvote if this is an operation you require, and comment to let us know what specifically you'd like to see. Any details you can provide on your use cases would be helpful.

11 replies

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • September 7, 2017

Our production workspaces drop out of FME and into ArcMap for vectorization because the performance in FME is so slow. I would love to see performance gains.

 

 

As a comparison a 12,000 by 7,000 single band raster took 3.74 seconds to vectorize in Arcmap, but in FME takes about 15 seconds.

 

 

A 50,000x40,000 pixels raster is 33s vs 2m 9s.

tianawarner
Safer
Forum|alt.badge.img+1
  • Author
  • Safer
  • September 8, 2017
Thanks @jdh this is helpful info!

 


bruceharold
Supporter
Forum|alt.badge.img+19
  • Supporter
  • September 8, 2017
If ArcScan functionality is whats in play here (sounds not, but just in case) it would reqiure an interactive component.

 

 


jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • September 11, 2017
No, these tests were done with a classified raster, with 2 classes, using RasterToPolygonCoercer in FME and RasterToPolygon in Arcmap (no simplification).

 

 


wolters
Contributor
Forum|alt.badge.img+6
  • Contributor
  • November 8, 2017

Raster to Polygon conversion is something most of my FME workspaces rely on. A speed boost, or at least making it just as fast as the ArcGIS equivalent, would be very valuable to me. Please improve it, as well as other typical Raster transformers (i.e. RasterCellValueCalculator or RasterExpressionEvaluator with more than 2 inputs and ability to type a formula instead of just 7 operations...). Thank you.


Mainly the ability to select output cell size and determine raster attributes (I've never been able to successfully convert an ESRI shapefile to an ESRI GRID)...

 

 


bark0s
Contributor
Forum|alt.badge.img+4
  • Contributor
  • November 1, 2018

Raster performance isn’t great. Converting an aerial photo to greyscale is particularly slow. Rastertopolygoncoercer is ok but it seems counter intuitive to read an entire raster, turn every cell to geometry and then merge those together. I’d like to read from the raster only those cells that meet a condition.


olivier
Contributor
Forum|alt.badge.img+7
  • Contributor
  • May 13, 2019

Vectorizing rasters is essential to our business. Machine learning extracts features from Sentinel imagery. The extractions are in GeoTiff but we need vector for our product. We cover the globe. Each GeoTiff is about 10 GB large and has cells about 10 meters wide at the best resolution. Although I am quite fanatic about FME, I must say that ArcGIS RasterToPolygon tool does the job in 20-25 minutes although FME's RasterToPolygonCoercer runs for days. Eventually at some point the log file no longer shows any sign of life. And it isn't clear whether it is still doing something or the system has run out of memory.

This dependence on ArcGIS is annoying and I would rather run the full chain in FME.


mark2atsafe
Safer
Forum|alt.badge.img+59

Thanks for letting us know. I've passed this on straight to the development team. It sounds like something we really ought to be better at. I'd be interested to see a log file if you are able to provide one (you can email me directly, mark.ireland@safe.com if you like). The one thing I did get from our documentation is this:

If memory usage becomes an issue while using this transformer, try adding a RasterCheckpointer before the RasterToPolygonCoercer.

So if you haven't tried that, it might be worth giving a go. I can't imagine it will turn the transformer into something as fast as ArcGIS, but it might produce some improvement.


geolassi
Contributor
Forum|alt.badge.img+7
  • Contributor
  • January 9, 2024

Have there been updates to RasterToPolygonCoercer since 2019, especially to the performance? I'm using 2023.2, and raster to polygon conversion seems to be still very slow.


andreaatsafe
Safer
Forum|alt.badge.img+15

Hi all RasterToPolygonCoercer enthusiasts!

We’re currently reviewing ideas like this one as we plan future updates, and I’d love your input to understand how relevant it still is today.

 

Since this was last discussed, we added bulk mode support to the RasterToPolygonCoercer in FME 2023. In our internal testing, we saw a performance boost of under 7%, but it’s still unclear how much impact this has had in real-world workflows.

 

To help us assess whether this idea is still important:

  • Are you using FME 2023 or newer and still encountering slow performance?

  • Could you share a sample workspace and dataset where this remains an issue? Feel free to add to this thread or email me directly: andrea.eisma@safe.com

 

Thanks in advance!