I think this will be a tricky one: it looks like your contours don't form closed areas.
If they do you could use an AreaBuilder to create areas, this allows you to create a list attribute as well which will have the elevation values of the contour line(s) forming that area, based on that you can assign colors.
Hi,
I think this is not simple, but that you can better skip the creation of vectors and create a raster from the PC, something shown in this article
I think this will be a tricky one: it looks like your contours don't form closed areas.
If they do you could use an AreaBuilder to create areas, this allows you to create a list attribute as well which will have the elevation values of the contour line(s) forming that area, based on that you can assign colors.
exact contours don't form closed areas, but I don't know how to make those areas and keep elevation attribute
My bad, I thought you had contours as input, not points.
So this may work out for you, it depends on how regularly shaped your area is I guess. The BoundingBoxAccumulator is used to close off the areas, then an Intersector and AreaBuilder, the attribute 'elevation' that comes out of the AreaBuilder (originally created by the SurfaceModeller) is the lower end of the elevation range for that area (i.e. if your contour interval is 10 and you have an elevation attribute of 40 it means that area is between 40 and 50m elevation), although it may behave strangely along the edges.
But your areas are most likely to irregular for this to work. Do you have any additional data that may help? Water outlines for example? (add those in to the Intersector too)
Hello. You could do it like this:
Which involves creating a DEM raster (reccomend low res), turning into polygons and using the excellent ColorRampStyler transformer from the FME store.
Output:
Hello. You could do it like this:
Which involves creating a DEM raster (reccomend low res), turning into polygons and using the excellent ColorRampStyler transformer from the FME store.
Output:
I'd never noticed the ColorRampStyler before. That is indeed, an excellent transformer. Thanks for sharing.