Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum 15 April 2025 harus memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menampilkan fitur yang berisi titik di tengah komponen dimensi tertinggi dari geometri fitur. Komponen berdimensi lebih rendah diabaikan, sehingga sentroid geometri yang berisi dua poligon, tiga garis, dan satu titik sama dengan sentroid geometri yang hanya berisi dua poligon.
Penggunaan
Hasil
Feature.centroid(maxError, proj)
Fitur
Argumen
Jenis
Detail
ini: feature
Elemen
Menghitung titik berat geometri default fitur ini.
maxError
ErrorMargin, default: null
Jumlah maksimum error yang dapat ditoleransi saat melakukan reproyeksi yang diperlukan.
proj
Proyeksi, default: null
Jika ditentukan, hasilnya akan berada dalam proyeksi ini. Jika tidak, maka akan menggunakan EPSG:4326.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-26 UTC."],[[["Returns a feature with a point geometry representing the center of the highest-dimension component(s) of the input feature's geometry."],["Lower-dimensional components like lines and points within the input geometry are disregarded when calculating the centroid."],["The function can accept an optional `maxError` for reprojection tolerance and an optional `proj` to specify the output projection, defaulting to EPSG:4326."],["It is accessible through the `Feature.centroid()` method, taking the input feature, optional error margin, and optional projection as arguments."]]],["The `centroid` method calculates the center point of a feature's highest-dimension geometry, disregarding lower-dimensional parts. It returns a new feature representing this centroid. The method accepts optional arguments: `maxError` defines the tolerated reprojection error, and `proj` specifies the output projection (defaulting to EPSG:4326). The method operates on the default geometry of a specified `feature`.\n"]]