Annonce : Tous les projets non commerciaux enregistrés pour utiliser Earth Engine avant le 15 avril 2025 doivent vérifier leur éligibilité non commerciale pour conserver leur accès à Earth Engine.
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
extrait et fusionne les géométries d'une collection. Nécessite que toutes les géométries de la collection partagent la projection et l'interprétation des bords.
Utilisation
Renvoie
FeatureCollection.geometry(maxError)
Géométrie
Argument
Type
Détails
ceci : collection
FeatureCollection
Collection dont les géométries seront extraites.
maxError
ErrorMargin, facultatif
Marge d'erreur à utiliser lors de la fusion des géométries.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eExtracts and merges the geometries from a FeatureCollection into a single Geometry.\u003c/p\u003e\n"],["\u003cp\u003eRequires all geometries in the collection to have the same projection and edge interpretation.\u003c/p\u003e\n"],["\u003cp\u003ePerformance can be affected by the size and complexity of the input FeatureCollection.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003emaxError\u003c/code\u003e parameter can be used to control the merging process.\u003c/p\u003e\n"]]],[],null,["# ee.FeatureCollection.geometry\n\nExtracts and merges the geometries of a collection. Requires that all the geometries in the collection share the projection and edge interpretation.\n\n\u003cbr /\u003e\n\n| **Caution:** providing a large or complex collection as input can result in poor performance. Collating the geometry of collections does not scale well; use the smallest collection that is required to achieve the desired outcome.\n| **Note:** If only a bounding box around the collection is needed, consider using Collection.bounds instead.\n\n| Usage | Returns |\n|--------------------------------------------|----------|\n| FeatureCollection.geometry`(`*maxError*`)` | Geometry |\n\n| Argument | Type | Details |\n|--------------------|-----------------------|----------------------------------------------------|\n| this: `collection` | FeatureCollection | The collection whose geometries will be extracted. |\n| `maxError` | ErrorMargin, optional | An error margin to use when merging geometries. |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\n// FeatureCollection of power plants in Belgium.\nvar fc = ee.FeatureCollection('WRI/GPPD/power_plants')\n .filter('country_lg == \"Belgium\"');\n\nprint(\"Point FeatureCollection's geometry\", fc.geometry());\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\nfrom pprint import pprint\n\n# FeatureCollection of power plants in Belgium.\nfc = ee.FeatureCollection('WRI/GPPD/power_plants').filter(\n 'country_lg == \"Belgium\"')\n\nprint(\"Point FeatureCollection's geometry:\")\npprint(fc.geometry().getInfo())\n```"]]