GeoReposition[gdata,pos1pos2]
moves the geo data gdata along the great circle from pos1 to pos2, preserving North.
GeoReposition[gdata,{pos1pos2,α}]
performs an additional rotation of angle α around pos2.
GeoReposition[gdata,mat]
performs the rotation specified by the 3D rotation matrix mat.
GeoReposition[rot]
represents an operator form of GeoReposition that can be applied to an expression.
GeoReposition
GeoReposition[gdata,pos1pos2]
moves the geo data gdata along the great circle from pos1 to pos2, preserving North.
GeoReposition[gdata,{pos1pos2,α}]
performs an additional rotation of angle α around pos2.
GeoReposition[gdata,mat]
performs the rotation specified by the 3D rotation matrix mat.
GeoReposition[rot]
represents an operator form of GeoReposition that can be applied to an expression.
Details
- GeoReposition moves locations and geo primitives using spherical rotations, hence approximately preserving shapes and areas on ellipsoidal geo models.
- Rotations are performed clockwise around the rotation axis.
- The geo data gdata can be a GeoPosition object, a geo entity, a geo primitive or a list of any of them, possibly including graphics directives, that are left unmodified.
- GeoReposition[gdata,{pos,α}] is equivalent to GeoReposition[gdata,{pospos,α}], performing a clockwise rotation of angle α around pos.
- The angle α in GeoReposition[gdata,{…,α}] can be given as a Quantity angle or a number of degrees.
- GeoReposition[rot][gdata] is equivalent to GeoReposition[gdata,rot].
Examples
open all close allBasic Examples (2)
Move the US polygon over Europe:
GeoReposition[Entity["Country", "UnitedStates"]["Polygon"], Entity["City", {"KansasCity", "Missouri", "UnitedStates"}] -> Entity["City", {"Vienna", "Vienna", "Austria"}]]GeoGraphics[%]Displace and rotate 90 degrees the polygon of Argentina over Australia:
GeoReposition[{Red, Entity["Country", "Argentina"]["Polygon"]}, {Entity["City", {"BuenosAires", "BuenosAires", "Argentina"}] -> GeoPosition[{-31, 137}], 90}]GeoGraphics[%, GeoRange -> Entity["Country", "Australia"]]Scope (5)
Move a geo location 90 degrees about the North Pole:
GeoReposition[GeoPosition[{40, 0}], {"NorthPole", 90}]Compare the US East Coast with the northwest coast of Australia:
GeoReposition[Entity["Country", "Australia"]["Polygon"], {GeoPosition[{-15, -230}] -> GeoPosition[{42, -67}], -12}]GeoGraphics[%, GeoRange -> {{13, 52}, {-116, -43}}]Move 85 degrees west the polygon of Portugal:
portugal = EntityValue[Entity["Country", "Portugal"], "Polygon"]GeoReposition[portugal, {GeoPosition[{90, 0}], 85}]Compare it with the polygon of the state of Illinois:
GeoGraphics[{Red, %, Blue, Polygon[Entity["AdministrativeDivision", {"Illinois", "UnitedStates"}]]}, GeoBackground -> "MinimalGray"]GeoReposition[Entity["Country", "Chile"]["Polygon"], {Entity["City", {"Santiago", "Metropolitana", "Chile"}] -> GeoPosition[{-27, 137}], 90}]GeoGraphics[%]Use GeoReposition as an operator form:
rot = GeoReposition[{Entity["City", {"Rome", "Lazio", "Italy"}] -> Entity["City", {"BuenosAires", "BuenosAires", "Argentina"}], -90}]Entity["Country", "Italy"]["Polygon"]rot[%]Applications (1)
Show the large area distortion of the Mercator projection by moving Greenland over Africa:
greenland = EntityValue[Entity["Country", "Greenland"], "Polygon"]Take a point p in Greenland and a point q in Africa:
p = GeoPosition[{75, -40}];
q = GeoPosition[{0, 20}];Rotate the polygon of Greenland so that point p is moved to q:
rotated = GeoReposition[greenland, p -> q]GeoGraphics[{GeoStyling@Orange, Polygon[Entity["GeographicRegion", "Africa"]], GeoStyling@Blue, Polygon[Entity["Country", "Greenland"]], rotated, Arrow[GeoPath[{p, q}]]}, GeoProjection -> "Mercator", GeoRange -> "World", GeoGridLines -> Automatic]The area of Africa is much larger than the area of Greenland:
GeoArea[Entity["GeographicRegion", "Africa"]] / GeoArea[Entity["Country", "Greenland"]]Show the same transformation in an equal-area projection:
GeoGraphics[{GeoStyling@Orange, Polygon[Entity["GeographicRegion", "Africa"]], GeoStyling@Blue, Polygon[Entity["Country", "Greenland"]], rotated, Arrow[GeoPath[{p, q}]]}, GeoProjection -> "Mollweide", GeoRange -> "World"]Possible Issues (1)
GeoReposition performs spherical rotations, so ellipsoidal GeoArea results may change slightly:
brazil = Entity["Country", "Brazil"]["Polygon"];newbrazil = GeoReposition[brazil, Entity["City", {"Brasilia", "DistritoFederal", "Brazil"}] -> Entity["City", {"Reykjavik", "Hofudhborgarsvaedhi", "Iceland"}]];{GeoArea[brazil], GeoArea[newbrazil]}The GeoArea results coincide when using a spherical model for the Earth:
{GeoArea[brazil, GeoModel -> "SphericalEarth"], GeoArea[newbrazil, GeoModel -> "SphericalEarth"]}History
Text
Wolfram Research (2025), GeoReposition, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoReposition.html.
CMS
Wolfram Language. 2025. "GeoReposition." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoReposition.html.
APA
Wolfram Language. (2025). GeoReposition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoReposition.html
BibTeX
@misc{reference.wolfram_2026_georeposition, author="Wolfram Research", title="{GeoReposition}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/GeoReposition.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_georeposition, organization={Wolfram Research}, title={GeoReposition}, year={2025}, url={https://reference.wolfram.com/language/ref/GeoReposition.html}, note=[Accessed: 12-June-2026]}