ee.Feature.geometry
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca geometrię danego obiektu w podanej projekcji.
Wykorzystanie | Zwroty |
---|
Feature.geometry(maxError, proj, geodesics) | Geometria |
Argument | Typ | Szczegóły |
---|
to: feature | Element | Obiekt, z którego pochodzi geometria. |
maxError | ErrorMargin, domyślnie: null | Maksymalna dopuszczalna wartość błędu podczas wykonywania niezbędnej reprojekcji. |
proj | Prognoza, domyślnie: null | Jeśli zostanie określony, geometria będzie w tej projekcji. Jeśli nie zostanie określony, geometria będzie w projekcji domyślnej. |
geodesics | Wartość logiczna, domyślnie: null | Jeśli ma wartość true, geometria będzie miała krawędzie geodezyjne. Jeśli ma wartość „false”, krawędzie będą liniami prostymi w określonym rzucie. Jeśli wartość to null, interpretacja krawędzi będzie taka sama jak w przypadku pierwotnej geometrii. Ten argument jest ignorowany, jeśli nie określono argumentu proj. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eReturns the geometry of a specified feature, optionally reprojecting it.\u003c/p\u003e\n"],["\u003cp\u003eAllows control over reprojection accuracy using the \u003ccode\u003emaxError\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eAccepts an optional projection (\u003ccode\u003eproj\u003c/code\u003e) to define the geometry's output projection.\u003c/p\u003e\n"],["\u003cp\u003eEnables specifying geodesic edges or straight lines in the projected geometry using the \u003ccode\u003egeodesics\u003c/code\u003e parameter.\u003c/p\u003e\n"]]],[],null,["# ee.Feature.geometry\n\nReturns the geometry of a given feature in a given projection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------------------------|----------|\n| Feature.geometry`(`*maxError* `, `*proj* `, `*geodesics*`)` | Geometry |\n\n| Argument | Type | Details |\n|-----------------|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `feature` | Element | The feature from which the geometry is taken. |\n| `maxError` | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |\n| `proj` | Projection, default: null | If specified, the geometry will be in this projection. If unspecified, the geometry will be in its default projection. |\n| `geodesics` | Boolean, default: null | If true, the geometry will have geodesic edges. If false, it will have edges as straight lines in the specified projection. If null, the edge interpretation will be the same as the original geometry. This argument is ignored if proj is not specified. |"]]