Skip to main content
Question

Point on multiple raster value extraction

  • August 31, 2019
  • 5 replies
  • 109 views

Forum|alt.badge.img

Hello,

I have a shapefile of points and 103 rasters.

 

I wanna overlay the points on the 103 rasters and extract the values to attributes.

 

The final aimed result is the shapefile containing 103 additionnal attributes with extracted values, I want also that attributes have the same names as the rasters. Is there any way to do this batch process ?

I tried to load all the rasters into the PointOnRasterOverlayer but it seems that it connot do a batch process but work only on a single raster at once.

Thank you very much.

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.

5 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • August 31, 2019

Yes one raster is allowed per group, I would use the cloner on the points and form separate groups, each one containing a point feature and a raster, to use in the overlay with the group by setting.

Then rename the raster list attributes for each group to the raster name, drop the point geometry and merge all the attributes back to the original point features.

Hope this helps,

Itay


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • September 2, 2019

@lianaolianov

I would, depending on the number of objects/rasters , use a RasterExtentsCoercer.

Then a spatial relator between the points and the extents.

This also creates groups, only now you use only the requitred objects.

Now do a PointOnRasterValueExtractor (the current name for PointOnRasterOverlayer).

 

This is faster when you have a significant amount of objects and rasters, also saves some memory/swap(especially when the rasters are large, cloning large rasters is a lot of large rasters...is more time spent)

 


jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • September 3, 2019

Assuming the rasters have the same extents and resolution, I would use a RasterBandCombiner to combine all the rasters into 1, and then use the PointOnRasterValueExtractor.


  • 15 replies
  • February 13, 2020

Yes one raster is allowed per group, I would use the cloner on the points and form separate groups, each one containing a point feature and a raster, to use in the overlay with the group by setting.

Then rename the raster list attributes for each group to the raster name, drop the point geometry and merge all the attributes back to the original point features.

Hope this helps,

Itay

Would you be able to explain this more or make a sample workbench for visual guide?


mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • February 14, 2020

Would you be able to explain this more or make a sample workbench for visual guide?

Hi @fme_noob - I took this as my "question of the week" and made a post about it here: https://knowledge.safe.com/questions/108075/question-of-the-week-point-on-multiple-raster-valu.html

I hope it's useful.

I will just say in future it might be best to post a new question, for something like this, because sometimes we don't often see new comments when they appear in an existing question.