X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 04 Feb 2020 12:35 PM by  Paul Manley
Storing shapefile attributes in an ROI
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Paul Manley



New Member


Posts:8
New Member


--
04 Feb 2020 09:27 AM
    Hello,

    I have a shapefile that has an attribute table for some agricultural plots (genotype, height, photosynthesis, etc). I want to embed that information into a hyperspectral/thermal/canopy height model raster that has been made with layer stacking. I figured the shapefile needs to be converted from a .shp to an ROI and then make a classification image that can be stacked. However, when I convert the shapefile, the ROI doesn't appear to keep the values of the attributes, just the column name (e.g. genotype). It doesn't seem to matter which way I create the ROIs either (all records to single ROI, each record to separate ROI, and so on). I even tried breaking down the shapefile so that there was only one column instead of multiple.

    I hope that makes sense. Is there a way to keep the attribute table in the ROI?


    Thanks,

    Paul

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    04 Feb 2020 12:28 PM
    No, ENVI does not have a tool to do this but it would be pretty cool. ROIs don't store attribute information like a vector. I think you would need to open your vector layer in ENVI, then use Vector to ROI->Unique records of an attribute to separate ROIs and save the new ROIs for each attribute. Then you could export the ROI to a classification image which could be stacked with other rasters.

    Paul Manley



    New Member


    Posts:8
    New Member


    --
    04 Feb 2020 12:35 PM
    Yes it would be cool...haha.

    Yeah, I ended up saving each attribute in its own shapefile and going from there. I wish I worked at Harris to try and have some of these things implemented! Some of the things I try to do are unique, especially since I'm working with hyper data and not satellites. But I know I'm not alone!
    You are not authorized to post a reply.