Geometry Overview

Earth Engine handles vector data with the Geometry type. The
GeoJSON spec describes in
detail the type of geometries supported by Earth Engine, including Point
(a list of coordinates in some projection), LineString (a list of points),
LinearRing (a closed LineString), and Polygon (a
list of LinearRings where the first is a shell and subsequent rings are
holes). Earth Engine also supports MultiPoint, MultiLineString,
and MultiPolygon. The GeoJSON GeometryCollection is also supported, although
it has the name MultiGeometry within Earth Engine.

Creating Geometry objects

You can create geometries interactively using the Code Editor geometry tools. See the
Earth Engine Code Editor page for more
information. To create a Geometry programmatically, provide the
constructor with the proper list(s) of coordinates. For example: