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

Peter Willis pwillis at aslenv.com
Wed Oct 17 15:33:47 PDT 2012


Hello,

 

I was using gdal_rasterize  directly rather than  gdal_polygonize.py .

.No  gdal_poygonize.py found for my revision..

 

I was forgetful of -formats via gdalinfo.  This shows rw+ for ENVI format
which is what I need.

Upon looking I find that I have already installed revision 1.9 in another
/usr/local directory.

Perhaps I should use the more recent revision for attempting this.

 

Thanks for the pointers,

 

Peter

 

 

 

From: fwarmerdam at gmail.com [mailto:fwarmerdam at gmail.com] On Behalf Of Frank
Warmerdam
Sent: October-17-12 3:22 PM
To: Peter Willis
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] Using gdal_rasterize to mask ENVI file Using ESRI
SHP format Vector

 

Peter,

 

I'm guessing you are using the gdal_polygonize.py script

for masking.  Is that right?  I am not aware of any particular

reason this shouldn't work for any "update in place" format

(ie. shows "rw+" in the gdalinfo --formats list).  ENVI is in

this list. 

 

BTW, before we do a lot of work to investigate this you might

want to see if the problem persists with GDAL 1.9.  GDAL 1.6.3

is getting pretty antique.

 

Best regards,

Frank

 

On Wed, Oct 17, 2012 at 2:59 PM, Peter Willis <pwillis at aslenv.com> wrote:

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





 

-- 
---------------------------------------+------------------------------------
--
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    | Geospatial Software Developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121017/ece71822/attachment.html>


More information about the gdal-dev mailing list