<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Times New Roman, Times, serif">That would be an option.
Am I right that the datasource of the -cutline option is a closed
polygon, and that everything outside the polygon will be clipped?<br>
<br>
However, I would prefer not to add extra steps. These are large
maps and there are lots of them (about 17.000 for the whole of the
Netherlands). It takes a lot of organisation to georeference them
and display them efficiently over the web. Every additional
processing step is a potential source of problems. So, although I
am happy there is at least a workable solution, do you know what
is happening here, and whether these artifacts can be prevented?<br>
</font><br>
<div class="moz-cite-prefix">On 12/27/2012 01:44 PM, Dmitry
Baryshnikov wrote:<br>
</div>
<blockquote cite="mid:50DC42AB.40202@gmail.com" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div class="moz-cite-prefix">Hi Jan,<br>
<br>
You can cut result raster with the geometry (shape file) using
gdalwarp with cutline option (<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://gdal.org/gdalwarp.html">http://gdal.org/gdalwarp.html</a>).<br>
<br>
Best regards,<br>
Dmitry<br>
<br>
27.12.2012 16:38, Jan Hartmann пишет:<br>
</div>
<blockquote cite="mid:50DC415A.30401@uva.nl" type="cite"> <font
face="Times New Roman, Times, serif">Can anyone tell me wath
is happening here? I have a large three-band raster (3.8G)
looking like this:</font><br>
<br>
<font face="Times New Roman, Times, serif"><a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://mapserver.sara.nl/map2a.png">http://mapserver.sara.nl/map2a.png</a></font><br>
<br>
<font face="Times New Roman, Times, serif">I compress it (from
information from this list a few days ago) with:<br>
<br>
gdal_translate -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR big.tif
small.tif<br>
gdaladdo --config COMPRESS_OVERVIEW JPEG --config
PHOTOMETRIC_OVERVIEW YCBCR -ro -r gauss small.tif 2 4 8 16 32
64<br>
<br>
and get a file of 37M, which is nice. However, the map has all
kinds of rubbish at the borders. It looks like this:<br>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://mapserver.sara.nl/map2b.png">http://mapserver.sara.nl/map2b.png</a><br>
<br>
The equivalent pictures of a small part of the map look like
this:<br>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://mapserver.sara.nl/map1a.png">http://mapserver.sara.nl/map1a.png</a><br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://mapserver.sara.nl/map1b.png">http://mapserver.sara.nl/map1b.png</a>
<br>
<br>
Can anyone help me?<br>
<br>
Jan<br>
</font> <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br>
</body>
</html>