Mask Channel to Polygon
Use the Database Tools > Window Data > Mask Channel to Polygon menu option (POLYMASK GX) to mask a channel in the database against one or more polygons defined in a polygon file. Data points inside or outside the polygons will be dummied in the reference channel.
Mask Channel to Polygon dialog options
|
Input X channel |
Input X Channel Name. Script Parameter: POLYMASK.INX |
|
Input Y channel |
Input Y Channel Name. Script Parameter: POLYMASK.INY |
|
Polygon file |
Input polygon file. Script Parameter: POLYMASK.FILE |
|
Channel to mask |
Channel to mask. If the channel does not exist, it is created with the class type "MASK". Script Parameter: POLYMASK.CHAN |
|
Dummy inside or outside |
"INSIDE" data inside polygons is dummied. "OUTSIDE" data outside polygons is dummied. Script Parameter: POLYMASK.DUMMY |
Application Notes
If the channel to be masked does not exist, it is created as a "MASK" class channel with an integer type and initialized to "1" before the masking is performed.
If the channel exists already, then no initialization is performed. Instead, the masking operation will reset only those values which fall inside or outside the polygon (as defined above) to dummy, and the remaining values remain unchanged.
Polygon Mask Files
-
Polygon files are ASCII text files with the default .ply extension.
-
Each file contains a list of X,Y coordinates defining 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
porPin column 1). -
Comment lines begin with / in column 1.
Creating Polygons Interactively
You can also create clip polygon files interactively using the digitising tools available in the Map Tools menu.
Example of a 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
Following is an example of a three polygon file:
/ / 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
1380546.3523 6175926.8828
1384550.9896 6175926.8828
1384550.9896 6179022.992
1380546.3523 6179022.992
1380546.3523 6175926.8828
Got a question? Visit the Seequent forums or Seequent support
Copyright (c) 2025 Bentley Systems, Incorporated. All rights reserved.
Privacy | Terms of Use
