I'm using geoserver 2.9.0 to display our orthography. I've managed to get the MrSID file displaying properly however it's very slow. From what i've read to increase the performance I should convert to a GeoTIFF that is tiled and has overviews. My first step is to decode the MrSID file and save it as a geoTIFF. I do that with the following command:
mrsidgeodecode -i Mosaic_10cm_3TM.sid -o Mosaic_10cm_3TM.tif -of tifg -progress timer
*mrsidgeodecode is from lizardtech: https://www.lizardtech.com/gis-tools/tools-and-utilities#hs_cos_wrapper_widget_1460663711843
Here are some samples from the imagery served by geoserver over WMS:
MrSID Building (Original):
GeoTIFF Building (Converted):
MrSID RV Dealer (Original):
http://i.stack.imgur.com/JIbuu.jpg
GeoTIFF RV Dealer (Converted):
http://i.stack.imgur.com/C54es.jpg
Following the decode process I use the following GDAL commands to build the raster into a file that is much more performant:
REM -- Reproject GeoTif from EPSG:3780 to EPSG:3776 (http://www.gdal.org/gdalwarp.html)
gdalwarp -s_srs EPSG:3780 -t_srs EPSG:3776 -r bilinear -multi -wm 4096 -of GTiff Mosaic_10cm_3TM.tif Mosaic_10cm_3TM_EPSG3776.tif
REM -- Tile GeoTif (http://www.gdal.org/gdal_translate.html)
gdal_translate -of GTiff -co TILED=YES -co BIGTIFF=YES Mosaic_10cm_3TM_EPSG3776.tif Mosaic_10cm_3TM_EPSG3776_tiled.tif
REM -- Add Geotif Overviews (http://www.gdal.org/gdaladdo.html)
gdaladdo --config BIGTIFF_OVERVIEW YES --config GDAL_TIFF_OVR_BLOCKSIZE 256 -r gauss Mosaic_10cm_3TM_EPSG3776_tiled.tif 2 4 8 16 32 64
All of these GDAL commands work and create an image that is much more performant but because the decode process creates the colourful artifacts they remain present throughout.
Oddly enough however when I create an ImagePyramid with the following command (using the source that contains the colourful artifacts *created by mrsiddecode):
gdal_retile -v -r bilinear -levels 6 -ps 2048 2048 -targetDir pyramid Mosaic_10cm_3TM.tif
I get an image that is nearly identical to the original MrSID file:
http://i.stack.imgur.com/4aB3T.jpg
Any help removing the colourful artifacts or converting the data in a different way as to not produce the artifacts would be great!