Window a Grid using a Polygon File
Use the Grid and Image > Window a Grid using Polygon File (GRIDMASK GX) option to mask a grid using coordinates defined in a polygon (PLY) file. The polygon coordinates are interpreted in the coordinate system of the input grid. Depending on the selected option, areas of the grid inside or outside the polygon are masked (i.e., replaced with dummy values).
Window a Grid using Polygon File dialog options
Application Notes
Use this GX to replace grid values inside or outside a defined polygon with dummy values. Dummied areas are displayed as blank (white) space when the grid is rendered.
The masking polygon may be defined in either a clockwise or counter-clockwise sense, and it may contain up to 2048 vertices. There may be more than one polygon defined in a polygon file. The masking process is applied to all polygons defined in the file.
Edge Behavior
-
Mask OUTSIDE: grid nodes on the polygon boundary are retained (not masked).
-
Mask INSIDE: grid nodes on the polygon boundary are masked (set to dummy values).
Dummy Values
When Clip output grid to polygon boundary? is set to No, the output grid retains the full spatial extent of the input grid.
Cells inside or outside the polygon are set to dummy values and appear as blank (white) regions when displayed. This is expected behavior and does not indicate missing or corrupt data.
Example:
This example uses MASK.PLY to mask the grid TST.GRD. With the mask option set to OUTSIDE, all regions outside the polygon are replaced with dummy values, producing the output grid MTST.GRD.
To mask a simple rectangular area, the file MASK.PLY might contain coordinates such as:
435, 300
520, 300
520, 550
435, 550
The polygon is automatically closed by connecting the final vertex to the first.
Got a question? Visit the Seequent forums or Seequent support
Copyright (c) 2026 Bentley Systems, Incorporated. All rights reserved.
Privacy | Terms of Use
