ee.Image.setDefaultProjection
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ustaw domyślną projekcję, która będzie stosowana do tego obrazu. Rozdzielczość projekcji może zostać zastąpiona przez późniejsze operacje.
Wykorzystanie | Zwroty |
---|
Image.setDefaultProjection(crs, crsTransform, scale) | Obraz |
Argument | Typ | Szczegóły |
---|
to: image | Obraz | Obraz do przekształcenia. |
crs | Odwzorowanie | Układ współrzędnych, do którego ma zostać przekształcony obraz. |
crsTransform | Lista, domyślna: null | Lista wartości przekształcenia CRS. Jest to kolejność wierszowa macierzy przekształcenia 3x2. Ta opcja wyklucza się z opcją skalowania i zastępuje każdą transformację, która jest już zastosowana do projekcji. |
scale | Liczba zmiennoprzecinkowa, domyślnie: null | Jeśli określono skalę, projekcja jest skalowana przez podzielenie określonej wartości skali przez nominalny rozmiar metra w określonej projekcji. Jeśli skala nie zostanie określona, użyta zostanie skala danej projekcji. |
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\u003eDefine a default projection and resolution for an image, which can be modified by subsequent operations.\u003c/p\u003e\n"],["\u003cp\u003eSpecify the target Coordinate Reference System (CRS), an optional CRS transformation matrix, and an optional scale factor to adjust the projection.\u003c/p\u003e\n"],["\u003cp\u003eProviding a CRS transformation matrix overrides any existing transformations, while the scale factor adjusts the projection's scale based on the specified value and the projection's nominal meter size.\u003c/p\u003e\n"]]],[],null,["# ee.Image.setDefaultProjection\n\nSet a default projection to be applied to this image. The projection's resolution may be overridden by later operations.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------|---------|\n| Image.setDefaultProjection`(crs, `*crsTransform* `, `*scale*`)` | Image |\n\n| Argument | Type | Details |\n|----------------|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to reproject. |\n| `crs` | Projection | The CRS to project the image to. |\n| `crsTransform` | List, default: null | The list of CRS transform values. This is a row-major ordering of the 3x2 transform matrix. This option is mutually exclusive with the scale option, and replaces any transform already on the projection. |\n| `scale` | Float, default: null | If scale is specified, then the projection is scaled by dividing the specified scale value by the nominal size of a meter in the specified projection. If scale is not specified, then the scale of the given projection will be used. |"]]