Skip to main content
Open

Improve support for raster to vector (RasterToPolygonCoercer)

Related products:Transformers
xiaomengatsafe
siennaatsafe
nathanatsafe
redgeographics
+23
  • jlutherthomas
  • xiaomengatsafe
    xiaomengatsafe
  • siennaatsafe
    siennaatsafe
  • nathanatsafe
    nathanatsafe
  • redgeographics
    redgeographics
  • danilo_fme
    danilo_fme
  • jdh
    jdh
  • sigtill
    sigtill
  • tcrossman
    tcrossman
  • mathiku
    mathiku
  • kennyo
    kennyo
  • olivier
    olivier
  • gbj1717
    gbj1717
  • paalped
    paalped
  • sebastianolaf
    sebastianolaf
  • bark0s
    bark0s
  • marko
  • mik_w_thomsen
    mik_w_thomsen
  • geolassi
    geolassi
  • alexanderallan
  • felipeverdu
    felipeverdu
  • skime
    skime
  • jneujens
    jneujens
  • tfsrichard
  • wolters
    wolters
  • kotarbamaciek
  • craig_thompson
  • tianawarner

  • 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.

10 replies

jdh
Contributor
Forum|alt.badge.img+28
  • 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.

  • Author
  • September 8, 2017
Thanks @jdh this is helpful info!

 


bruceharold
Contributor
Forum|alt.badge.img+17
  • Contributor
  • 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+28
  • 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+3
  • 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+44

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+5
  • 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.


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