Apply View Mask

Use the Map Tools > Masking > Apply View Mask option (VIEWCLIP GX) to set the clip area of a view using a polygon mask file.

Apply View Mask dialog options

Clip polygon file (.ply)

Specify the polygon file used to define the clip (mask) area.

Script Parameter: VIEWCLIP.FILE

Map view

Select the map view to which the clip mask will be applied.

Options may include Data, Base, or other available views (for example, Section).

Script Parameter: VIEWCLIP.VIEW

Clip all groups

Choose whether to apply the clip mask to all groups in the selected view.

Script Parameter: VIEWCLIP.FORCE [0 : No, 1 : Yes (default)]

Application Notes

After changing the view clip area, individual groups within the view can be clipped to the defined limits by enabling their clip attributes. To do this, select the group, right-click, and choose the Clipped option from the pop-up menu.

Polygon Mask Files

  • Polygon files are ASCII text files with the default .ply extension.

  • Each file contains a list of X,Y coordinates that define one or more polygons.

  • Files can include any number of polygons, each with any number of vertices.

  • The first and last points of each polygon are assumed to be connected.

File Structure Guidelines:

  • Each polygon begins with a line starting with poly # (with P or p in column 1).

  • Comment lines begin with / in column 1.

Creating Polygons Interactively

You can create clip polygon files interactively using the digitising tools available in the Map Tools menu.

Example: Single Polygon File

/

/ Sample single polygon file

/----------------------------

poly 1

1376027.6061 6178025.9399

1382846.3129 6178025.9399

1382846.3129 6182748.8182

1376027.6061 6182748.8182

1376027.6061 6178025.9399

Example: Multiple Polygon File

(Note: The keyword exclusive following a polygon entry, such as poly 3, indicates exclusive regions or holes within a polygon set.)

/

/ Sample three polygon file

/---------------------------

poly 1

1375594.6724 6181961.6718

1378706.3838 6181961.6718

1378706.3838 6184716.6842

1375594.6724 6184716.6842

1375594.6724 6181961.6718

poly 2

1375757.0225 6178629.4188

1379896.9516 6178629.4188

1379896.9516 6181174.5254

1375757.0225 6181174.5254

1375757.0225 6178629.4188

poly 3

exclusive

1380546.3523 6175926.8828

1384550.9896 6175926.8828

1384550.9896 6179022.992

1380546.3523 6179022.992

1380546.3523 6175926.8828