X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 06 Mar 2017 10:58 AM by  anon
ClassificationToVector tool
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:24
New Member


--
06 Mar 2017 10:58 AM
    Hi all, I need to convert a classification output to a vector file using envi api. First of all, I am studying the workflow using ENVI: Select the ClassificationToVector post classification tool Choose the class layer and the class value to convert into shapefile Save as myshape.evf Select the Classic EVF to Shapefile tool Choose as input tje myshape.evf and save as myshape.shp The shapefile, created with the workflows above, has the following properties: n polygons, one for each cluster defined by the classification raster these fields: Class_Name, Class_Id, Parts, Length, Area Well, the fields are exactly what i am looking for, but I need only one polygon (with total area inside the Area field). Any suggestion, also about the respective ENVI API functions? I am thinking about the ENVI "ClassificationToShapefile" Task.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    06 Mar 2017 01:27 PM
    Both the ClassificationToShapefile Task and RTV_DOIT (from ENVI Classic) will create one vector file per class (or range of values). Not sure if there is a way to create only one polygon per class output since you can have isolated values and holes within polygons which is entirely dependent on how the pixels were classified. You will probably need to calculate the total area from the attributes. You could also calculate Class Statistics on the image, find the number of pixels in the class and multiply by the pixel size.
    You are not authorized to post a reply.