By specifying a mask, you can search for points, segments or polygons with a certain class name, ID or value. A mask is in fact a simple query to find (retrieve), display or use only those points, segments or polygons in a map that have certain class names, identifiers or values. A mask contains one or more search strings in which wild cards, asterisks (*) and question marks (?), are allowed. You can enter as many search strings in a mask as you like; separate the strings by commas.
When you specify a mask in the Display Options dialog box of a point, segment or polygon map, then only those points, segments or polygons in the map of which the class name, identifier or value matches one of the strings specified in the mask are displayed in a map window.
Further, in many Vector Operations a mask can be used to selectively copy or use points, segments or polygons with certain class names, identifiers or values from an input map into an output map. Only those points, segments or polygons of the input map of which the class name, identifier or value matches one of the strings listed in the mask are copied to the output map.
Mask syntax:
Example of using a mask on a map with a class domain:
Consider the domain Landuse with its class codes as presented below.
Code |
Class Name |
Fb |
Secondary forest, shrubland, bushland |
Fp |
Primary forest |
G |
Grazing |
H |
Homestead gardens |
P |
Fish ponds |
Pi |
Paddy rice irrigated |
Pr |
Paddy rice rainfed |
Tu |
Tree crops and upland field crops |
U |
Upland field crops |
Ut |
Upland fields crops and tree crops |
W |
Waterbody |
Mask: |
Retrieves: |
Fp |
Fp |
Grazing |
G |
upland* |
U, Ut |
*tree* |
Tu, Ut |
? |
G, H, P, U, W |
*forest* |
Fb, Fp |
F? |
Fb, Fp |
F* |
Fb, Fp, P |
*rice* |
Pi, Pr |
P? |
Pi, Pr |
P, P? |
P, Pi, Pr |
P* |
P, Pi, Pr, Fb |
*u* |
Tu, U, Ut, Fb |
Example using a mask on a map with a value domain:
Suppose you have a segment map with contour lines between 3000 and 4500m and the segment map has a precision of 1.
Mask: |
Retrieves: |
3000 |
contour lines with value 3000 |
3*,4000 |
all contour lines between 3000 and 4000m |
30*,31* |
all contour lines between 3000 and 3199m |
*00 |
all contour lines ending on 00, thus 3000, 3100, 3200, etc. |
If the segment map uses a precision of 0.01 and you want to retrieve segments with value 3000, you need to specify in the mask "3000.00". Similarly, to retrieve all 100m contour lines, use a mask of "*00.00".
Another example to display contour lines:
Suppose you have a segment map with contour lines between 3000 and 4500m, at every 10m (precision of the map is 1). Goal: display the contour lines 3000, 3100, 3200, etc. in one color, and all contour lines with values like 3050, 3150, 3250, etc. in another color and all remaining contour lines in another color.
See also: