[FWTools] Tools to clip a MrSid Image

Frank Warmerdam warmerdam at pobox.com
Thu Aug 17 17:29:57 EDT 2006


Jim Fritz wrote:
> Is there a FW tool that will cilp a MrSid image??

Jim,

Clip in what regard?

You can use gdal_translate to pull out a subarea of a MrSID image.

eg.

gdal_translate -srcwin 0 0 1000 1000 in.sid out.tif

That would take the top left 1000x1000 chunk.

Or you can use the -projwin parameter to pick a region in georeferenced
coordinates.  There is also a gdal_rasterize command that can be used to
mask stuff based on a polygon but that is more involved.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org



More information about the FWTools mailing list