Window X ,Y to Polygon Mask

Use the Database Tools > Window Data > Window X ,Y to Polygon Mask menu option (WINXY GX) to mask the X and Y channels to the area defined by a polygonal mask file. This enables all map-based processing that follows to only use the data within the defined region.

Window X ,Y to Polygon Mask dialog options

Mask polygon file

Specify the ASCII file defining polygon masks.

Script Parameter: WINXY.MASK

Dummy inside or outside

Indicate whether you want to dummy inside or outside of the polygon mask area.

Script Parameter: WINXY.DUMMY

Application Notes

This GX is used to limit the X and Y coordinates to the part of the area to be plotted. All MAP based processes will use the X and Y channels as the plotting coordinates. By dummying those parts of the area outside the area of interest, all plotting will be restricted to the defined area.

A copy of the original X and Y channels are saved to channels "__X" and "__Y" (if they do not already exist). Subsequent windowing operations will use these channels as the source channels. (If running interactively, a warning message is displayed asking whether you wish to overwrite the backup channels).

Polygons are ASCII files with default extension .ply. A polygon file contains a list of X,Y coordinates that define one or more polygons. The file may contain any number of polygons, and each polygon may have any number of vertices. The first and last points in each polygon are assumed to connect. If the file will contain more than one polygon, each polygon must start with a line 'poly #' ('p' or 'P' in column 1). Comment lines are indicated by a '/' in column 1.

Clip polygon files may also be generated interactively by using the digitising tools in the Map Tools menu.

Example of a 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

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