Skip to main content
Solved

Geotiff to contours


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.

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

4 replies

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

I believe you will need points as input.

The RasterCellCoercer can convert raster to individual points.


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+17
  • Contributor
  • August 3, 2017
erik_jan wrote:

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
Influencer
  • 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.


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