ee.Feature.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ề |
---|
Feature.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 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. |"]]