Skip to main content
Solved

How can I simulate GDAL's "Offset from zero relative to which to interpret intervals" parameter using FME Workbench for contour generation?


olivier
Contributor
Forum|alt.badge.img+7

Hi,

 

I am creating contour lines and contour polygons from a raster geotiff file with 50m intervals. In lowland areas near the sea a lot of tiny lines/polygons are created wherever the elevation fluctuates around value 0-m. GDAL has a parameter (Offset from zero relative to which to interpret intervals) which allows setting an offset so as to reflect only significant low elevations (by setting it to -5 for instance). However this parameter is not present in the ContourGenerator transformer of FME.

Can you think of a workaround for simulating such behavior? Otherwise is it easy to call the GDAL function from within FME?

Thank you!

 

Best regards,

 

Olivier

Best answer by redgeographics

I'm trying to get my head around how this works...

 

You can use the Offsetter transformer to perform the offset, then ContourGenerator and then another Offsetter to get the contours back to their proper elevations.

View original
Did this help you find an answer to your question?

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+49
  • Celebrity
  • Best Answer
  • July 14, 2022

I'm trying to get my head around how this works...

 

You can use the Offsetter transformer to perform the offset, then ContourGenerator and then another Offsetter to get the contours back to their proper elevations.


olivier
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • July 14, 2022

Thank you very much @Hans van der Maarel​ ! That indeed works. In the meantime I had used the RasterExpressionEvaluator for adding 5 to A[0]. I did not know that the Offsetter was also acting on Raster.👍


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings