ee.Algorithms.GeometryConstructors.MultiPolygon

Constructs a MultiPolygon from the given coordinates.

UsageReturns
ee.Algorithms.GeometryConstructors.MultiPolygon(coordinates, crs, geodesic, maxError, evenOdd)Geometry
ArgumentTypeDetails
coordinatesListA list of Polygons, or for one simple polygon, a list of Points or pairs of Numbers in x,y order.
crsProjection, default: nullThe coordinate reference system of the coordinates. The default is the projection of the inputs, where Numbers are assumed to be EPSG:4326.
geodesicBoolean, default: nullIf false, edges are straight in the projection. If true, edges are curved to follow the shortest path on the surface of the Earth. The default is the geodesic state of the inputs, or true if the inputs are numbers.
maxErrorErrorMargin, default: nullMax error when input geometry must be reprojected to an explicitly requested result projection or geodesic state.
evenOddBoolean, default: trueIf true, polygon interiors will be determined by the even/odd rule, where a point is inside if it crosses an odd number of edges to reach a point at infinity. Otherwise polygons use the left-inside rule, where interiors are on the left side of the shell's edges when walking the vertices in the given order.