eemont.geometry.BBoxFromQuery¶
- eemont.geometry.BBoxFromQuery(query, geocoder='nominatim', **kwargs)[source]¶
Constructs an ee.Geometry describing a bounding box from a query submitted to a geodocer using the geopy package.
Tip
Check more info about constructors in the User Guide.
- Parameters
query (str) – Address, query or structured query to geocode.
geocoder (str, default = 'nominatim') – Geocoder to use. One of ‘nominatim’ or ‘arcgis’. 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 a bounding box from the specified query.
- Return type
ee.Geometry.Polygon
See also
PointFromQuery
Constructs an ee.Geometry describing a point from a query submitted to a geodocer using the geopy package.
MultiPointFromQuery
Constructs an ee.Geometry describing a multi-point from a query submitted to a geodocer using the geopy package.
Examples
>>> import ee, eemont >>> ee.Authenticate() >>> ee.Initialize() >>> ee.Geometry.BBoxFromQuery('Seattle',user_agent = 'my-gee-eemont-query') ee.Geometry({ "functionInvocationValue": { "functionName": "GeometryConstructors.Polygon", "arguments": { "coordinates": { "constantValue": [ [ [ -122.45969600000001, 47.7341357 ], [ -122.45969600000001, 47.4810022 ], [ -122.224433, 47.4810022 ], [ -122.224433, 47.7341357 ] ] ] }, "geodesic": { "constantValue": false } } } })