the reference in which the polygon is defined
Optionalpoints: Point[]an array of Point instances
The polygon with the specified points
Creates a polygon with the specified point coordinates.
The x, y, z elements of point coordinates must be expressed in the given reference.
the reference in which the polygon and point coordinates are defined
OptionalpointCoordinates: PointCoordinates[]an array of PointCoordinates
The polygon with the specified point coordinates
const reference = getReference("EPSG:4979");
const polygon = createPolygon(reference, [[1,1,0],[3,1,0],[3,1,1000],[1,1,1000]);
Creates a polygon with the specified points (Point).