eemont.geometry.MultiPointFromPlusCodes

eemont.geometry.MultiPointFromPlusCodes(pluscodes, geocoder='nominatim', **kwargs)[source]

Constructs an ee.Geometry describing multiple points from a list of Plus Codes.

If the Plus Codes are full, they will be decoded directly using the openlocationcode package. If they are short Codes with reference locations, the references will be geocoded using the geopy package.

Tip

Check more info about constructors in the User Guide.

Parameters
  • pluscodes (str) – A list of full Plus Codes or short Plus Codes with geocodable reference locations appended to them.

  • geocoder (str, default = 'nominatim') – Geocoder to use. Please visit https://geopy.readthedocs.io/ for more info.

  • **kwargs – Keywords arguments for geolocator.geocode(). The user_agent argument is mandatory (this argument can be set as user_agent = ‘my-gee-username’ or user_agent = ‘my-gee-app-name’). Please visit https://geopy.readthedocs.io/ for more info.

Returns

Geometry describing multiple points from the Plus Code centroids.

Return type

ee.Geometry.MultiPoint

See also

PointFromPlusCode

Constructs an ee.Geometry describing a point from a Plus Code.

PolygonFromPlusCodes

Constructs an ee.Geometry describing a polygon from a list of Plus Codes.

MultiPolygonFromPlusCodes

Constructs an ee.Geometry describing multiple polygons from a list of lists of Plus Codes.

LineStringFromPlusCodes

Constructs an ee.Geometry describing a line from a list of Plus Codes.

MultiLineStringFromPlusCodes

Constructs an ee.Geometry describing multiple lines from a list of lists of Plus Codes.

LinearRingFromPlusCodes

Constructs an ee.Geometry describing a linear ring from a list of Plus Codes.

RectangleFromPlusCodes

Constructs an ee.Geometry describing a rectangle from a list of two Plus Code corners.

Examples

>>> import ee, eemont
>>> ee.Authenticate()
>>> ee.Initialize()
>>> geom = ee.Geometry.MultiPointFromPlusCodes(['85FQ2222+22','85FR2222+22'])
>>> geom.coordinates().getInfo()
[[-104.9999375, 39.0000625], [-103.9999375, 39.0000625]]