Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca przecięcie dwóch geometrii.
Wykorzystanie
Zwroty
MultiPolygon.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."],[[["`intersection` returns a Geometry representing the shared area between a MultiPolygon and another Geometry."],["It takes the `right` Geometry, optional `maxError`, and optional `proj` as arguments."],["The `maxError` parameter controls the tolerance for reprojection errors."],["The `proj` parameter specifies the projection for the operation, defaulting to spherical coordinates if unspecified."]]],["The `intersection` method computes the overlapping area between two geometries, returning a new geometry representing their intersection. It takes a `right` geometry as the second operand, and optionally `maxError` and `proj` parameters for error tolerance and projection. The operation can be performed in a spherical coordinate system or using a specified projection. Examples in Javascript and python are provided showing how to define geometries, call the `intersection` method, and display the results.\n"]]