ee.Geometry.MultiLineString
Constructs an ee.Geometry describing a MultiLineString.
For convenience, varargs may be used when all arguments are numbers. This allows creating geodesic EPSG:4326 MultiLineStrings with a single LineString, given an even number of arguments, e.g. ee.Geometry.MultiLineString(aLng, aLat, bLng, bLat, ...).
Usage | Returns |
---|
ee.Geometry.MultiLineString(coords, proj, geodesic, maxError) | Geometry.MultiLineString |
Argument | Type | Details |
---|
coords | List | A list of linestrings. May be a list of coordinates in the GeoJSON
'MultiLineString' format, a list of at least two ee.Geometry objects describing a LineString, or a list of numbers defining a single linestring. |
proj | Projection, optional | The projection of this geometry. If unspecified, the default is the projection of the input ee.Geometry, or EPSG:4326 if there are no ee.Geometry inputs. |
geodesic | Boolean, optional | 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, optional | 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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Creates a MultiLineString geometry, representing a collection of linestrings."],["Accepts linestrings defined by coordinates, ee.Geometry objects, or even numbers for a single geodesic EPSG:4326 linestring."],["Allows customization of projection, geodesic behavior, and error margin for reprojection."],["Defaults to EPSG:4326 projection and geodesic edges if unspecified but infers from inputs when possible."]]],[]]