Duyuru:
15 Nisan 2025'ten önce Earth Engine'i kullanmak için kaydedilen tüm ticari olmayan projelerin Earth Engine erişimini sürdürmek için
ticari olmayan uygunluğu doğrulaması gerekir.
ee.Geometry.MultiPolygon
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Çoklu Poligonu açıklayan bir ee.Geometry oluşturur.
Kolaylık sağlaması açısından, tüm bağımsız değişkenler sayı olduğunda varargs kullanılabilir. Bu, çift sayıda bağımsız değişken verildiğinde tek bir LinearRing'e sahip tek bir Polygon ile jeodezik EPSG:4326 MultiPolygon'lar oluşturulmasına olanak tanır. Örneğin: ee.Geometry.MultiPolygon(aLng, aLat, bLng, bLat, ..., aLng, aLat).
Kullanım | İadeler |
---|
ee.Geometry.MultiPolygon(coords, proj, geodesic, maxError, evenOdd) | Geometry.MultiPolygon |
Bağımsız Değişken | Tür | Ayrıntılar |
---|
coords | List<Geometry>|List<List<List<List<Number>>>>|List<Number> | Poligon listesi. GeoJSON "MultiPolygon" biçiminde bir koordinat listesi, bir Poligonu açıklayan ee.Geometry nesneleri listesi veya tek bir poligon sınırını tanımlayan sayılar listesi olabilir. |
proj | Projeksiyon, isteğe bağlı | Bu geometrinin izdüşümü. Varsayılan değer, girişlerin projeksiyonudur. Burada sayıların EPSG:4326 olduğu varsayılır. |
geodesic | Boole değeri, isteğe bağlı | Yanlışsa kenarlar projeksiyonda düzdür. Doğruysa kenarlar, Dünya yüzeyindeki en kısa yolu takip edecek şekilde eğrilir. Varsayılan değer, girişlerin jeodezik durumu veya girişler sayıysa doğrudur. |
maxError | ErrorMargin, isteğe bağlı | Giriş geometrisi, açıkça istenen bir sonuç projeksiyonuna veya jeodezik duruma yeniden yansıtılması gerektiğinde oluşan maksimum hata. |
evenOdd | Boole değeri, isteğe bağlı | Doğruysa poligon iç kısımları, çift/tek kuralıyla belirlenir. Bu kuralda, sonsuzluktaki bir noktaya ulaşmak için tek sayıda kenarı geçen bir nokta içeride kabul edilir. Aksi takdirde, çokgenler sol-iç kuralını kullanır. Bu kuralda, köşeler belirli bir sırada yüründüğünde iç kısımlar kabuğun kenarlarının sol tarafında yer alır. Belirtilmemişse varsayılan olarak true (doğru) olur. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 UTC."],[[["\u003cp\u003eDefines a MultiPolygon geometry in Earth Engine, accepting GeoJSON-like coordinates, \u003ccode\u003eee.Geometry.Polygon\u003c/code\u003e objects, or even numbers for a single polygon.\u003c/p\u003e\n"],["\u003cp\u003eOffers flexibility in specifying projection (\u003ccode\u003eproj\u003c/code\u003e), geodesic behavior (\u003ccode\u003egeodesic\u003c/code\u003e), error margin (\u003ccode\u003emaxError\u003c/code\u003e), and polygon interior calculation (\u003ccode\u003eevenOdd\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eSimplifies creating single, geodesic EPSG:4326 MultiPolygons using a series of number coordinates representing a single LinearRing within a single Polygon.\u003c/p\u003e\n"]]],[],null,["# ee.Geometry.MultiPolygon\n\n\u003cbr /\u003e\n\nConstructs an ee.Geometry describing a MultiPolygon.\n\n\u003cbr /\u003e\n\nFor convenience, varargs may be used when all arguments are numbers. This allows creating geodesic EPSG:4326 MultiPolygons with a single Polygon with a single LinearRing given an even number of arguments, e.g. ee.Geometry.MultiPolygon(aLng, aLat, bLng, bLat, ..., aLng, aLat).\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------------|-----------------------|\n| `ee.Geometry.MultiPolygon(coords, `*proj* `, `*geodesic* `, `*maxError* `, `*evenOdd*`)` | Geometry.MultiPolygon |\n\n| Argument | Type | Details |\n|------------|--------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coords` | List\\\u003cGeometry\\\u003e\\|List\\\u003cList\\\u003cList\\\u003cList\\\u003cNumber\\\u003e\\\u003e\\\u003e\\\u003e\\|List\\\u003cNumber\\\u003e | A list of polygons. May be a list of coordinates in the GeoJSON 'MultiPolygon' format, a list of ee.Geometry objects describing a Polygon, or a list of numbers defining a single polygon boundary. |\n| `proj` | Projection, optional | The projection of this geometry. The default is the projection of the inputs, where Numbers are assumed to be EPSG:4326. |\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. |\n| `evenOdd` | Boolean, optional | 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. If unspecified, defaults to true. |"]]