Skip to main content

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?

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.


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.

 

 


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.


Reply