Skip to main content

I'm afraid that this code in the "Getting Started  Working with rasters" section  is wrong.

        # creating the new FMERaster
        rasterProperties = fmeobjects.FMERasterProperties(numRows, numCols,
                                                          xCellOrigin, yCellOrigin,
                                                          xSpacing, ySpacing,
                                                          xOrigin, yOrigin,
                                                          xRotation, yRotation)

According to the API reference, the order of parameters should be:

        # creating the new FMERaster
        rasterProperties = fmeobjects.FMERasterProperties(numRows, numCols,
                                                          xSpacing, ySpacing,
                                                          xCellOrigin, yCellOrigin,
                                                          xOrigin, yOrigin,
                                                          xRotation, yRotation)

Hi @takashi. I've passed this onto Development, I'll update when I receive a response. Thank you.


Hi @takashi. I've passed this onto Development, I'll update when I receive a response. Thank you.

Hi @takashi. Yes you are correct, that's a good find. Development will correct the section to match the proper usage according to the API documentation.

 


Hi @takashi. I've passed this onto Development, I'll update when I receive a response. Thank you.

Thanks for your quick response :-)

 

 


Thanks for your quick response :-)

 

 

We've fixed the documentation. Thanks!
We've fixed the documentation. Thanks!
I cannot see any update yet, here.

 

http://docs.safe.com/fme/html/fmepython/getting_started.html#working-with-rasters

 

 


Hmm, looks like it's still cached over there. May take some time to show up...

 

 


Okay, it's up to date now. 🙂

Reply