ee.Algorithms.GeometryConstructors.MultiLineString
Constructs a MultiLineString from the given coordinates.
Usage | Returns |
---|
ee.Algorithms.GeometryConstructors.MultiLineString(coordinates, crs, geodesic, maxError) | Geometry |
Argument | Type | Details |
---|
coordinates | List | The list of LineStrings, or to wrap a single LineString, the list of Points or pairs of Numbers in x,y order. |
crs | Projection, default: null | The coordinate reference system of the coordinates. The default is the projection of the inputs, where Numbers are assumed to be EPSG:4326. |
geodesic | Boolean, default: null | If 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. |
maxError | ErrorMargin, default: null | Max error when input geometry must be reprojected to an explicitly requested result projection or geodesic state. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Creates a MultiLineString geometry from a list of LineStrings or Points."],["Accepts `coordinates`, `crs`, `geodesic`, and `maxError` as inputs to define the MultiLineString."],["The `crs` parameter specifies the coordinate reference system, defaulting to EPSG:4326 if numbers are provided."],["The `geodesic` parameter determines if edges are straight or follow the Earth's curvature, with a default based on input type."]]],["The function `MultiLineString` creates a geometry object from a list of coordinates. It takes `coordinates` defining the LineStrings, and optionally, the `crs` (coordinate reference system), `geodesic` (true for curved edges, false for straight), and `maxError` (for reprojection errors). The function returns a `Geometry` object representing the constructed MultiLineString. `coordinates` can be a list of LineStrings, points or a list of number pairs in x,y order.\n"]]