[gdal-dev] Compression artifacts

Dmitry Baryshnikov bishop.dev at gmail.com
Thu Dec 27 04:44:27 PST 2012


Hi Jan,

You can cut result raster with the geometry (shape file) using gdalwarp 
with cutline option (http://gdal.org/gdalwarp.html).

Best regards,
     Dmitry

27.12.2012 16:38, Jan Hartmann ?????:
> Can anyone tell me wath is happening here? I have a large three-band 
> raster (3.8G) looking like this:
>
> http://mapserver.sara.nl/map2a.png
>
> I compress it (from information from this list a few days ago) with:
>
> gdal_translate -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR big.tif small.tif
> gdaladdo --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW 
> YCBCR -ro -r gauss small.tif 2 4 8 16 32 64
>
> and get a file of 37M, which is nice. However, the map has all kinds 
> of rubbish at the borders. It looks like this:
>
> http://mapserver.sara.nl/map2b.png
>
> The equivalent pictures of a small part of the map look like this:
>
> http://mapserver.sara.nl/map1a.png
> http://mapserver.sara.nl/map1b.png
>
> Can anyone help me?
>
> Jan
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121227/8c5dd49b/attachment.html>


More information about the gdal-dev mailing list