GeoPath[{loc1,loc2},pathtype]
位置 loc1と loc2の間のタイプ pathtype の経路を表すGeoGraphicsプリミティブである.
GeoPath[{loc1,loc2,…},pathtype]
連続する位置 lociをタイプ pathtype の経路で繋ぐことで形成される経路を表す.
GeoPath[{loc1,d,α},pathtype]
初期方位 α で位置 loc1から距離 d 移動する経路を表す.
GeoPath[{{loc11,loc12,…},{loc21,…},…},type,opts]
タイプ pathtype の不連続な経路の集合を表す.
GeoPath
GeoPath[{loc1,loc2},pathtype]
位置 loc1と loc2の間のタイプ pathtype の経路を表すGeoGraphicsプリミティブである.
GeoPath[{loc1,loc2,…},pathtype]
連続する位置 lociをタイプ pathtype の経路で繋ぐことで形成される経路を表す.
GeoPath[{loc1,d,α},pathtype]
初期方位 α で位置 loc1から距離 d 移動する経路を表す.
GeoPath[{{loc11,loc12,…},{loc21,…},…},type,opts]
タイプ pathtype の不連続な経路の集合を表す.
詳細とオプション
- 位置 lociは,度を単位とした緯度と経度の座標{lat,lon}として,GeoPosition[{lat,lon}]として,あるいは名前付き実体Entity[…]として指定することができる.
- 実体は,その"Position"特性で定義される位置として解釈される.
- GeoPathは地理的経路タイプをサポートする.
-
"Geodesic" 点と点の間の測地経路 "Rhumb","RhumbLine","Loxodrome" 点と点の間の方位が一定の経路 "GreatEllipse","GreatCircle" 地球の中心を通る平面上の経路 - GeoPath[{loc1,…}]は,タイプ"Geodesic"の経路を表す.
- "Geodesic"経路中の複数の位置 lociについては,連続する位置の各ペアが測地線によって繋がれるが,完全経路は一般に測地的ではない.他の経路タイプについても同じことが言える.
- 距離 diの複数のステップとそれぞれの初期方位 αiとの組合せは,GeoPath[{loc1,GeoDisplacement[{d1,α1}],GeoDisplacement[{d2,α2}],…},pathtype]によって表すことができる.
- 長い経路は,一般に,地図上では直線には見えない.
- 特別の名前付き測地経路
-
GeoPath[{"Parallel",lat}] 緯度 lat の緯線,経度方向に360°拡張 GeoPath[{"Meridian",lon}] 経度 lon の経線,緯度方向に180°拡張 GeoPath[{"Parallel",lat,{lon1,lon2}}] 緯度 lat の緯線,経度 lon1から lon2まで GeoPath[{"Meridian",lon,{lat1,lat2}}] 経度 lon の経線,緯度 lat1から lat2まで GeoPath["Equator"] 緯度0°の緯線 GeoPath["NorthernTropic"] 緯度23.4374°の緯線 GeoPath["SouthernTropic"] 緯度-23.4373°の緯線 GeoPath["ArcticCircle"] 緯度66.5622°の緯線 GeoPath["AntarcticCircle"] 緯度-66.5622°の緯線 GeoPath["GreenwichMeridian"] 経度0°の経線 GeoPath["DateLineMeridian"] 経度180°の経線 GeoPath["DateLine"] 国際日付け変更線 - 線の太さは,ThicknessまたはAbsoluteThickness,あるいはThickおよびThinを使って指定することができる.
- 点線・破線は,DashingまたはAbsoluteDashing,あるいはDashed,Dotted等を使って指定することができる.
- 線の陰影あるいは色は,CMYKColor,GrayLevel,Hue,OpacityあるいはRGBColorを使って指定することができる.
- オプションVertexColors->{c1,c2,…}を使って,線の色が,各点に指定された色 ciを補間するように指定することができる.
- 線分の繋ぎ方は,JoinFormで指定することができる.
- 線のキャップはCapFormを使って指定することができる.
例題
すべて開く すべて閉じる例 (5)
GeoGraphics[GeoPath[{{-35, -55}, {70, 100}}], GeoRange -> "World", Frame -> True]GeoGraphics[GeoPath[{GeoPosition[{-33, -55}], GeoPosition[{70, 100}]}, "Rhumb"], GeoRange -> "World"]GeoGraphics[Arrow@GeoPath[{Entity["City", {"NewYork", "NewYork", "UnitedStates"}], 500000, -120}, "Geodesic"]]GeoGraphics[{Red, GeoPath[{Entity["City", {"Portland", "Oregon", "UnitedStates"}], Entity["City", {"Orlando", "Florida", "UnitedStates"}]}, "Rhumb"]}]GeoGraphics[{Red, GeoPath[{Entity["City", {"Portland", "Oregon", "UnitedStates"}], Entity["City", {"Orlando", "Florida", "UnitedStates"}], Entity["City", {"Boston", "Massachusetts", "UnitedStates"}]}, "Geodesic"]}]スコープ (8)
GeoGraphics[{Red, GeoPath[{{25, -80}, GeoPosition[{42, -88}], Entity["City", {"LosAngeles", "California", "UnitedStates"}]}]}]GeoGraphics[{Red, GeoPath[{GeoPosition[{-30, -50}], GeoDisplacement[{Quantity[5000, "Kilometers"], "NorthWest"}]}]}]GeoGraphics[{Red, GeoPath[{GeoPosition[{0, 0}], GeoDisplacement[{1000000, 40}], GeoDisplacement[{500000, -30}], GeoDisplacement[{8000000, -120}], GeoDisplacement[{2000000, 0}]}, "Rhumb"]}]GeoGraphics[{Red, GeoPath[{"Parallel", 40}], Blue, GeoPath[{"Parallel", 10}], Orange, GeoPath[{"Parallel", -40}]}]GeoGraphics[{Red, GeoPath[{"Meridian", -50}], Blue, GeoPath[{"Meridian", 100}]}, GeoRange -> "World", GeoProjection -> "Bonne"]GeoGraphics[{Arrow@GeoPath[{"Parallel", 40, {-170, 140}}], Arrow@GeoPath[{"Parallel", -30, {170, -140}}]}, GeoRange -> "World"]GeoGraphics[{Red, GeoPath["Equator"], Orange, GeoPath["NorthernTropic"], GeoPath["SouthernTropic"], Blue, GeoPath["ArcticCircle"], GeoPath["AntarcticCircle"], Green, GeoPath["GreenwichMeridian"], GeoPath["DateLineMeridian"]}, GeoProjection -> "WinkelTripel"]GeoGraphics[{Red, GeoPath["DateLine"]}, GeoRange -> {All, {90, 270}}, GeoGridLines -> Quantity[15, "AngularDegrees"], Frame -> True]オプション (3)
VertexColors (2)
GeoGraphics[GeoPath[{{-70, -70}, {20, 40}}, VertexColors -> {Blue, Red}]]地球上の1000kmの70測地ステップによるランダムウォーク:
GeoGraphics[GeoPath[Flatten[{GeoPosition[{0, 0}], Table[GeoDisplacement[{10^6, RandomReal[{0, 360}]}], {70}]}], VertexColors -> Table[Hue[(i/100)], {i, 0, 70}]]]アプリケーション (3)
"LambertAzimuthal"投影法による,測地線の辺を持つ測地三角形:
geotriangle = FilledCurve[{GeoPath[{{0, 0}, {90, 0}, {0, 90}, {0, 0}}]}];GeoGraphics[geotriangle, GeoProjection -> "LambertAzimuthal", GeoRange -> "World"]"Equirectangular"投影法による同じ測地三角形:
GeoGraphics[geotriangle, GeoProjection -> "Equirectangular", GeoRange -> "World"]GeoGraphics[geotriangle, GeoProjection -> "Bonne", GeoRange -> "World"]移動データは等しいが初期位置が異なる数本の経路.Arrowを使う:
GeoGraphics[Table[{Hue[(lat + 90) / 180], Arrow[GeoPath[{{lat, -90}, GeoDisplacement[{10 ^ 7, 30}]}]]}, {lat, -90, 90, 10}]]ツールチップを作って,測地経路として描かれた測地線格子から座標が読み取れるようにする:
GeoGraphics[{Red, Table[Tooltip[GeoPath[{"Parallel", lat}], Row[{"lat = ", lat, °}]], {lat, -90, 90, 15}], Orange, Table[Tooltip[GeoPath[{"Meridian", lon}], Row[{"lon = ", lon, °}]], {lon, -180, 180, 30}]}, GeoProjection -> "Bonne"]特性と関係 (5)
p = GeoPosition[{-80, -50}];
q = GeoPosition[{80, 50}];デフォルトの正距円筒測地投影法では,航程線(赤)も測地線(緑)も直線(比較のため黒で示す)ではない:
GeoGraphics[{Line[{p, q}], Red, GeoPath[{p, q}, "Rhumb"], Green, GeoPath[{p, q}, "Geodesic"]}, GeoRange -> "World"]メルカトル図法では航程線は直線になり,以下では黒線に重なっている:
GeoGraphics[{Line[{p, q}], Red, GeoPath[{p, q}, "Rhumb"], Green, GeoPath[{p, q}, "Geodesic"]}, GeoRange -> "World", GeoProjection -> "Mercator"]点の1つを中心とした方位図法では測地線は直線で,これが黒い線に重ねられている:
{GeoGraphics[{Line[{p, q}], Red, GeoPath[{p, q}, "Rhumb"], Green, GeoPath[{p, q}, "Geodesic"]}, GeoRange -> "World", GeoProjection -> {"LambertAzimuthal", "Centering" -> p}], GeoGraphics[{Line[{p, q}], Red, GeoPath[{p, q}, "Rhumb"], Green, GeoPath[{p, q}, "Geodesic"]}, GeoRange -> "World", GeoProjection -> {"LambertAzimuthal", "Centering" -> q}]}Graphics3D[gc = N[PolyhedronData["Dodecahedron", "GraphicsComplex"]], Boxed -> False, Method -> {"ShrinkWrap" -> True}, ImageSize -> Small]points = Most /@ First[GeoPosition[GeoPositionXYZ[gc[[1]], Norm[gc[[1, 1]]]]]]GeoGraphics[GeoPath[Extract[points, List /@ gc[[2, 1]]]], GeoRange -> "World"]GeoGraphics[GeoPath[Extract[points, List /@ gc[[2, 1]]]], GeoRange -> "World", GeoProjection -> "LambertAzimuthal"]測地円板あるいは測地円はその中心からの測地線の端点を使って形成される:
center = GeoPosition[{50, 0}];
radius = 4000000;GeoGraphics[{Red, GeoCircle[center, radius], Blue, Table[GeoPath[{center, GeoDisplacement[{radius, bearing}]}], {bearing, -180, 180, 30}]}]測地経路の端点はGeoDestinationを使って計算することができる:
p = GeoPosition[{40, -120}];
c = GeoDisplacement[{4000000, 100}];GeoGraphics[{GeoPath[{p, c}], Entity["Country", "UnitedStates"]}, Frame -> True]q = GeoDestination[p, c]GeoDistanceおよびGeoDirectionを使って経路の移動データを確かめる:
{GeoDistance[p, q], GeoDirection[p, q]}または,GeoDisplacementを直接使う:
GeoDisplacement[p, q]city = Entity["City", {"Rome", "Lazio", "Italy"}];
r = Quantity[6367470., "Meters"];
course = GeoDisplacement[{6Pi r, "NE"}, "Geodesic"]計算はデフォルトで楕円体地球について行われるので,測地経路は閉じない:
GeoGraphics[Arrow@GeoPath[{city, course}], GeoCenter -> city, GeoRange -> Quantity[150, "Kilometers"]]GeoGraphics[Arrow@GeoPath[{city, course}], GeoCenter -> city, GeoRange -> Quantity[150, "Kilometers"], GeoModel -> r]course = GeoDisplacement[{6Pi r, "NE"}, "GreatEllipse"]GeoGraphics[Arrow@GeoPath[{city, course}], GeoCenter -> city, GeoRange -> Quantity[150, "Kilometers"]]インタラクティブな例題 (1)
Manipulate[GeoGraphics[{PointSize[0.02], Point[GeoPosition[{lat1, lon1}]], Point[GeoPosition[{lat2, lon2}]], Red, GeoPath[{{lat1, lon1}, {lat2, lon2}}, "Loxodrome"], Green, GeoPath[{{lat1, lon1}, {lat2, lon2}}, "Geodesic"]}, GeoRange -> "World"], {{lat1, 45}, -90, 90}, {{lon1, -80}, -180, 180}, {{lat2, -30}, -90, 90}, {{lon2, 80}, -180, 180}]おもしろい例題 (3)
start = EntityValue[Entity["Building", "TourEiffel"], EntityProperty["Building", "Position"]];
course = {GeoDisplacement[{10^5, 0}], GeoDisplacement[{10^5, 90}], GeoDisplacement[{10^5, 180}], GeoDisplacement[{10^5, -90}]};GraphicsRow[Apply[GeoGraphics[{Red, PointSize[Large], Point[start], Darker[Green], Thickness[Large], Arrow@GeoPath[{start, course}, "Geodesic"]}, ##1]&, {{}, {GeoCenter -> start, GeoRange -> Quantity[2, "Miles"]}}, {1}]]GeoDistance[start, Last[GeoDestination[start, course]]]GraphicsRow[Apply[GeoGraphics[{Red, PointSize[Large], Point[start], Darker[Green], Thickness[Large], Arrow@GeoPath[{start, course}, "Loxodrome"]}, ##1]&, {{}, {GeoCenter -> start, GeoRange -> Quantity[2, "Miles"]}}, {1}]]ゼウス神殿から,
の連分数の最初の3141項によって与えられる経路に沿って進む:
start = Entity["Building", "TempleZeusOlympia"];
gclist = GeoDisplacement[{1000#, #}]& /@ ContinuedFraction[Pi, 3141];end = Last@GeoDestination[start, gclist]First[GeoNearest["City", end]]GeoDistance[end, %]GeoGraphics[{Blue, PointSize[Large], Point[start], Yellow, GeoPath[{start, gclist}]}]地球上を六角形タイルで敷き詰められるかどうか調べる.デンバーから100マイルのステップで繰り返し動かす:
p0 = GeoPosition[Entity["City", {"Denver", "Colorado", "UnitedStates"}]]d = Quantity[100, "Miles"]初期方位
の各測地線について,方位
と
で2本の新しい測地線を引く:
newConnections[{GeoPath[{p1_, p2_}], {d_, α0_}}] := Table[{GeoPath[{p2, GeoDestination[p2, {d, α}]}], {d, α}}, {α, {α0 - 60, α0 + 60}}];
newConnections[list_List] := Flatten[newConnections /@ list, 1];pathList = Cases[NestList[newConnections, Table[{GeoPath[{p0, GeoDestination[p0, {d, α}]}], {d, α}}, {α, {0, 120, 240}}], 8], _GeoPath, Infinity];結果の測地線の集合は,地球表面の曲率のために重なり合わない:
GeoGraphics[{Thin, Opacity[0.4], pathList}, ImageSize -> Medium, GeoBackground -> "Plain"]テクニカルノート
関連するガイド
-
▪
- 場所と経路 ▪
- 地図と地図製作 ▪
- 記号的なグラフィックス言語 ▪
- 地理データと実体 ▪
- グラフ化と情報の可視化
テキスト
Wolfram Research (2014), GeoPath, Wolfram言語関数, https://reference.wolfram.com/language/ref/GeoPath.html.
CMS
Wolfram Language. 2014. "GeoPath." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoPath.html.
APA
Wolfram Language. (2014). GeoPath. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoPath.html
BibTeX
@misc{reference.wolfram_2026_geopath, author="Wolfram Research", title="{GeoPath}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/GeoPath.html}", note=[Accessed: 18-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_geopath, organization={Wolfram Research}, title={GeoPath}, year={2014}, url={https://reference.wolfram.com/language/ref/GeoPath.html}, note=[Accessed: 18-November-2026]}