Skip to main content
Solved

Rasters with python object

  • July 10, 2017
  • 3 replies
  • 107 views

meijer
Contributor
Forum|alt.badge.img+3

Hi all,

With the documentation online, I was wondering if I can read out raster data.

https://docs.safe.com/fme/html/FME_Objects_Python_API/index.html

My case:

I want to have a moving window ( 9x9 e.g.) to blur an image, I cannot change the data to pointclouds, or clipp the data into 9x9 rasters, because the data is too big.

 

So my question is: How can I extract and update the cell values via the fme python objects?

 

Thanks in advance!

 

Best answer by jdh

Takashi wrote an excellent set of examples for working with raster in the python api.

 

 

https://knowledge.safe.com/questions/38000/python-fme-objects-api-for-raster-manipulation.html
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.

3 replies

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • Best Answer
  • July 10, 2017

Takashi wrote an excellent set of examples for working with raster in the python api.

 

 

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

mark2atsafe
Safer
Forum|alt.badge.img+59
@meijer Not necessarily Python, but we do have plans to allow more advanced cell value setting (eg blur or neighbor averages). There is an idea on this site, so if you want to vote it up, please visit: https://knowledge.safe.com/idea/19473/advanced-raster-cell-value-calculation.html

 


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • July 10, 2017
Hi @meijer, how the @jdh wrote you, the link is very powerful.

 

I created a Post in my Blog and i described a example to perform a clipper just using Python Script.

 

http://vanholzel.blogspot.com.br/2017/07/fme-objects-api-for-raster-using-python.html

 

 

 

Thanks,

 

 

Danilo de Lima