Skip to main content

Is there any example how to use fmeobjects.FMERasterTools.resampleBySpacing.

When I run this code:

        raster_g1 = feature.getGeometry()
        raster_g2 = fmeobjects.FMERasterTools.resampleBySpacing(5.0, 5.0, fmeobjects.FME_INTERPOLATION_BICUBIC, raster_g1, {})

 

I get error message:

Python Exception <TypeError>: descriptor 'resampleBySpacing' for 'fmeobjects.FMERasterTools' objects doesn't apply to a 'float' object

What’s your reasoning for doing this in python rather than using the RasterResampler?

 


Reply