[gdal-dev] Using gdal_rasterize to mask ENVI file Using ESRI SHP format Vector [SEC=UNCLASSIFIED]

Pinner, Luke Luke.Pinner at environment.gov.au
Wed Oct 17 15:24:30 PDT 2012


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-bounces at lists.osgeo.org [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Peter Willis
Sent: Thursday, 18 October 2012 8:59 AM
To: gdal-dev at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121017/42355cc6/attachment.html>


More information about the gdal-dev mailing list