Annuncio: tutti i progetti non commerciali registrati per l'utilizzo di Earth Engine prima del
15 aprile 2025 devono
verificare l'idoneità non commerciale per mantenere l'accesso a Earth Engine.
ee.Geometry.LinearRing
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Crea un ee.Geometry che descrive un LinearRing. Se l'ultimo punto non è uguale al primo, alla fine verrà aggiunta una copia del primo punto.
Per comodità, gli argomenti variabili possono essere utilizzati quando tutti gli argomenti sono numeri. Ciò consente di creare LinearRing EPSG:4326 geodetici dato un numero pari di argomenti, ad esempio ee.Geometry.LinearRing(aLng, aLat, bLng, bLat, ..., aLng, aLat).
Utilizzo | Resi |
---|
ee.Geometry.LinearRing(coords, proj, geodesic, maxError) | Geometry.LinearRing |
Argomento | Tipo | Dettagli |
---|
coords | List<Geometry>|List<List<Number>>|List<Number> | Un elenco di punti nell'anello. Può essere un elenco di coordinate nel formato GeoJSON
"LinearRing", un elenco di almeno tre oggetti ee.Geometry che descrivono un punto o un elenco di almeno sei numeri che definiscono le coordinate [x,y] di almeno tre punti. |
proj | Proiezione, facoltativa | La proiezione di questa geometria. Se non specificato, il valore predefinito è la proiezione di ee.Geometry di input o EPSG:4326 se non sono presenti input ee.Geometry. |
geodesic | Booleano, facoltativo | Se è false, i bordi sono dritti nella proiezione. Se true, i bordi sono curvi per seguire il percorso più breve sulla superficie della Terra. Il valore predefinito è lo stato geodetico degli input oppure true se gli input sono numeri. |
maxError | ErrorMargin, facoltativo | Errore massimo quando la geometria di input deve essere riproiettata in una proiezione dei risultati o in uno stato geodetico richiesti esplicitamente. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eDefines a closed ring on the Earth's surface, ensuring the last point connects back to the first.\u003c/p\u003e\n"],["\u003cp\u003eAllows simplified creation of geodesic (EPSG:4326) rings using a series of longitude and latitude values.\u003c/p\u003e\n"],["\u003cp\u003eAccepts various input formats for ring coordinates, including GeoJSON, ee.Geometry objects, or raw numerical coordinates.\u003c/p\u003e\n"],["\u003cp\u003eProjection and geodesic behavior can be customized; defaults to input projection or EPSG:4326 with geodesic edges if unspecified.\u003c/p\u003e\n"],["\u003cp\u003eIncludes an optional parameter to control error during reprojection for precise geometry handling.\u003c/p\u003e\n"]]],["This code constructs a `LinearRing` geometry. It takes a list of coordinates (`coords`), an optional projection (`proj`), an optional geodesic setting, and an optional maximum error (`maxError`). If the last point in `coords` isn't the same as the first, it adds a duplicate. Varargs can be used with numbers, creating geodesic EPSG:4326 LinearRings. `coords` can be a list of coordinates, point geometries, or numbers. `geodesic` determines if edges are straight or curved.\n"],null,["# ee.Geometry.LinearRing\n\n\u003cbr /\u003e\n\nConstructs an ee.Geometry describing a LinearRing. If the last point is not equal to the first, a duplicate of the first point will be added at the end.\n\n\u003cbr /\u003e\n\nFor convenience, varargs may be used when all arguments are numbers. This allows creating geodesic EPSG:4326 LinearRings given an even number of arguments, e.g. ee.Geometry.LinearRing(aLng, aLat, bLng, bLat, ..., aLng, aLat).\n\n| Usage | Returns |\n|--------------------------------------------------------------------------|---------------------|\n| `ee.Geometry.LinearRing(coords, `*proj* `, `*geodesic* `, `*maxError*`)` | Geometry.LinearRing |\n\n| Argument | Type | Details |\n|------------|----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coords` | List\\\u003cGeometry\\\u003e\\|List\\\u003cList\\\u003cNumber\\\u003e\\\u003e\\|List\\\u003cNumber\\\u003e | A list of points in the ring. May be a list of coordinates in the GeoJSON 'LinearRing' format, a list of at least three ee.Geometry objects describing a point, or a list of at least six numbers defining the \\[x,y\\] coordinates of at least three points. |\n| `proj` | Projection, optional | The projection of this geometry. If unspecified, the default is the projection of the input ee.Geometry, or EPSG:4326 if there are no ee.Geometry inputs. |\n| `geodesic` | Boolean, optional | 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, optional | Max error when input geometry must be reprojected to an explicitly requested result projection or geodesic state. |"]]