ee.Image.geometry
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trả về hình học của một đối tượng đã cho trong một phép chiếu đã cho.
Cách sử dụng | Giá trị trả về |
---|
Image.geometry(maxError, proj, geodesics) | Hình học |
Đối số | Loại | Thông tin chi tiết |
---|
this: feature | Phần tử | Đối tượng mà từ đó hình học được lấy. |
maxError | ErrorMargin, mặc định: null | Lượng lỗi tối đa được chấp nhận khi thực hiện bất kỳ phép chiếu lại cần thiết nào. |
proj | Phép chiếu, mặc định: null | Nếu được chỉ định, hình học sẽ nằm trong phép chiếu này. Nếu bạn không chỉ định, hình học sẽ ở phép chiếu mặc định. |
geodesics | Boolean, mặc định: null | Nếu là true, hình học sẽ có các cạnh trắc địa. Nếu là false, thì đường viền sẽ là đường thẳng trong phép chiếu đã chỉ định. Nếu giá trị rỗng, thì cách diễn giải cạnh sẽ giống với hình học ban đầu. Đối số này sẽ bị bỏ qua nếu bạn không chỉ định proj. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eReturns the geometry of an image feature, optionally reprojected and with controlled error margins.\u003c/p\u003e\n"],["\u003cp\u003eAccepts parameters to specify the maximum reprojection error, the desired output projection, and whether to use geodesic edges.\u003c/p\u003e\n"],["\u003cp\u003eBy default, returns the geometry in its original projection and with the original edge interpretation.\u003c/p\u003e\n"],["\u003cp\u003eIf a projection is specified without defining geodesic behavior, the original geometry's edge interpretation is preserved.\u003c/p\u003e\n"],["\u003cp\u003eApplies to image features and allows extraction of their geometric properties for further analysis or visualization.\u003c/p\u003e\n"]]],[],null,["# ee.Image.geometry\n\nReturns the geometry of a given feature in a given projection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------|----------|\n| Image.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. |"]]