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?

  • July 14, 2022
  • 2 replies
  • 55 views

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.

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.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3698 replies
  • 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
  • 60 replies
  • 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.👍