ee.Algorithms.GeometryConstructors.Polygon
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Erstellt ein Polygon aus den angegebenen Koordinaten.
Nutzung | Ausgabe |
---|
ee.Algorithms.GeometryConstructors.Polygon(coordinates, crs, geodesic, maxError, evenOdd) | Geometrie |
Argument | Typ | Details |
---|
coordinates | Liste | Eine Liste von LinearRings, wobei der erste die Hülle und die restlichen Löcher sind. Bei einem einfachen Polygon ist es eine Liste von Punkten oder Zahlenpaaren in der Reihenfolge x,y. |
crs | Projektion, Standardwert: null | Das Koordinatenreferenzsystem der Koordinaten. Standardmäßig wird die Projektion der Eingaben verwendet, wobei davon ausgegangen wird, dass Zahlen EPSG:4326 sind. |
geodesic | Boolesch, Standard: null | Bei „false“ sind die Kanten in der Projektion gerade. Bei „true“ sind die Kanten gekrümmt, um dem kürzesten Pfad auf der Erdoberfläche zu folgen. Standardmäßig wird der geodätische Status der Eingaben verwendet. Wenn die Eingaben Zahlen sind, ist der Standardwert „true“. |
maxError | ErrorMargin, Standardwert: null | Maximaler Fehler, wenn die Eingabegeometrie in eine explizit angeforderte Ergebnisprojektion oder einen geodätischen Zustand reprojeziert werden muss. |
evenOdd | Boolescher Wert, Standard: „true“ | Wenn „true“, wird das Innere von Polygonen nach der Even-Odd-Regel bestimmt. Ein Punkt liegt innerhalb, wenn er eine ungerade Anzahl von Kanten überquert, um einen Punkt im Unendlichen zu erreichen. Andernfalls wird für Polygone die Regel „Links innen“ verwendet. Dabei befindet sich das Innere auf der linken Seite der Kanten der Hülle, wenn die Eckpunkte in der angegebenen Reihenfolge durchlaufen werden. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003eCreates a polygon geometry from a list of coordinates, representing its outer boundary (shell) and optionally inner boundaries (holes).\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of the coordinate system (\u003ccode\u003ecrs\u003c/code\u003e), whether edges are straight or follow Earth's curvature (\u003ccode\u003egeodesic\u003c/code\u003e), and error tolerance during reprojection (\u003ccode\u003emaxError\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eDefines polygon interiors using either the even/odd rule (default) or the left-inside rule, affecting how points within the polygon are identified.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.GeometryConstructors.Polygon\n\nConstructs a Polygon from the given coordinates.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------------------------------|----------|\n| `ee.Algorithms.GeometryConstructors.Polygon(coordinates, `*crs* `, `*geodesic* `, `*maxError* `, `*evenOdd*`)` | Geometry |\n\n| Argument | Type | Details |\n|---------------|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinates` | List | A list of LinearRings where the first is the shell and the rest are holes, or for a simple polygon, 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| `maxError` | ErrorMargin, default: null | Max error when input geometry must be reprojected to an explicitly requested result projection or geodesic state. |\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. |"]]