ee.Image.setDefaultProjection
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ตั้งค่าการฉายภาพเริ่มต้นที่จะใช้กับรูปภาพนี้ การดำเนินการในภายหลังอาจลบล้างความละเอียดของการฉายภาพ
การใช้งาน | การคืนสินค้า |
---|
Image.setDefaultProjection(crs, crsTransform, scale) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ image | รูปภาพ | รูปภาพที่จะฉายซ้ำ |
crs | การฉายภาพ | CRS ที่จะฉายภาพ |
crsTransform | รายการ (ค่าเริ่มต้น: null) | รายการค่าการแปลง CRS นี่คือการจัดลำดับแถวหลักของเมทริกซ์การเปลี่ยนรูปแบบ 3x2 ตัวเลือกนี้จะใช้ร่วมกับตัวเลือกการปรับขนาดไม่ได้ และจะแทนที่การเปลี่ยนรูปแบบที่มีอยู่แล้วในการฉายภาพ |
scale | ลอย ค่าเริ่มต้น: null | หากระบุมาตราส่วน ระบบจะปรับขนาดการฉายโดยการหารค่ามาตราส่วนที่ระบุด้วยขนาดที่กำหนดของมิเตอร์ในการฉายที่ระบุ หากไม่ได้ระบุมาตราส่วน ระบบจะใช้มาตราส่วนของการฉายที่ระบุ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eDefine a default projection and resolution for an image, which can be modified by subsequent operations.\u003c/p\u003e\n"],["\u003cp\u003eSpecify the target Coordinate Reference System (CRS), an optional CRS transformation matrix, and an optional scale factor to adjust the projection.\u003c/p\u003e\n"],["\u003cp\u003eProviding a CRS transformation matrix overrides any existing transformations, while the scale factor adjusts the projection's scale based on the specified value and the projection's nominal meter size.\u003c/p\u003e\n"]]],[],null,["# ee.Image.setDefaultProjection\n\nSet a default projection to be applied to this image. The projection's resolution may be overridden by later operations.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------|---------|\n| Image.setDefaultProjection`(crs, `*crsTransform* `, `*scale*`)` | Image |\n\n| Argument | Type | Details |\n|----------------|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to reproject. |\n| `crs` | Projection | The CRS to project the image to. |\n| `crsTransform` | List, default: null | The list of CRS transform values. This is a row-major ordering of the 3x2 transform matrix. This option is mutually exclusive with the scale option, and replaces any transform already on the projection. |\n| `scale` | Float, default: null | If scale is specified, then the projection is scaled by dividing the specified scale value by the nominal size of a meter in the specified projection. If scale is not specified, then the scale of the given projection will be used. |"]]