Skip to main content
Solved

Geotiff to contours

  • August 3, 2017
  • 4 replies
  • 241 views

I have a Geotiff file where the colour (a real number) represents the elevation. I wish to generate contours form this data and can not see how to get the data into the contour generator in an appropriate way. What other transformers do I need and how do i use them?

Best answer by erik_jan

I believe you will need points as input.

The RasterCellCoercer can convert raster to individual points.

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.

4 replies

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • Best Answer
  • August 3, 2017

I believe you will need points as input.

The RasterCellCoercer can convert raster to individual points.


  • Author
  • 1 reply
  • August 3, 2017

Thanks, I'll give that a try. I will also need to assign the "colour" value to an attribute of the point then use this as the height.


erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • August 3, 2017

I believe you will need points as input.

The RasterCellCoercer can convert raster to individual points.

Use the 3DForcer (attribute value of the color) to create 3D points.

 

 


takashi
Celebrity
  • 7842 replies
  • August 4, 2017

Hi @mark_butler, if the raster was a numeric raster having just a single band whose value represents the elevation, the ContourGenerator could generate contour lines directly from the raster. Therefore, if you transform the raster into an appropriate numeric raster, you can also create contour lines from the raster without converting it to individual points.

"How to transform" depends on the actual raster properties - number of bands, interpretation of the bands, meanings of the band values etc. "colour (a real number) represents the elevation" doesn't explain the raster properties precisely.