# GeoLength

GeoLength[g]

gives the length of the geo path g.

# Details and Options • The path g in GeoLength[g] can be any one-dimensional geo primitive, such as GeoPath, GeoCircle, or GeoVisibleRegionBoundary.
• GeoLength[GeoPath[{p1,p2,}]] computes the length of the path formed by geodesic segments joining the locations pi.
• JoinedCurve and GeoGroup can be used to combine multiple paths.
• GeoLength[g] returns a Quantity object with units of length.
• GeoLength[{g1,g2,}] gives {GeoLength[g1],GeoLength[g2],}.
• Possible options of GeoLength include:
•  GeoModel Automatic model of the Earth or celestial body UnitSystem \$UnitSystem unit system to use in the result

# Examples

open allclose all

## Basic Examples(4)

Compute the total length of a geo path on the Earth:

Compute the total length of a path formed by geodesic segments:

Compute the total length of the rhumb lines joining the same points:

Length of the Earth's equator:

Length of a full meridian:

Compute the perimeter of a geo disk:

## Scope(3)

Compute the length of different one-dimensional geo elements:

Length of the perimeter of a region with holes, as a single joined object:

It can also be obtained by adding the lengths of the outer and inner curves:

Paths of different types can be combined with GeoGroup:

## Generalizations & Extensions(1)

GeoLength[Line[{p1,p2,}]] is equivalent to GeoLength[GeoPath[{p1,p2,}]] for geo locations pi:

## Options(2)

### UnitSystem(1)

Use the units determined by the value of \$UnitSystem:

Specify the unit system to use:

### GeoModel(1)

Length of a geo path on the Earth:

Length of the corresponding path on Mars:

## Applications(2)

Compute the length of the boundary of a country from its polygon:

That value is shorter than the actual length of the boundary, due to approximations in the polygon:

The length of a segment of parallel, or the projection on a parallel of any geo path, is called departure:

Express it in nautical miles:

## Properties & Relations(1)

For a geo path defined by a list of points, GeoLength[GeoPath[list]] is equivalent to GeoDistance[list]: