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">http://www.gdal.org/gdalwarp.html</a><br><br>
<div class="gmail_quote">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">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><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
<br>+91-9494447584<br>17.2416N 80.1426E<br>