ee.Feature.geometry
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงผลเรขาคณิตของฟีเจอร์ที่ระบุในการฉายภาพที่ระบุ
การใช้งาน | การคืนสินค้า |
---|
Feature.geometry(maxError, proj, geodesics) | เรขาคณิต |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ feature | องค์ประกอบ | ฟีเจอร์ที่นำเรขาคณิตมาใช้ |
maxError | ErrorMargin, ค่าเริ่มต้น: null | ปริมาณข้อผิดพลาดสูงสุดที่ยอมรับได้เมื่อทำการฉายซ้ำที่จำเป็น |
proj | การฉายภาพ ค่าเริ่มต้น: null | หากระบุไว้ รูปเรขาคณิตจะอยู่ในโปรเจ็กชันนี้ หากไม่ระบุ ระบบจะใช้การฉายภาพเริ่มต้นของเรขาคณิต |
geodesics | บูลีน ค่าเริ่มต้น: null | หากเป็นจริง รูปทรงจะมีขอบเป็นเส้นโค้งตามพื้นผิวโลก หากเป็นเท็จ ขอบจะเป็นเส้นตรงในการฉายภาพที่ระบุ หากเป็น Null การตีความขอบจะเหมือนกับรูปทรงเรขาคณิตเดิม ระบบจะละเว้นอาร์กิวเมนต์นี้หากไม่ได้ระบุ proj |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eReturns the geometry of a specified feature, optionally reprojecting it.\u003c/p\u003e\n"],["\u003cp\u003eAllows control over reprojection accuracy using the \u003ccode\u003emaxError\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eAccepts an optional projection (\u003ccode\u003eproj\u003c/code\u003e) to define the geometry's output projection.\u003c/p\u003e\n"],["\u003cp\u003eEnables specifying geodesic edges or straight lines in the projected geometry using the \u003ccode\u003egeodesics\u003c/code\u003e parameter.\u003c/p\u003e\n"]]],[],null,["# ee.Feature.geometry\n\nReturns the geometry of a given feature in a given projection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------------------------|----------|\n| Feature.geometry`(`*maxError* `, `*proj* `, `*geodesics*`)` | Geometry |\n\n| Argument | Type | Details |\n|-----------------|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `feature` | Element | The feature from which the geometry is taken. |\n| `maxError` | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |\n| `proj` | Projection, default: null | If specified, the geometry will be in this projection. If unspecified, the geometry will be in its default projection. |\n| `geodesics` | Boolean, default: null | If true, the geometry will have geodesic edges. If false, it will have edges as straight lines in the specified projection. If null, the edge interpretation will be the same as the original geometry. This argument is ignored if proj is not specified. |"]]