GeoPolygonCopy to clipboard.
✖
GeoPolygon
is a GeoGraphics primitive that represents a filled polygon whose boundary is formed by geodesic segments between locations loci and loci+1.
represents a geo polygon with holes {q1,…,qm}, ….
specifies which of the two sides of each boundary polyi is in the interior of the geo polygon.
represents a geo polygon whose boundary is formed by geo paths of type pathtype.
Details

- GeoPolygon[…] describes a 2D geographic region on the Earth or another geo model. It can be used in geo visualization functions like GeoGraphics or in geo computations like GeoArea.
- In GeoPolygon[{loc1,…,locn}], the boundary {loc1,…,locn} divides the world in two complementary regions, and by default GeoPolygon[{loc1,…,locn}] and GeoPolygon[{loc1,…,locn},Automatic] refer to the smaller one. Possible ways to specify the region are:
-
GeoPolygon[locs{intloc}] intloc is an interior location to the geo polygon GeoPolygon[locs,extloc] extloc is an exterior location to the geo polygon GeoPolygon[locs,"SmallerArea"] the interior of the geo polygon is the smaller region GeoPolygon[locs,"LargerArea"] the interior of the geo polygon is the larger region GeoPolygon[locs,"LeftArea"] the interior is to the left as locs are traversed GeoPolygon[locs,"RightArea"] the interior is to the right as locs are traversed - The locations loci can be specified as latitude and longitude coordinates {lat,lon} in degrees, as GeoPosition[{lat,lon}] or as named entities Entity[…].
- Entities will be interpreted as the position determined by their "Position" property.
- GeoPolygon supports the geographic path types:
-
"Geodesic" geodesic path between points "Rhumb","RhumbLine","Loxodrome" path of constant bearing between points "GreatEllipse","GreatCircle" path on a plane through Earth's center
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Draw a geodesic rectangle on the surface of the Earth:

https://wolfram.com/xid/0en0c0eqy-t6zczz

Draw the complementary region of a geodesic rectangle on the surface of the Earth:

https://wolfram.com/xid/0en0c0eqy-1kea9x

Draw a geodesic rectangle with a hole:

https://wolfram.com/xid/0en0c0eqy-opukkx

Scope (9)Survey of the scope of standard use cases
Data Specification (3)
Specify the vertices of a geo polygon as latitude-longitude pairs in degrees:

https://wolfram.com/xid/0en0c0eqy-qw5huy

Give the vertices of a geo polygon as a GeoPosition object:

https://wolfram.com/xid/0en0c0eqy-xnd8p4

Use a list of individual GeoPosition objects instead:

https://wolfram.com/xid/0en0c0eqy-cgvxlb

Use a geo entity to specify a region:

https://wolfram.com/xid/0en0c0eqy-g3qkai

Specify holes in a geographic region using other geo entities:

https://wolfram.com/xid/0en0c0eqy-050suf

Sideness Specification (4)
Specify one of the two sides of the equator by giving an interior point, for example, a pole:

https://wolfram.com/xid/0en0c0eqy-l7muu6


https://wolfram.com/xid/0en0c0eqy-d3b60p

Specify the opposite pole for the same boundary locations:

https://wolfram.com/xid/0en0c0eqy-osihnq


https://wolfram.com/xid/0en0c0eqy-fxrnm3

Specify geo polygon sideness by giving an exterior point:

https://wolfram.com/xid/0en0c0eqy-9gfftx

Choose the opposite side of the world by indicating that {0, 0} is an exterior point:

https://wolfram.com/xid/0en0c0eqy-f6my8n

Indicate whether the region of interest is the smaller or the larger of the two sides of a closed boundary:

https://wolfram.com/xid/0en0c0eqy-29idou

Take the polygon of Portugal as returned by EntityValue:

https://wolfram.com/xid/0en0c0eqy-nr1z0h

The polygon boundary is followed clockwise:

https://wolfram.com/xid/0en0c0eqy-bcovkn

Therefore, the interior of Portugal falls on the right of the curve:

https://wolfram.com/xid/0en0c0eqy-5zbbeo


https://wolfram.com/xid/0en0c0eqy-xvjmvr

Use "LeftArea" to select the left side of the boundary:

https://wolfram.com/xid/0en0c0eqy-v4q9


https://wolfram.com/xid/0en0c0eqy-8m1la4

Geo Path Types (2)
By default, the edges of a GeoPolygon object are geodesic segments:

https://wolfram.com/xid/0en0c0eqy-o51lym

Use loxodromes as edges for a different GeoPolygon object with the same vertices:

https://wolfram.com/xid/0en0c0eqy-gfiyh9

Geodesics and great ellipses are similar but not identical on the ellipsoid:

https://wolfram.com/xid/0en0c0eqy-5sm8k3

Zoom in around a location in northern Italy to see deviations of the order of a kilometer:

https://wolfram.com/xid/0en0c0eqy-mv3xw3

Properties & Relations (2)Properties of the function, and connections to other functions
The boundary of a GeoPolygon[locs] object is a closed GeoPath[locs] object:

https://wolfram.com/xid/0en0c0eqy-ddxqj3

https://wolfram.com/xid/0en0c0eqy-w3fhmj

The same holds for other path types:

https://wolfram.com/xid/0en0c0eqy-8a3t7x

GeoPolygon[locs] uniquely defines the positions of all boundary points, both vertices and edges:

https://wolfram.com/xid/0en0c0eqy-5fo8y5

https://wolfram.com/xid/0en0c0eqy-081s4a

Polygon[GeoPosition[locs]] defines the position of the vertices, using straight lines between them:

https://wolfram.com/xid/0en0c0eqy-saskax

In other projections, the red GeoPolygon area stays constant, but not the blue area:

https://wolfram.com/xid/0en0c0eqy-o3y3w

Possible Issues (1)Common pitfalls and unexpected behavior
GeoPolygon boundary segments joining antipodal points may be ambiguous:

https://wolfram.com/xid/0en0c0eqy-jmoqer

That geo polygon was empty because the geodesic joining points and
goes through the North Pole, as shown by a small change in the longitude of the first point:

https://wolfram.com/xid/0en0c0eqy-4cbmrq

To close the geo polygon through the equator, add an intermediate point on the equator:

https://wolfram.com/xid/0en0c0eqy-2q47w8

To close the geo polygon through the South Pole, add the South Pole as an intermediate point:

https://wolfram.com/xid/0en0c0eqy-4oubs7

Wolfram Research (2020), GeoPolygon, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoPolygon.html.
Text
Wolfram Research (2020), GeoPolygon, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoPolygon.html.
Wolfram Research (2020), GeoPolygon, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoPolygon.html.
CMS
Wolfram Language. 2020. "GeoPolygon." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoPolygon.html.
Wolfram Language. 2020. "GeoPolygon." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoPolygon.html.
APA
Wolfram Language. (2020). GeoPolygon. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoPolygon.html
Wolfram Language. (2020). GeoPolygon. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoPolygon.html
BibTeX
@misc{reference.wolfram_2025_geopolygon, author="Wolfram Research", title="{GeoPolygon}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/GeoPolygon.html}", note=[Accessed: 16-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_geopolygon, organization={Wolfram Research}, title={GeoPolygon}, year={2020}, url={https://reference.wolfram.com/language/ref/GeoPolygon.html}, note=[Accessed: 16-April-2025
]}