Edit Legend


The Edit Legend tool can be used in both vector and raster data. The basic principle of this type of classification is grouping the data following the logic of some selected method.

It is accessible through:

    Layer Explorer >  Right Click over a Layer-name > Edit Legend...

   Layer > Edit Legend...

The interface shows specific parameters depending on the data type chosen, 
Vector  or  Raster.

Vector 

The available methods in TerraLib are: The parameters necessary to create a Legend are grouped in frames at the interface.  See the details bellow.

Frame 1 - Import Layer Grouping - Check this box to import  the parameters used to generate a legend in other layer. 
  1. Layer - select the layer from where to import the parameters used to generate the Legend. It might not be possible to import any of them.
  2. Press Import

Frame 2 -  Parameters 
  1. Type - Select the method of classification (unique value, equal steps, quantil) to be used to generate the legend.
  2. Attribute - Select the attribute to be used in the classification. The attributes listed may vary depending on selected method of classification.
  3. A summary function may be chosen if the classification is being generated based on a linked dataset, otherwise this function is not visible.
  4. Slices - Set the number of slices to be created by this classification.
  5. Precision - Sets the precision value.
  6. Standard Deviation -   
  7. Color  Bar - Set the color ramp as explained here.
  8. Press Apply to show the Legend Frame with the slices identified by Symbol, Title, Mim, Max, Count
  9. Press OK to generate the Legend with these parameters or change the parameters and apply again.
The result of classification by region over Brazil states, using Unique Value type, is showed bellow.
      


Raster

The available methods in TerraLib are:
The parameters necessary to execute the Classification are grouped in frames at the interface.  See the details bellow.

Frame 1 - Import Layer Grouping - Check this box to eventually use the same parameters used to generate a legend in other layer
  1. Layer - select the layer from where to import the parameters of classification. It might not be possible to import any of them.
  2. Press Import.

Frame 2 - Parameters
  1. Band - Select which band will be classified.
  2. Minimum Value - Set the minimum value (the suggested value is get from the selected band).
  3. Maximum Value -  Set the maximum value  (the suggested value is get from the selected band).
  4. Transformation - Select the method for classification (categorize or interpolation).
  5. Slices - Set the number of slices to be created in the classification.
  6. Type - Defines how data is classified.
  7. Color  Bar - Set the color ramp as explained here.
      1. Catalog - 
      2. Group -  
      3. Schema
  8. Press Apply to show the Color Map with the slices identified by Color, From and To
  9. Press OK to generate the Legend with these parameters or change the parameters and apply again.
The figures bellow show a original image in color composition, band-0 and the results of classification.

RGB-012                                                       BAND-0
     


The Legend created when  using Categorize method with default parameters and 6 slices.



The Legend created when using Interpolation method with default parameters and 6 slices.