ee.Algorithms.GeometryConstructors.LineString
Constructs a LineString from the given coordinates.
Usage | Returns |
---|
ee.Algorithms.GeometryConstructors.LineString(coordinates, crs, geodesic) | Geometry |
Argument | Type | Details |
---|
coordinates | List | 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. |
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 LineString geometry from a list of coordinates."],["Accepts coordinates as either Points or coordinate pairs (x,y)."],["Allows specifying the coordinate reference system (CRS) for the LineString, defaulting to EPSG:4326 if not provided."],["Enables creating geodesic or planar LineStrings by setting the 'geodesic' parameter, defaulting to true if the input is numerical coordinates."]]],[]]