GeoBounds

GeoBounds[g]

gives the ranges of latitudes and longitudes in the geo region g.

GeoBounds[g,δ]

pads ranges of latitudes and longitudes by ±δ.

GeoBounds[g,Scaled[s]]

pads range of latitudes and longitudes by a scaled amount s.

Details and Options

  • GeoBounds[g] returns ranges {{latmin,latmax},{lonmin,lonmax}} of latitude and longitude in degrees.
  • 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 ranges of latitude and longitude of the bounding box enclosing the United States of America:

Ranges of the bounding box enclosing a geo disk of 5000 kilometers of radius:

Latitude and longitude ranges enclosing the countries of Africa:

Extend the latitude and longitude ranges of Africa by 200 miles:

Scope  (7)

Latitude and longitude ranges of a set of GeoGraphics primitives:

Ranges of the bounding box enclosing entities and entity classes:

Bounding box determined by individual geo locations:

Ranges of latitude and longitude 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, GeoBounds 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 GeoModelAutomatic means that the geo model can also be inferred from other parts of the input:

The information provided must be consistent:

Properties & Relations  (6)

GeoBounds returns respective ranges of latitude and longitude:

GeoBoundingBox returns the SW and NE corners of the corresponding bounding box:

They define the same 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:

GeoBounds on a long GeoPath object limits the extent of longitudes to 360 degrees:

Such a geodesic of one million kilometers of length winds around the Earth nearly 25 times:

This is the final location of the geo path:

Countries crossing the 180° meridian return a continuous range of longitudes:

The padding δ in GeoBounds[g,δ] corresponds to the GeoRangePadding->δ option of GeoGraphics:

That coincides with these padded ranges:

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

Text

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

CMS

Wolfram Language. 2014. "GeoBounds." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/GeoBounds.html.

APA

Wolfram Language. (2014). GeoBounds. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoBounds.html

BibTeX

@misc{reference.wolfram_2021_geobounds, author="Wolfram Research", title="{GeoBounds}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/GeoBounds.html}", note=[Accessed: 07-December-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_geobounds, organization={Wolfram Research}, title={GeoBounds}, year={2015}, url={https://reference.wolfram.com/language/ref/GeoBounds.html}, note=[Accessed: 07-December-2021 ]}