Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca przecięcie dwóch geometrii.
Wykorzystanie
Zwroty
Geometry.intersection(right, maxError, proj)
Geometria
Argument
Typ
Szczegóły
to: left
Geometria
Geometria używana jako lewy operand operacji.
right
Geometria
Geometria używana jako prawy operand operacji.
maxError
ErrorMargin, domyślnie: null
Maksymalna dopuszczalna wartość błędu podczas wykonywania niezbędnej reprojekcji.
proj
Prognoza, domyślnie: null
Projekcja, w której ma zostać wykonana operacja. Jeśli nie zostanie podana, operacja zostanie wykonana w sferycznym układzie współrzędnych, a odległości liniowe będą podawane w metrach na sferze.
[[["Ł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-07-26 UTC."],[[["Returns a new Geometry that represents the shared area between two input geometries."],["Accepts two geometries as input: `left` (the geometry the method is called on) and `right`."],["Can be performed using a specified projection (`proj`) or a spherical coordinate system with linear distances in meters if no projection is defined."],["Includes an optional `maxError` parameter to control the tolerance for reprojection errors."]]],["The `intersection` method computes the overlapping area between two geometries. It takes a `right` geometry as input, and optionally `maxError` and `proj` for reprojection settings. The output is a new `Geometry` representing the intersection. If no `proj` is provided, the operation uses spherical coordinates with linear distances in meters. Examples in JavaScript and Python demonstrate defining two geometries, using the method to get the intersection, and displaying the result.\n"]]