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 Lon Lat pairs) defining a polygon's boundary.

Note Note

The WKT (Well-Known Text) format for coordinates places Longitude first, followed by Latitude, within the geometry definition, as in POINT(longitude latitude) or POLYGON((lon1 lat1, lon2 lat2, ...)) , which aligns with the standard used by the OGC (Open Geospatial Consortium). This order is crucial for geographic coordinate systems to ensure accurate spatial representation.

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)