Solved

Rasters with python object

  • 10 July 2017
  • 3 replies
  • 11 views

Badge +2

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!

 

icon

Best answer by jdh 10 July 2017, 16:21

View original

3 replies

Badge +22

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
Userlevel 4
Badge +25
@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

 

Userlevel 4
Badge +30
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

 

Reply