ee.Algorithms.GeometryConstructors.Rectangle
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างรูปหลายเหลี่ยมสี่เหลี่ยมผืนผ้าจากจุดมุมที่กำหนด
การใช้งาน | การคืนสินค้า |
---|
ee.Algorithms.GeometryConstructors.Rectangle(coordinates, crs, geodesic, evenOdd) | เรขาคณิต |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
coordinates | รายการ | มุมล่างและมุมบนของสี่เหลี่ยมผืนผ้าเป็นรายการของจุดหรือคู่ของตัวเลขในลำดับ x,y |
crs | การฉายภาพ ค่าเริ่มต้น: null | ระบบอ้างอิงพิกัดของพิกัด ค่าเริ่มต้นคือการฉายภาพของอินพุต โดยจะถือว่าตัวเลขเป็น EPSG:4326 |
geodesic | บูลีน ค่าเริ่มต้น: null | หากเป็นเท็จ ขอบจะตรงในการฉายภาพ หากเป็นจริง เส้นขอบจะโค้งตามเส้นทางที่สั้นที่สุดบนพื้นผิวโลก ค่าเริ่มต้นคือสถานะทางภูมิศาสตร์ของอินพุต หรือเป็นจริงหากอินพุตเป็นตัวเลข |
evenOdd | บูลีน ค่าเริ่มต้น: จริง | หากเป็นจริง ระบบจะกำหนดขอบเขตด้านในของรูปหลายเหลี่ยมตามกฎคู่/คี่ ซึ่งจุดจะอยู่ด้านในหากตัดขอบเป็นจำนวนคี่เพื่อไปยังจุดที่อนันต์ มิฉะนั้น รูปหลายเหลี่ยมจะใช้กฎด้านซ้ายด้านใน ซึ่งภายในจะอยู่ทางด้านซ้ายของขอบเปลือกเมื่อเดินตามจุดยอดตามลำดับที่กำหนด |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eCreates a rectangular polygon using specified corner points.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of coordinate system, edge curvature (straight or geodesic), and polygon interior calculation (even/odd or left-inside rule).\u003c/p\u003e\n"],["\u003cp\u003eAccepts corner points as a list of Points or coordinate pairs (x,y).\u003c/p\u003e\n"],["\u003cp\u003eDefaults to EPSG:4326 coordinate system if not specified and geodesic edges if input is numerical.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.GeometryConstructors.Rectangle\n\nConstructs a rectangular polygon from the given corner points.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------------------------------------|----------|\n| `ee.Algorithms.GeometryConstructors.Rectangle(coordinates, `*crs* `, `*geodesic* `, `*evenOdd*`)` | Geometry |\n\n| Argument | Type | Details |\n|---------------|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinates` | List | The low and then high corners of the Rectangle, as a 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| `evenOdd` | Boolean, default: true | If true, polygon interiors will be determined by the even/odd rule, where a point is inside if it crosses an odd number of edges to reach a point at infinity. Otherwise polygons use the left-inside rule, where interiors are on the left side of the shell's edges when walking the vertices in the given order. |"]]