There is no direct solution to this problem as per my knowledge. But there
is a workaround that can be used to solve the problem with map.
Do these steps in ArcMap
1) Clip your raster by the boundary using image analysis window.
2) Export the raster in "tif" format with Nodata value = 0
Do these steps in TileMill
3) Open tilemill project. Add the clipping boundary and add this line
in cartocss of boundary:
background-color: #000
4) overlay your raster 3 times individual bands. Add band = 1 in advanced setting then for 2nd time add band = 2, and then band = 3 and add this style:
#red {
raster-scaling:gaussian;
raster-comp-op:plus;
raster-colorizer-default-mode:linear;
raster-colorizer-default-color: transparent;
raster-colorizer-epsilon:0.1;
raster-colorizer-stops:
stop(0,#000)
stop(255,rgb(255,0,0))
}
#green {
raster-scaling:gaussian;
raster-comp-op:plus;
raster-colorizer-default-mode:linear;
raster-colorizer-default-color: transparent;
raster-colorizer-epsilon:0.1;
raster-colorizer-stops:
stop(0,#000)
stop(255,rgb(0,255,0))
}
#blue {
raster-scaling:gaussian;
raster-comp-op:plus;
raster-colorizer-default-mode:linear;
raster-colorizer-default-color: transparent;
raster-colorizer-epsilon:0.1;
raster-colorizer-stops:
stop(0,#000)
stop(255,rgb(0,0,255))
}
It will give you exact results you need.
band=1
as input in the Advanced input area? What happens if you type in CartoCSS the following commandraster-colorizer-default-mode: exact
?