ee.ImageCollection.draw
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
วาดคอลเล็กชันเวกเตอร์เพื่อการแสดงภาพ ไม่ได้มีไว้เพื่อใช้เป็นอินพุตสำหรับอัลกอริทึมอื่นๆ
การใช้งาน | การคืนสินค้า |
---|
ImageCollection.draw(color, pointRadius, strokeWidth) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ collection | FeatureCollection | คอลเล็กชันที่จะวาด |
color | สตริง | สตริงเลขฐานสิบหกในรูปแบบ RRGGBB ที่ระบุสีที่จะใช้ในการวาดฟีเจอร์ |
pointRadius | จำนวนเต็ม ค่าเริ่มต้น: 3 | รัศมีของเครื่องหมายจุดในหน่วยพิกเซล |
strokeWidth | จำนวนเต็ม ค่าเริ่มต้น: 2 | ความกว้างของเส้นและเส้นขอบรูปหลายเหลี่ยมเป็นพิกเซล |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eImageCollection.draw()\u003c/code\u003e visualizes FeatureCollections as vector data, outputting an Image.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a color (hex string: RRGGBB), point radius (default 3 pixels), and stroke width (default 2 pixels) for customization.\u003c/p\u003e\n"],["\u003cp\u003ePrimarily for display, not designed for algorithmic input.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.draw\n\nPaints a vector collection for visualization. Not intended for use as input to other algorithms.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------------------|---------|\n| ImageCollection.draw`(color, `*pointRadius* `, `*strokeWidth*`)` | Image |\n\n| Argument | Type | Details |\n|--------------------|---------------------|-----------------------------------------------------------------------------------------|\n| this: `collection` | FeatureCollection | The collection to draw. |\n| `color` | String | A hex string in the format RRGGBB specifying the color to use for drawing the features. |\n| `pointRadius` | Integer, default: 3 | The radius in pixels of the point markers. |\n| `strokeWidth` | Integer, default: 2 | The width in pixels of lines and polygon borders. |"]]