[gdal-dev] updates on masking raster data

John C. Tull john.tull at wildnevada.org
Sat May 3 11:40:35 EDT 2008


Dylan,

If you work out an efficient approach to this problem, I would  
appreciate hearing about your solution. This is a common problem for  
many people, I suspect.

Cheers,
John

On May 2, 2008, at 3:54 PM, Dylan Beaudette wrote:

> On Friday 02 May 2008, Frank Warmerdam wrote:
>> Dylan Beaudette wrote:
>>> anyone know if there has been any work related to this ticket:
>>>
>>> http://trac.osgeo.org/gdal/ticket/1599
>>>
>>> I was hoping to mask out a large section of raster data while  
>>> warping, or
>>> possibly in a second-pass with gdal_translate or the like.
>>
>> Dylan,
>>
>> gdal_rasterize can mask off areas of a raster inside or outside of a
>> polygon. Other than that, nothing has been done to the best of my
>> knowledge.
>>
>> Best regards.
>
> thanks for the tip Frank. I actually need to "clip" out (or apply a  
> positive
> mask when translating) a single state's worth of data, from a grid  
> that
> encompasses the Continental US. I was hoping there was a purely GDAL- 
> way to
> do this... without having to resort to GRASS for the raster  
> clipping. Perhaps
> there is a way to do this in python+GDAL...
>
> Cheers,
>
> Dylan
>
> -- 
> Dylan Beaudette
> Soil Resource Laboratory
> http://casoilresource.lawr.ucdavis.edu/
> University of California at Davis
> 530.754.7341
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev



More information about the gdal-dev mailing list