GeoBoundingBox
gives the geo positions that define the bounding rectangle enclosing the geo region g.
GeoBoundingBox[g,δ]
pads the region on all sides by an amount δ.
GeoBoundingBox[g,Scaled[s]]
pads by a fractional amount s.
Details and Options
- GeoBoundingBox[g] returns the respective GeoPosition[{lat,lon}] locations of the SW and NE corners of the area determined by g.
- The geo region g may be given as a combination of GeoGraphics primitives, such as GeoDisk and GeoPath, geographic Entity[…] and EntityClass[…] objects, or individual GeoPosition locations.
- For extended geographic entities, the "Polygon" property is used. For point-like entities, the "Position" property is used.
- The option GeoModel specifies the model of the Earth or celestial body being used.
Examples
open allclose allBasic Examples (4)
Scope (7)
Bounding box of a set of GeoGraphics primitives:
Bounding box of entities and entity classes:
Bounding box determined by individual geo locations:
Extend the same angular distance in all directions:
Extend a geodetic distance instead:
A numeric padding is interpreted as a distance in meters:
Specify a padding distance relative to the geo range of the map:
Pad the latitude and longitude ranges differently:
Specify different paddings for each cardinal direction:
Options (1)
GeoModel (1)
To convert distances into angles, GeoBoundingBox needs to know the size of the spheroid being used, by default the "ITRF00" datum of the Earth:
The same geo disk on the Moon spans a much larger angular scale:
The default value GeoModel->Automatic means that the geo model can also be inferred from other parts of the input:
The information provided must be consistent:
Properties & Relations (6)
GeoBoundingBox returns the SW and NE corners of the enclosing rectangle:
This corresponds to the following ranges of latitude and longitude:
GeoBounds directly returns those ranges:
The center of the bounding box of an extended entity approximates its "Position" property:
The bounding box is a rectangle in the cylindrical projections but not in other projection types:
GeoBoundingBox is idempotent:
The padding δ in GeoBoundingBox[g,δ] corresponds to the GeoRangePadding->δ option of GeoGraphics:
That coincides with these padded ranges:
Countries crossing the 180° meridian also return a continuous longitude range, beyond 180:
Text
Wolfram Research (2014), GeoBoundingBox, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoBoundingBox.html (updated 2015).
CMS
Wolfram Language. 2014. "GeoBoundingBox." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/GeoBoundingBox.html.
APA
Wolfram Language. (2014). GeoBoundingBox. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoBoundingBox.html