Polygon data type |
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.
![]() |
---|
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. |
This data type must be a WKT string not greater than 10 MB.
In the [Output] section, there are no units to covert:
[Output] Shape(wkt) = input.Shape
When you use the optional [Script] section to insert your own JavaScript functions, Polygon data maps to a Custom Polygon object:
new Polygon({WKT: "POLYGON ((30 10, 10 20, 20 40, 40 40, 30 10))"})
WKT (get)