Here attached you can find an example of the geotiff image I need to convert.
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.
Hi @beatricemontele, would you like to extract the boundingbox from your raster files to report longitude, latitude, values ( RGB - min and Max ) and band values?
You can use a GeoTiff reader, then a RasterBandSeparator to split up the bands. You can use an AttributeManager to rename the output. Then use a Point Cloud XYZ Writer - you can specify the x, y, and z, components and give them a new name (see the screenshot below). The writer will write to a CSV file.
You can use a GeoTiff reader, then a RasterBandSeparator to split up the bands. You can use an AttributeManager to rename the output. Then use a Point Cloud XYZ Writer - you can specify the x, y, and z, components and give them a new name (see the screenshot below). The writer will write to a CSV file.
This will give you a bunch of records - but if you just want one record per band, you should use the RasterBandSeperator, then use the BoundsExtractor to get the Max/Min x/y for each band. Use an AttributeManager to rename attributes and remove unwanted attributes, then use a CSV writer.
I want to extract long, lat, number of the band and the value of each cell of the raster (not only max and min). I hope you can download the file at the following link.
Thanks erik_jan. With your method and adding an the ElevationExtractor transformer I was able to extract band number and z_values for each cell. I still need latitude and longitude of the center of each cell. Here you can see FME flow and the output I got.
Thanks erik_jan. With your method and adding an the ElevationExtractor transformer I was able to extract band number and z_values for each cell. I still need latitude and longitude of the center of each cell. Here you can see FME flow and the output I got.
You can use the CoordinateExtractor to extract (x, y, z) from the point.
I want to extract long, lat, number of the band and the value of each cell of the raster (not only max and min). I hope you can download the file at the following link.
I tried the method suggested by courtney_m but I always get the following error message:
"Failed to obtain point cloud from feature. Only features with point cloud geometry are expected
A fatal error has occurred. Check the logfile above for details"
Ah, sorry about that. It looks like @erik_jan was right on the money with the RasterCellCoercer, though! If you are using the RasterCellCoercer to output points, you will need to use the CoordinateExtractor to expose the x,y.
Ah, sorry about that. It looks like @erik_jan was right on the money with the RasterCellCoercer, though! If you are using the RasterCellCoercer to output points, you will need to use the CoordinateExtractor to expose the x,y.
Many Thanks. The CoordinateExtractor worked perfectly.