ee.Algorithms.GeometryConstructors.LineString
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tạo một LineString từ các toạ độ đã cho.
Cách sử dụng | Giá trị trả về |
---|
ee.Algorithms.GeometryConstructors.LineString(coordinates, crs, geodesic, maxError) | Hình học |
Đối số | Loại | Thông tin chi tiết |
---|
coordinates | Danh sách | Danh sách các Điểm hoặc cặp Số theo thứ tự x,y. |
crs | Hình chiếu, mặc định: rỗng | Hệ toạ độ tham chiếu của toạ độ. Giá trị mặc định là phép chiếu của dữ liệu đầu vào, trong đó Số được giả định là EPSG:4326. |
geodesic | Boolean, mặc định: rỗng | Nếu giá trị là false, các cạnh sẽ thẳng trong phép chiếu. Nếu là true, các cạnh sẽ được uốn cong để đi theo đường ngắn nhất trên bề mặt Trái Đất. Giá trị mặc định là trạng thái geodesic của dữ liệu đầu vào hoặc true nếu dữ liệu đầu vào là số. |
maxError | ErrorMargin, mặc định: rỗng | Lỗi tối đa khi phải chiếu lại hình học đầu vào thành một phép chiếu kết quả hoặc trạng thái geodesic được yêu cầu rõ ràng. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eCreates a LineString geometry from a list of coordinates.\u003c/p\u003e\n"],["\u003cp\u003eAccepts coordinates as either Points or coordinate pairs (x,y).\u003c/p\u003e\n"],["\u003cp\u003eAllows specifying the coordinate reference system (CRS) for the LineString, defaulting to EPSG:4326 if not provided.\u003c/p\u003e\n"],["\u003cp\u003eEnables creating geodesic or planar LineStrings by setting the 'geodesic' parameter, defaulting to true if the input is numerical coordinates.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.GeometryConstructors.LineString\n\nConstructs a LineString from the given coordinates.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------------------------|----------|\n| `ee.Algorithms.GeometryConstructors.LineString(coordinates, `*crs* `, `*geodesic* `, `*maxError*`)` | Geometry |\n\n| Argument | Type | Details |\n|---------------|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinates` | List | The list of Points or pairs of Numbers in x,y order. |\n| `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. |\n| `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. |\n| `maxError` | ErrorMargin, default: null | Max error when input geometry must be reprojected to an explicitly requested result projection or geodesic state. |"]]