Skip to main content
Question

How to force the bounding box of a raster ?

  • November 21, 2018
  • 2 replies
  • 89 views

paulbader
Participant
Forum|alt.badge.img

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

2 replies

mark2atsafe
Safer
Forum|alt.badge.img+43
  • Safer
  • November 21, 2018

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.


paulbader
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • November 23, 2018

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings