Skip to main content
Question

Point on raster value extractor: How to give z coordinates to points depending on their position on a geotiff?

  • September 19, 2017
  • 3 replies
  • 165 views

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.

3 replies

takashi
Celebrity
  • 7843 replies
  • September 19, 2017

Hi @pepote, the PointOnRasterValueExtractor adds a list attribute called "_band{}" to each point that is inside of the source raster, and the "_band{}.value" contains the values of all bands at the cell that matches the point. For example, if the first band of your raster represents elevation, "_band{0}.value" will store the elevation. Then, if your goal is to assign the cell value to z-coordinate of the point, you can use the 3DForcer transformer by setting "_band{0}.value" to the Elevation parameter.


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • September 19, 2017

Hi @pepote,

I simulated your case in my machine with just a point and a raster file ( DEM ).

The transformer PointOnRasterValueExtractor was used and a new attribute was created after this transformer:

After i used the transformer CoordinateExtractor and in the options inside this transformer, the value for Z was configurated by value attribute _band{0}.value:

The result:

Thanks,

Danilo


  • Author
  • 2 replies
  • September 20, 2017

It works... thanks a lot!