Click or drag to resize
Polygon data type
Print this page

The data type Polygon represents a WKT (Well Known Text) definition, which is a set of points (in Lat Lon pairs) defining a polygon's boundary.

Units and field length

This data type must be a WKT string not greater than 10 MB.

Usage

In the [Output] section, there are no units to covert:

[Output]
Shape(wkt) = input.Shape
JavaScript conversion

When you use the optional [Script] section to insert your own JavaScript functions, Polygon data maps to a Custom Polygon object:

Constructor
JavaScript
new Polygon({WKT: "POLYGON ((30 10, 10 20, 20 40, 40 40, 30 10))"})
Available fields for (get,set)

WKT (get)