logo       

Re: image subsetting for arbitrary polygon: msg#00125

gis.gdal.devel

Subject: Re: image subsetting for arbitrary polygon

Xiaodong Zhang wrote:
Hi,

Does anybody know of an open source code for subsetting an image with an area of interest of arbitrary shape. I know GDAL utility offers one function for subsetting an image by a rectangle. Thanks

Xiaodong

Hi,

I am not aware of any such utility. By arbitrary I assume you mean produce
a rectangular output file, but mask all data outside some polygon or set of
polygons?

Such a thing could be implemented in python using the openev polygon
rasterization and GDAL builtins, but it wouldn't be exactly trivial. :-)

Best regards,


--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@xxxxxxxxx
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise