Skip to main content
Solved

Combining rasters with RasterMosaicker to "what you see is what you get" png

  • October 4, 2018
  • 2 replies
  • 36 views

jeroen
Contributor
Forum|alt.badge.img+15

Hi,

I'm trying to merging different WMS features and images (Image Fetcher) together using a RasterMosaicker transformer. All layers from our local WMS server are merged together correctly but i cannot get it to merge with other WMS layers. The result should be a "what you see is what you get" PNG using the overlapping Values "last" option. I added a .fmwt file with an example.

The PNG is a save from my WMS server that correspons to the same coordinates as the WMS in the example. 

My first problem was that the incoming WMS contain more bands so i had to generate a palette using RasterPaletteGenerator. After this my error  is:

My result failed due to: 

The palette nodata value '255,255,255,0' of the selected band '1:0' does not match the palette nodata value 'NULL' of the corresponding band in the mosaicked raster

or after trying to correct it with the RasterBandNodataSetter

The palette nodata value '255,255,255,0' of the selected band '1:0' does not match the palette nodata value '112,113,115,39' of the corresponding band in the mosaicked raster

My question:

Is there a way to merge rasters just by merging the RGB colours? 

Best answer by gio

@JeroenR

btw

1st affiner does the scaling and 2nd the translation (moving).

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.

2 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • October 4, 2018

wms-pngraster2none.fmwt

JeroenR

You might first want to affine the png (translate and scale; 2x affines) to your WMS map. (unless you have wld file which belongs to thew png)

On the png use a RasterPaletteResolver (palette will be mapped to rgb bands and a nodata at 255)Remove the nodata (RasterBandNodataRemover)

Now you can Mosaick them. Composite using alpha band.

Here is a way to do it.


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • Best Answer
  • October 4, 2018

@JeroenR

btw

1st affiner does the scaling and 2nd the translation (moving).