Skip to main content

Hello.

I have two entries : a rectangle and a numeric raster. The bounding box of the raster is included in the rectangle.

I wouldlike to create a new raster with a bounding box corresponding to the rectangle (area outside the initial raster filled with nodata).

The clipper can be used for such operations when the raster is wider than the rectangle but in my case, the clipper result bounding box is an intersection of the inputs.

Do you know another way to proceed ?

Thank you in advance.

Paul

Best solution I have (in fact the only solution I have) is to rasterize the rectangle (ImageRasterizer or NumericRasterizer), then merge the two together with the RasterMosaicker.

The biggest potential problem is making sure the original raster appears on top. To do this I rasterized the rectangle with values of 0, and then set the Mosaicker:Overlapping Values parameter to Maximum.

Here I used an image, so FeatureColorSetter/ImageRasterizer. For numeric data use the 3DForcer and NumericRasterizer.


Thank you Mark.

It does not work for now. Maybe there is a problem with my nodata value.

I will try to work on it next week.


Reply