Add tile scripts#5
Conversation
|
Trying to fix it with: |
|
@Robinlovelace where does the |
|
@nikolai-b we have the raw .tifs on our hds here - around 30GB each. |
|
|
|
Does it come from https://github.com/mem48/pct-raster-tests/blob/master/R/rasterise.R#L66 ? In that case it has likely been coloured in https://github.com/mem48/pct-raster-tests/blob/master/R/rasterise.R#L62 . I wanted to just run that script with |
No I'm running GDAL 2.4 from bash. I think the alpha setting, via |
|
Fixed with |
|
Hi guys, I had a good shot at this and am close to a solution. The problem is now easy to debug based on this release: https://github.com/npct/pct-lsoa-vis/releases/download/0.0.1/dutch_slc-10m-merge2-test.tif Reproducible example showing that it's the 255,0,0 value of the 'transparent' area that is the problem: u = "https://github.com/npct/pct-lsoa-vis/releases/download/0.0.1/dutch_slc-10m-merge2-test.tif"
download.file(url = u, destfile = "test.tif")
remotes::install_cran("magick")
#> Skipping install of 'magick' from a cran remote, the SHA1 (2.0) has not changed since last install.
#> Use `force = TRUE` to force installation
library(magick)
#> Linking to ImageMagick 6.9.7.4
#> Enabled features: fontconfig, freetype, fftw, lcms, pango, x11
#> Disabled features: cairo, ghostscript, rsvg, webp
i = image_read("test.tif")
ii_fixed = image_transparent(image = i, color = "red")
i_fixedCreated on 2019-02-28 by the reprex package (v0.2.1) |
|
Heads-up @mem48 and @nikolai-b - see my code to debug this. Plan to try with |
|
But if either of you find a GDAL solution (which I'm sure exists) that would be preferable. |
|
Update: I have another tile set to test. Please can you give this a spin @nikolai-b - not working in the |
|
@nikolai-b apologies for the iterative nature of this but I've finally got a test tileset that I'm confident will work. Please test these (deliberately tiny) tiles: |




No description provided.