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
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to