Thông báo: Tất cả dự án phi thương mại đã đăng ký sử dụng Earth Engine trước ngày 15 tháng 4 năm 2025 phải xác minh điều kiện sử dụng phi thương mại để duy trì quyền truy cập vào Earth Engine.
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.
Chuyển đổi hình học thành một phép chiếu cụ thể.
Cách sử dụng
Giá trị trả về
Polygon.transform(proj, maxError)
Hình học
Đối số
Loại
Thông tin chi tiết
this: geometry
Hình học
Hình học cần chiếu lại.
proj
Dự kiến (không bắt buộc)
Phép chiếu mục tiêu. Giá trị mặc định là EPSG:4326. Nếu có CRS địa lý, các cạnh của hình học sẽ được diễn giải là đường trắc địa. Nếu không, các đường này sẽ được diễn giải là đường thẳng trong phép chiếu.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["Transforms the provided geometry to a new projection, specified by the `proj` argument."],["By default, the geometry is projected to EPSG:4326 (WGS 84), treating edges as geodesics if the target projection is geographic."],["Users can specify a maximum projection error tolerance using the `maxError` parameter."],["The `transform` function returns a new Geometry object representing the transformed geometry."]]],["The `transform` function reprojects a geometry to a specified projection. It accepts the target projection (`proj`) and an optional maximum error (`maxError`). The function returns the transformed geometry. If no projection is provided, it defaults to EPSG:4326. The provided geometry's edges are interpreted as geodesics in geographic coordinate systems and as straight lines otherwise. The input `geometry` is reprojected.\n"]]