Howdy, community!
I'm not sure which board (IDL or ENVI) this post should go in, but I'm going to try IDL first, since I'm using an ENVI function in an IDL program.
My problem is basically this: I've opened an EVF file which consists of a contour polygon. This polygon needs to be solidly filled programmatically, and I've done that. Now, I'm ready to put this polygon back into an EVF file and convert it to a shapefile. Problem is, I'm very new to IDL / ENVI / Image Processing.
The current method I'm using to do this is:
evf_ptr = ENVI_EVF_DEFINE_INIT('TestEVF.evf', $
layer_name='EVF Output Test')
if (ptr_valid(evf_ptr) eq 0) then print, 'evf creation failed'
ENVI_EVF_DEFINE_ADD_RECORD, evf_ptr, filled_poly
my_evf = ENVI_EVF_DEFINE_CLOSE(evf_ptr, /return_id)
ENVI_EVF_CLOSE, my_evf
This yields an error upon running. Specifically:
% Compiled module: FILL_POLYGON.
% Attempt to subscript STACK with is out of range.
% Execution halted at: EVF_WRITE_RECORD
% ENVI_EVF_DEFINE_ADD_RECORD
I simply don't know how I would deal with an array subscripting error in this instance, especially with IDL. Any help would be greatly appreciated.
|