GeoBoundingBox

GeoBoundingBox[g]

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 all

Basic Examples  (4)

Get the corner coordinates of the bounding box enclosing the United States of America:

Bounding box enclosing a geo disk of 5000 kilometers of radius:

Bounding box enclosing the countries of Africa:

Extend the bounding box of the countries of Africa by 200 miles:

Scope  (7)

Bounding box of a set of GeoGraphics primitives:

Bounding box of entities and entity classes:

Bounding box determined by individual geo locations:

Bounding box of a country:

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:

Locations of the Apollo landings on the Moon:

Extend the bounds by 1000 kilometers on the Moon's surface:

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:

Wolfram Research (2014), GeoBoundingBox, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoBoundingBox.html (updated 2015).

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

BibTeX

@misc{reference.wolfram_2023_geoboundingbox, author="Wolfram Research", title="{GeoBoundingBox}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/GeoBoundingBox.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_geoboundingbox, organization={Wolfram Research}, title={GeoBoundingBox}, year={2015}, url={https://reference.wolfram.com/language/ref/GeoBoundingBox.html}, note=[Accessed: 19-March-2024 ]}