Question

Convert raster to list of its pixel values (fastest method?)

  • 7 August 2018
  • 1 reply
  • 1 view

How do i convert a small raster to an (aspatial ) long list of numbers (the pixel values with comma separators idealy) without coercing to vector. I want to look at frequency of numbers occuring in the raster, Thanks


1 reply

Badge +2

Hi @rossdognz,

If you do not want to use the RasterCellCoercer then I would recommend exploring the fmeobjects documentation on raster data to use in the PythonCaller.

You can find some examples of how this is used from Takashi in the comment section here:

https://knowledge.safe.com/questions/38000/python-fme-objects-api-for-raster-manipulation.html

Reply