Question

Extract pixel value to point file (available)


Badge
I have a point file which had ID (1,2,3,4,5..10). And I have a Raster file.

 

 

I want to extract pixel value from raster to point file. That's mean each record in point file, it gets a value in raster.

 

 

In FME, Can I do it? And if it is possible, how can i do?

 

 

Thanks

4 replies

Userlevel 4
Hi,

 

 

you can use the PointOnRasterValueExtractor for this. Be sure to check the help about the different interpolation type setttings first.

 

 

David
Badge +3
 the undisputed transformernamelenghtrecordholder: "PointCloudOnRasterComponentSetter"
Badge
Yes. Thank you. In case, I have multiple raster and only  a point file.

 

 

I want extract all value in raster to point file ( each raster file has a field in point file).

 

 

How can i do?

 

 

Thanks
Badge +3
If the rasters do not overlap and it is just one type of attribute you want to map/extract,

 

 

You can a dynamice reader on rasters and enter it in the rasterport of the PointCloudOnRasterComponentSetter. (i have never tried that though)

 

 

Else Tiler (or a tiling procedure) to do that.

 

 

You can extract boundingboxes from rasters, spatialrelate the boundingboxes to point cloud and then send the pointclouds to a tiler using bounds for tiles.

 

This will also make sure you have linked rastername (fme_feature_type).

 

Attach a featureReader to Tiler dynamically reed the  rasters based on this link (fme_feature_type).

 

Send output from tiler to PointCloudOnRasterComponentSetter"

 

Also send output raster from featurereade to PointCloudOnRasterComponentSetter

 

 

I hope this is understandable...

 

 

Haves Fun

 

Reply