ee.Algorithms.GeometryConstructors.LineString
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้าง LineString จากพิกัดที่ระบุ
การใช้งาน | การคืนสินค้า |
---|
ee.Algorithms.GeometryConstructors.LineString(coordinates, crs, geodesic, maxError) | เรขาคณิต |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
coordinates | รายการ | รายการจุดหรือคู่ของตัวเลขในลําดับ x,y |
crs | การคาดการณ์ ค่าเริ่มต้น: null | ระบบพิกัดอ้างอิงของพิกัด ค่าเริ่มต้นคือโปรเจ็กชันของอินพุต โดยระบบจะถือว่าตัวเลขเป็น EPSG:4326 |
geodesic | บูลีน ค่าเริ่มต้น: null | หากเป็นเท็จ ขอบจะตรงในการแสดงผล หากเป็น "จริง" ขอบจะโค้งตามเส้นทางที่สั้นที่สุดบนพื้นผิวโลก ค่าเริ่มต้นคือสถานะเชิงเรขาคณิตของอินพุต หรือเป็นจริงหากอินพุตเป็นตัวเลข |
maxError | ErrorMargin, ค่าเริ่มต้น: null | ข้อผิดพลาดสูงสุดเมื่อต้องเปลี่ยนโปรเจ็กต์เรขาคณิตอินพุตอีกครั้งเป็นโปรเจ็กต์ผลลัพธ์หรือสถานะทรงกลมเชิงเรขาคณิตที่ขออย่างชัดเจน |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]