Try gdalwarp (http://www.gdal.org/gdalwarp.html) with the -cutline argument.

gdalwarp -of envi -cutline shapefile.shp multibandenvi.dat croppedoutput.dat

Luke


-----Original Message-----
From: gdal-dev-boun...@lists.osgeo.org 
[mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Peter Willis
Sent: Thursday, 18 October 2012 8:59 AM
To: gdal-dev@lists.osgeo.org
Subject: [gdal-dev] Using gdal_rasterize to mask ENVI file Using ESRI SHP 
format Vector

Hello,

Is it possible to use ESRI SHP polygon file to mask ENVI  BSQ img format files 
with more than 1 band?

I can mask a GTiff file using the SHP but ENVI file does not appear to work.  
Gdal version is  1.6.3 .

The documentation appears unclear for any raster that is not specifically GTiff.

Thanks,

Peter

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

If you have received this transmission in error please notify us immediately by 
return e-mail and delete all copies. If this e-mail or any attachments have 
been sent to you in error, that error does not constitute waiver of any 
confidentiality, privilege or copyright in respect of information in the e-mail 
or attachments.

Please consider the environment before printing this email.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to