ee.Algorithms.GeometryConstructors.Rectangle
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Tworzy prostokątny wielokąt z podanych punktów narożnych.
Wykorzystanie | Zwroty |
---|
ee.Algorithms.GeometryConstructors.Rectangle(coordinates, crs, geodesic, evenOdd) | Geometria |
Argument | Typ | Szczegóły |
---|
coordinates | Lista | Dolny, a potem górny róg prostokąta w postaci listy punktów lub par liczb w kolejności x,y. |
crs | Prognoza, domyślnie: null | Układ odniesienia współrzędnych. Domyślnie jest to projekcja danych wejściowych, w której liczby są traktowane jako EPSG:4326. |
geodesic | Wartość logiczna, domyślnie: null | W przypadku wartości false (fałsz) krawędzie są proste w projekcji. Jeśli ma wartość true, krawędzie są zakrzywione, aby podążać najkrótszą ścieżką na powierzchni Ziemi. Domyślnie jest to stan geodezyjny danych wejściowych lub wartość „prawda”, jeśli dane wejściowe są liczbami. |
evenOdd | Wartość logiczna, domyślnie: true | Jeśli wartość to „true”, wnętrza wielokątów będą określane na podstawie reguły parzystości i nieparzystości, zgodnie z którą punkt znajduje się wewnątrz, jeśli przecina nieparzystą liczbę krawędzi, aby dotrzeć do punktu w nieskończoności. W przeciwnym razie wielokąty używają reguły lewej strony, zgodnie z którą wnętrza znajdują się po lewej stronie krawędzi powłoki podczas przechodzenia przez wierzchołki w podanej kolejności. |
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\u003eCreates a rectangular polygon using specified corner points.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of coordinate system, edge curvature (straight or geodesic), and polygon interior calculation (even/odd or left-inside rule).\u003c/p\u003e\n"],["\u003cp\u003eAccepts corner points as a list of Points or coordinate pairs (x,y).\u003c/p\u003e\n"],["\u003cp\u003eDefaults to EPSG:4326 coordinate system if not specified and geodesic edges if input is numerical.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.GeometryConstructors.Rectangle\n\nConstructs a rectangular polygon from the given corner points.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------------------------------------|----------|\n| `ee.Algorithms.GeometryConstructors.Rectangle(coordinates, `*crs* `, `*geodesic* `, `*evenOdd*`)` | Geometry |\n\n| Argument | Type | Details |\n|---------------|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinates` | List | The low and then high corners of the Rectangle, as a list of Points or pairs of Numbers in x,y order. |\n| `crs` | Projection, default: null | The coordinate reference system of the coordinates. The default is the projection of the inputs, where Numbers are assumed to be EPSG:4326. |\n| `geodesic` | Boolean, default: null | If false, edges are straight in the projection. If true, edges are curved to follow the shortest path on the surface of the Earth. The default is the geodesic state of the inputs, or true if the inputs are numbers. |\n| `evenOdd` | Boolean, default: true | If true, polygon interiors will be determined by the even/odd rule, where a point is inside if it crosses an odd number of edges to reach a point at infinity. Otherwise polygons use the left-inside rule, where interiors are on the left side of the shell's edges when walking the vertices in the given order. |"]]