<div>Thank you Chitanya. </div><div>But it created an output file with two layers (one with the values from original file and another with a 255 for the pixels thar are inside KMZ file: How can I have produce one layer?<br>
</div><div>Thanks</div><div>Luis<br></div><div class="gmail_quote">On Mon, Sep 3, 2012 at 5:10 PM, Chaitanya kumar CH <span dir="ltr"><<a href="mailto:chaitanya.ch@gmail.com" target="_blank">chaitanya.ch@gmail.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">Luis,<br><br>gdalwarp has some options for this exact purpose.<br>
The cutline can be from any of the OGR readable datasource.<br><br><a href="http://www.gdal.org/gdalwarp.html" target="_blank">http://www.gdal.org/gdalwarp.html</a><br><br>
<div class="gmail_quote"><div><div class="h5">On Mon, Sep 3, 2012 at 9:34 PM, Luis Lisboa <span dir="ltr"><<a href="mailto:luislisboa1975@gmail.com" target="_blank">luislisboa1975@gmail.com</a>></span> wrote:<br></div>
</div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><div class="h5">
<div>Greetings</div><div>I have a raster file (Geotiff) and I have a KML file with a polygon and I want to cut raster map to only have valid values inside the polygon. How can I do this using just GDAL?</div><div> </div>
<div>
Usually I used to cut geotiff file with gdalwarp and but in those cases I was cutting a square (xmin xmax ymin ymax) and in this case is a more complex polygon</div><div> </div><div>Thanks</div><div>Regards,</div><div>Luis</div>
<br></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br>
<br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
<br><a href="tel:%2B91-9494447584" target="_blank" value="+919494447584">+91-9494447584</a><br>17.2416N 80.1426E<br>
</font></span></blockquote></div><br>