Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Generuje punkty losowe w ramach danej geometrii. Jeśli geometria jest dwuwymiarowa (wielokąt lub wielokąt wielokrotny), zwracane punkty są równomiernie rozłożone na danym obszarze kuli. Jeśli geometria jest jednowymiarowa (linie), zwracane punkty są interpolowane równomiernie wzdłuż krawędzi geometrii. Jeśli geometria ma wymiar 0 (punkty), zwracane punkty są losowane równomiernie z punktów wejściowych. Jeśli podana jest wielogeometrya o różnych wymiarach, punkty są pobierane z geometrii komponentów o największym wymiarze.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-06-19 UTC."],[[["`ee.FeatureCollection.randomPoints` generates uniformly random points within a specified geometry, such as polygons, linestrings, or points."],["The distribution of points varies based on the geometry's dimension: uniform on the surface for polygons, along edges for linestrings, and from input points for point geometries."],["The function takes parameters like `region` (geometry), `points` (number of points), `seed` (for reproducibility), and `maxError` (for reprojection tolerance)."],["Users can specify the desired number of random points to generate and provide a seed value for consistent results."],["If a mixed-dimension geometry is provided, the function samples points from the highest-dimension component."]]],["The `ee.FeatureCollection.randomPoints` function generates a specified number of random points within a given geometry. The points are uniformly distributed within the geometry's area if it's two-dimensional, along its edges if one-dimensional, or sampled from the input points if zero-dimensional. For mixed-dimension multi-geometries, points are drawn from the highest-dimension components. The user defines the `region`, the number of `points`, a random `seed`, and an optional `maxError`.\n"]]