Constructs an ee.Geometry describing a LineString. Args: coords: A list of at least two points. May be a list of coordinates in the GeoJSON 'LineString' format, a list of at least two ee.Geometry objects describing a point, or a list of at least four numbers
(
coords=_UNSPECIFIED,
proj=_UNSPECIFIED,
geodesic=_UNSPECIFIED,
maxError=_UNSPECIFIED, # pylint: disable=g-bad-name
*args,
)
| 396 | # pylint: disable=keyword-arg-before-vararg |
| 397 | @staticmethod |
| 398 | def LineString( |
| 399 | coords=_UNSPECIFIED, |
| 400 | proj=_UNSPECIFIED, |
| 401 | geodesic=_UNSPECIFIED, |
| 402 | maxError=_UNSPECIFIED, # pylint: disable=g-bad-name |
| 403 | *args, |
| 404 | ) -> Geometry: |
| 405 | """Constructs an ee.Geometry describing a LineString. |
| 406 | |
| 407 | Args: |
| 408 | coords: A list of at least two points. May be a list of coordinates in |
| 409 | the GeoJSON 'LineString' format, a list of at least two ee.Geometry |
| 410 | objects describing a point, or a list of at least four numbers |
| 411 | defining the [x,y] coordinates of at least two points. |
| 412 | proj: The projection of this geometry. If unspecified, the default is the |
| 413 | projection of the input ee.Geometry, or EPSG:4326 if there are no |
| 414 | ee.Geometry inputs. |
| 415 | geodesic: If false, edges are straight in the projection. If true, edges |
| 416 | are curved to follow the shortest path on the surface of the Earth. |
| 417 | The default is the geodesic state of the inputs, or true if the |
| 418 | inputs are numbers. |
| 419 | maxError: Max error when input geometry must be reprojected to an |
| 420 | explicitly requested result projection or geodesic state. |
| 421 | *args: For convenience, varargs may be used when all arguments are |
| 422 | numbers. This allows creating geodesic EPSG:4326 LineStrings given |
| 423 | an even number of arguments, e.g., |
| 424 | ee.Geometry.LineString(aLng, aLat, bLng, bLat, ...). |
| 425 | |
| 426 | Returns: |
| 427 | An ee.Geometry describing a LineString. |
| 428 | """ |
| 429 | all_args = Geometry._GetArgs((coords, proj, geodesic, maxError) + args) |
| 430 | return Geometry(Geometry._parseArgs('LineString', 2, all_args)) |
| 431 | |
| 432 | # pylint: disable=keyword-arg-before-vararg |
| 433 | @staticmethod |