Skip to main content
Question

Raster Band adjustments

  • June 27, 2026
  • 0 replies
  • 0 views

artie
Contributor
Forum|alt.badge.img+3

I have a fairly complex shapefile/contour source that I’m converting to a DEM raster. It involves a lake bathy that has large islands. This process is complicated by the lack of good smoothing for widely separated contours and also islands within the lake.

With the lake bathy I’ve created very smoothed rasters, but for the land I need to have a sharp edge to represent the shoreline. I have 2 separate raster generators for this. I clip the rasters to isolate lakebed, land around the lake and land on islands.

The last complexity is inputing 2 rasters into a RasterMosaicker (both have alpha channels) and have the island rasters bands 0,1,2 set to RGBs of 255:255:255 while retaining the alpha channels for overlaying.

I tried setting the RBG bands for the islands to 255:255:255 prior to the RasterMosaicker, (since islands are lost after the RM), but after removing the alpha channel with a RasterInterpretationCoercer the island RGBs are reset to either 0:0:0 or arbitrary values (such as 113:113:113). I tried resetting the Raster Cell value of 0:0:0 to 255:255:255 (for land on islands), but there is a very small part of the lakebed that has a raster area of 0:0:0 that also converts, creating a tiny pyramid ‘island’.

It’d post a screenshot of the workflow, but it’s big and convoluted.

Any thoughts are appreciated