I have a reader (file geodatabase) that contains about 900 polygons and want to use each feature independently as a clipper in a Clipper transformer, since I want to clip a few rasters based on that clipper. The result should be connected to that input somehow.
Another way of doing this but with the same result:
1) Read all your polygons
2) Connect to a FeatureReader and read your raster file. Set the spatial filter in the FeatureReader to 'Contains'. This way, only the parts of the raster inside each polygon should be read.
You can add a FeatureReader for each raster you would like to process, or use a 'Directory And File Pathnames Reader' to read the path to all rasters and use this attribute in the FeatureReader.
Hey
As shown here? In this case I don't get a result and I should. in this case with only one polygon.
Hi @felipeverdu1, create copies of raster for every polygon (i.e. make groups of raster and polygon having 1:1 relation), then clip the raster by the polygon for each group. This screenshot illustrates my intention.
Hi @felipeverdu1, create copies of raster for every polygon (i.e. make groups of raster and polygon having 1:1 relation), then clip the raster by the polygon for each group. This screenshot illustrates my intention.
Hi @felipeverdu1, create copies of raster for every polygon (i.e. make groups of raster and polygon having 1:1 relation), then clip the raster by the polygon for each group. This screenshot illustrates my intention.
I need to send one polygon at a time, I am having some difficulties with that. How do you recommend that I should do it?
Hi @felipeverdu1, create copies of raster for every polygon (i.e. make groups of raster and polygon having 1:1 relation), then clip the raster by the polygon for each group. This screenshot illustrates my intention.
Hi
I need to do an analysis with the raster files (5 of them) within that polygon, independently since otherwise it would take a lot time to process. The output (for now a vector data) should be named after its respective polygon. I attatch the fme workbench so you can see what I do (in this case for 1 polygon).step1-ta-0105.fmw
Hi @felipeverdu1, create copies of raster for every polygon (i.e. make groups of raster and polygon having 1:1 relation), then clip the raster by the polygon for each group. This screenshot illustrates my intention.
If you are going to merge only features which are sourced by the same original polygon, you should use unique ID of the original polygon features as join key. Possibly "OBJECTID" or "_count" could be used.
If you are going to merge only features which are sourced by the same original polygon, you should use unique ID of the original polygon features as join key. Possibly "OBJECTID" or "_count" could be used.
it was not my intended operation. The reason why I wanted to do it by polygon (10x10km) it is that the RasterBanCalculator transformer gets the same number of rows and column of the rasters to be processed. In this sense, the process gets a lot of faster. However, I do not know how to keep the result separate for all the polygons. I assumed that if it got the name from the feature type it would do the job.
If you are going to merge only features which are sourced by the same original polygon, you should use unique ID of the original polygon features as join key. Possibly "OBJECTID" or "_count" could be used.