I solved with the following workflow:
open vector
use VectorAttributeToROIs to produce a roiFile.xml
open the roiFile.xml ---> rois = e.OpenRoi(xmlFile)
open raster
use the command: my_raster.ExportRois, fileroi, rois, 'Classic'
I am discovering the potential of ENVI+IDL.
Two more questions:
Is it possible from IDL command line executing both ENVI and ENVI classic metods?
Can every command (that correctly works if launched from idl command) be execute using the idlpy library with the sintax IDL.run('instruction')?
|