Skip to main content
Question

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

  • August 7, 2018
  • 1 reply
  • 31 views

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

Forum|alt.badge.img+2
  • 719 replies
  • August 7, 2018

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