X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



4143 Rate this article:
No rating

Adding user-defined plotting symbols to ENVI for vector point coverages

ENVI provides 9 different plotting symbols that you can use to display vector point coverages (for example squares, triangles, plus signs, etc.). You can easily add to this list by defining your own plotting symbols.

In ENVI's
menu directory (which is under the main ENVI directory), you will find the file usersym.txt. This file contains all of the user defined plot symbols. One symbol definition is provided as an example, the Flag symbol (the other 8 symbols are built-in):

      Flag = {0, .1, 0, 1.5625, .725, 1.25, 0, .9375, 0, 1.0625, .44, 1.25, 0, 1.4375}

The symbols are vector-drawn and the points that define the symbol (as a polyline or polygon) are simply listed in order as (x,y) pairs, separated by commas, and enclosed in curly brackets:


      user_symbol = { x1, y1, x2, y2, x3, y3, ... xn , yn }

The vector points do not need to be normalized to one. For example, here is the definition for a star symbol that was defined by freehand drawing a star over a 5x5 cell grid:

 

      star ={1.5, 0.5, 2, 2.2, 1, 3.5, 2.2, 3, 2.5, 4.5, 2.75, 3, 4, 4, 3.25,
         2.5, 3.75, 1, 2.5, 1.5, 1.5, 0.5}

The first point is (1.5, 0.5), the second point (2, 2.2), etc. Also, you can have line breaks at any point on the line that defines the symbol. For example, the following definition for the star would also work:


      star = {
         1.50, 0.50,
         2.00, 2.20,
         1.00, 3.50,
         2.20, 3.00,
         2.50, 4.50,
         2.75, 3.00,
         4.00, 4.00,
         3.25, 2.50,
         3.75, 1.00,
         2.50, 1.50,
         1.50, 0.50
      }

After you have edited the
usersym.txt file, remember to save it and restart ENVI, then your new symbols should appear as options when you edit a vector layer.

Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »