ee.Feature.setGeometry
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงผลฟีเจอร์ที่มีเรขาคณิตที่แทนที่ด้วยเรขาคณิตที่ระบุ
การใช้งาน | การคืนสินค้า |
---|
Feature.setGeometry(geometry) | องค์ประกอบ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ feature | องค์ประกอบ | ฟีเจอร์ที่จะตั้งค่าเรขาคณิต |
geometry | เรขาคณิต ค่าเริ่มต้น: null | เรขาคณิตที่จะตั้งค่า |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eFeature.setGeometry()\u003c/code\u003e modifies an existing feature by replacing its geometry with a new one.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts the new geometry as an argument and returns the updated feature element.\u003c/p\u003e\n"],["\u003cp\u003eThe specified geometry can be any valid geometry object or null.\u003c/p\u003e\n"]]],[],null,["# ee.Feature.setGeometry\n\nReturns the feature with the geometry replaced by the specified geometry.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------|---------|\n| Feature.setGeometry`(`*geometry*`)` | Element |\n\n| Argument | Type | Details |\n|-----------------|-------------------------|-------------------------------------------|\n| this: `feature` | Element | The feature on which to set the geometry. |\n| `geometry` | Geometry, default: null | The geometry to set. |"]]