[gdal-dev] Mask and GEOTiff

Chaitanya kumar CH chaitanya.ch at gmail.com
Thu Apr 28 05:15:18 EDT 2011


Alessandro,

You can combine the tiff and the mask using GDAL's VRT format or by using
the -separate option in gdal_merge.py script. The extra band should be set
as a nodata mask or alpha band.

http://www.gdal.org/gdal_vrttut.html
http://www.gdal.org/gdalbuildvrt.html

http://www.gdal.org/gdal_merge.html

On Thu, Apr 28, 2011 at 1:00 PM, canduc17 <candini at meeo.it> wrote:

> Hi everyone.
>
> Is there a way to crop a GEOTiff image using a Mask of the same dimension?
>
> For example, a mask with a filled circle: every pixel inside the circle is
> 1
> and the others are 0.
> I would like to obtain a new GEOTiff with only the pixel inside the circle
> visible and the other set to 0.
>
> Is that possible with tools like gdal_translate or other ones?
>
> Thanks in advance!
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Mask-and-GEOTiff-tp6312284p6312284.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110428/022e1ccd/attachment.html


More information about the gdal-dev mailing list