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.
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).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/26 (UTC)."],[[["The `serialize()` method returns a serialized (string) representation of a Geometry object, like a Point."],["An optional `legacy` Boolean argument can be passed to enable legacy formatting."],["Examples demonstrate the usage of `serialize()` in both JavaScript and Python within the Google Earth Engine context."],["The examples also show how to create and display a Point on a map using the respective APIs."]]],["The `serialize()` method, applicable to a Geometry instance, returns a string representation of the object. It accepts an optional boolean argument, `legacy`, to enable an older format. In JavaScript and Python examples, a Point object is defined, and `serialize()` is applied to it. The resulting serialized string is then printed. The Point geometry is displayed on a map using `Map.addLayer` (JavaScript) or `m.add_layer` (Python).\n"]]