Debian Codegraph @

texmf-dist/doc/latex/mercatormap/mercatormap.doc.limitations.tex

raw
1 % !TeX root = mercatormap.tex
2 % !TeX encoding=UTF-8
3 % !TeX spellcheck=en_US
4 % include file of mercatormap.tex (manual of the LaTeX package mercatormap)
5 \clearpage
6 \section{Limitations and Caveats}%
7
8 %-------------------------------------------------------------------------------
9 \subsection{No Polar Regions}
10 The standard Mercator projection is not suited for north or south polar
11 regions.
12 The Web Mercator projections only covers
13 positions between \mrcformlat{-85.0511} and \mrcformlat{85.0511}
14 with map tiles. Equally, the |mercatormap| package does only provide support for
15 this area.
16
17 If your map overlaps to south of \mrcformlat{-85.0511} or to north of \mrcformlat{85.0511},
18 compiler errors are possible because of internal computation limitations.
19 In any case, there are no map tiles.
20
21 \tikzsetnextfilename{limit_polar}%
22 \begin{dispExample}
23 \begin{tikzpicture}
24 \mrcmap[type=reference,latitude=-85.0511,longitude=0,zoom=3,
25 source=opentopomap,
26 tex width=\linewidth, tex height=8cm]{limit_polar}
27 \mrcdrawmap
28 \node[above=4mm,font=\fontsize{7pt}{7pt}\sffamily] at (mrcmap.south)
29 {\mrcmapattribution};
30 \mrcclipmap
31 \mrcdrawnetwork[network pieces=10,network distance=10mm]
32 \path[draw] (mrcmap.south west) rectangle (mrcmap.north east);
33 \mrcmarker{type=pin,position=-85.0511:0,
34 contents={End of the mapped world}}
35 \end{tikzpicture}
36 \end{dispExample}
37
38 %-------------------------------------------------------------------------------
39 \clearpage
40 \subsection{International Dateline (180th Meridian)}\label{sec:dateline}
41 If your map includes the 180th meridian (more or less the international dateline),
42 remember that the eastern hemisphere lies \emph{west} and
43 the western hemisphere lies \emph{east} for your map.
44 Consider the following example displaying Vladivostok and Anchorage.
45 Here, \refKey{mermap/supply/west} is set to \ang{130}\,E (|130|)
46 and \refKey{mermap/supply/east} is set to \ang{149}\,W (|211| instead of |-149|).
47
48 There is some automatic correction for positions to fit inside the
49 defined map (see Anchorage in the example below), but
50 \emph{west} should be lower than \emph{east}.
51
52 \tikzsetnextfilename{limit_dateline}%
53 \begin{dispExample}
54 \begin{tikzpicture}
55 \mrcmap[type=areafit,tex width=\linewidth,tex height=8cm,
56 source=topplusopen web,
57 south=42,north=62,west=130,east=-149+360]{limit_dateline}
58 \mrcdrawmap
59 \node[below,font=\fontsize{7pt}{7pt}\sffamily] at (mrcmap.south)
60 {\mrcmapattribution};
61 \mrcclipmap
62 \draw (mrcmap.south west) rectangle (mrcmap.north east);
63 \draw (mrc cs:lat=\mrcmapsouth,lon=180)
64 -- node[sloped,above] {180th meridian}
65 node[sloped,below,red] {add 360 to longitude for eastern border}
66 (mrc cs:lat=\mrcmapnorth,lon=180);
67 \mrcmarker{type=pin,position=61.22:-149.88,contents={Anchorage}}
68 \mrcmarker{type=pin,position=43.12:131.9, contents={Vladivostok}}
69 \end{tikzpicture}
70 \end{dispExample}
71
72 %-------------------------------------------------------------------------------
73 \clearpage
74 \subsection{Very small Scale Maps}
75 If a map has a very small scale, a coordinate point may appear more than once
76 on the map. But, the map coordinates of this package will only
77 pilot to a single point:
78
79 \tikzsetnextfilename{limit_small_scale_1}%
80 \begin{dispExample}
81 \begin{tikzpicture}
82 \mrcmap[type=reference,latitude=48.14,longitude=11.57,
83 source=opentopomap,
84 tex width=\linewidth,tex height=4cm,zoom=1]{limit_small_scale_1}
85 \mrcdrawmap
86 \node[below,font=\fontsize{7pt}{7pt}\sffamily] at (mrcmap.south)
87 {\mrcmapattribution}; \mrcclipmap
88 \path[draw] (mrcmap.south west) rectangle (mrcmap.north east);
89 \mrcmarker{type=pin,position=61.22:-149.88,contents={Anchorage}}
90 \mrcmarker{type=pin,position=43.12:131.9,contents={Vladivostok}}
91 \end{tikzpicture}
92 \end{dispExample}
93
94 You cannot trust too much in figures from
95 \refCom{mrcprettymapscale},
96 \refCom{mrcprettymapwidth},
97 \refCom{mrcprettymapheight}, etc
98 for large and medium scale maps.
99 For small scale maps, these figures are worse and even misleading.
100 Better do not use them:
101
102 \tikzsetnextfilename{limit_small_scale_2}%
103 \begin{dispExample}
104 \mermapset{supply/source=opentopomap}
105 \begin{tikzpicture}
106 \mrcmap[type=reference,latitude=48.14,longitude=11.57,
107 tex width=\linewidth,tex height=6cm,zoom=2]{limit_small_scale_2}
108 \mrcdrawmap
109 \node[below,font=\fontsize{7pt}{7pt}\sffamily] at (mrcmap.south)
110 {\mrcmapattribution}; \mrcclipmap \mrcdrawinfo
111 \end{tikzpicture}
112 \end{dispExample}
113
114
115 %-------------------------------------------------------------------------------
116 \clearpage
117 \subsection{Zoom is not Scale}
118
119 Using the same zoom value for different latitudes can give completely
120 different scales. The following example for Oslo and Rio de Janeiro
121 at zoom 12 scales to 1:151000 and otherwise 1:277000.
122 \tikzexternaldisable
123
124 \tikzsetnextfilename{limit_zoom_scale_1}
125 \begin{dispExample}
126 \mermapsetsupply{source=topplusopen web, type=reference, zoom=12,
127 tex width=7cm, tex height=5cm}
128 \begin{tikzpicture}
129 \mrcmap[latitude=59.91,longitude=10.75]{oslo1} \mrcdrawmap
130 \end{tikzpicture}\hfill\begin{tikzpicture}
131 \mrcmap[latitude=-22.91,longitude=-43.20]{rio1} \mrcdrawmap
132 \end{tikzpicture}
133 \begin{center}\fontsize{7pt}{7pt}\sffamily\mrcmapattribution\end{center}
134 \end{dispExample}
135
136 Same example again, but with \refKey{mermap/flex scale} which gives
137 1:150000 for both cities and comparable maps.
138
139 \tikzsetnextfilename{limit_zoom_scale_2}
140 \begin{dispExample}
141 \mermapsetsupply{source=topplusopen web, type=reference}
142 \begin{tikzpicture}
143 \mrcmap[latitude=59.91,longitude=10.75, flex reference scale=150000,
144 tex width=7cm, tex height=5cm]{oslo2} \mrcdrawmap
145 \end{tikzpicture}\hfill\begin{tikzpicture}
146 \mrcmap[latitude=-22.91,longitude=-43.20, flex reference scale=150000,
147 tex width=7cm, tex height=5cm]{rio2} \mrcdrawmap
148 \end{tikzpicture}
149 \begin{center}\fontsize{7pt}{7pt}\sffamily\mrcmapattribution\end{center}
150 \end{dispExample}
151
152
153 %-------------------------------------------------------------------------------
154 \clearpage
155 \subsection{Distances}
156
157 There are at least three kinds of distance measures between two points
158 on the map:
159 \begin{itemize}
160 \item Measure the distance with a ruler on the printed (or displayed) map
161 and multiply with the \refCom{mrcmapscaledenominator}.
162 Note that the map scale denominator is only (approximately) correct
163 for the map center.
164 \item Compute the loxodromic distance, e.g. with \refCom{mrcstoreloxodistance}
165 which gives the (approximated) distance following a loxodrome.
166 On our Mercator map, this would be equal to the ruler method from above,
167 if the map scale would be constant.
168 \item Compute the orthodromic distance, e.g. with \refCom{mrcstoreorthodistance}
169 which gives the (approximated) shortest distance following an orthodrome.
170 \end{itemize}
171 Apart from the approximate nature of the implementation, these distances
172 are expected to be quite identical for large scale maps, but not for
173 (very) small scale maps.
174
175 \clearpage
176 \tikzsetnextfilename{limit_distance1}%
177 \begin{dispExample*}{}
178 \begin{tikzpicture}
179 \mrcNPdef{munich}{48.137222}{11.575556}
180 \mrcNPdef{fraunberg}{48.3685075}{11.9894209}
181 \mrcmap[type=reference, named position=munich,
182 flex reference scale=1000000,
183 source=topplusopen web,
184 tex width=\linewidth, tex height=10cm]{limit_distance1}
185 \mrcdrawmap
186 \node[below left,font=\fontsize{7pt}{7pt}\sffamily] at (mrcmap.south east)
187 {\mrcmapattribution};
188 \node[below right,font=\fontsize{7pt}{7pt}\sffamily] at (mrcmap.south west)
189 {\mrcprettymapscale};
190 \mrcclipmap
191 \path[draw] (\mrcNPcs{munich}) circle (\mrckmtotex{40});
192 \node[above,fill=white,opacity=0.85,text opacity=1]
193 at ([yshift=\mrckmtotex{40}]\mrcNPcs{munich}) {\SI{40}{km}};
194 \draw[blue,very thick] (\mrcNPcs{munich}) -- (\mrcNPcs{fraunberg});
195 \mrcNPdraworthodrome[red,very thick] {munich}{fraunberg}
196 \path (\mrcNPcs{munich}) --
197 node[sloped,above=3mm,red,fill=white,opacity=0.85,text opacity=1]
198 { \mrcNPprettyorthodistance{munich}{fraunberg} }
199 node[sloped,below=3mm,blue,fill=white,opacity=0.85,text opacity=1]
200 { \mrcNPprettyloxodistance{munich}{fraunberg} }
201 (\mrcNPcs{fraunberg});
202 \mrcmarker{type=pin,named position=munich,contents={M\"unchen}}
203 \mrcmarker{type=pin,named position=fraunberg,contents={Fraunberg}}
204 \end{tikzpicture}
205 \end{dispExample*}
206
207 \clearpage
208 The next example gives notable different distances. The aberration is
209 dependent from the center angle.
210
211 \tikzsetnextfilename{limit_distance2}%
212 \begin{dispExample*}{breakable}
213 \begin{tikzpicture}
214 \mrcNPdef{munich}{48.137222}{11.575556}
215 \mrcNPdef{barcelona}{41.3947688}{2.0787285}
216 \mrcmap[type=reference, named position=munich,
217 flex reference scale=25000000,
218 source=topplusopen web,
219 tex width=\linewidth, tex height=10cm]{limit_distance2}
220 \mrcdrawmap
221 \node[below left,font=\fontsize{7pt}{7pt}\sffamily] at (mrcmap.south east)
222 {\mrcmapattribution};
223 \node[below right,font=\fontsize{7pt}{7pt}\sffamily] at (mrcmap.south west)
224 {\mrcprettymapscale};
225 \mrcclipmap
226 \path[draw] (\mrcNPcs{munich}) circle (\mrckmtotex{1000});
227 \node[above,fill=white,opacity=0.85,text opacity=1]
228 at ([yshift=\mrckmtotex{1000}]\mrcNPcs{munich}) {\SI{1000}{km}};
229 \draw[blue,very thick] (\mrcNPcs{munich}) -- (\mrcNPcs{barcelona});
230 \mrcNPdraworthodrome[red,very thick] {munich}{barcelona}
231 \path (\mrcNPcs{munich}) --
232 node[sloped,above=3mm,red,fill=white,opacity=0.85,text opacity=1]
233 { \mrcNPprettyorthodistance{munich}{barcelona} }
234 node[sloped,below=3mm,blue,fill=white,opacity=0.85,text opacity=1]
235 { \mrcNPprettyloxodistance{munich}{barcelona} }
236 (\mrcNPcs{barcelona});
237 \mrcmarker{type=pin,named position=munich,contents={M\"unchen}}
238 \mrcmarker{type=pinflip,named position=barcelona,contents={Barcelona}}
239 \end{tikzpicture}
240 \end{dispExample*}
241
242
243 \clearpage
244 The following small scale example contains unacceptable deviations from
245 the displayed circle radius of \SI{3000}{\kilo\meter}. The aberration is
246 highly dependent from the center angle. For such small scale maps,
247 displaying a distance circle should be avoided.
248
249
250 \tikzsetnextfilename{limit_distance3}%
251 \begin{dispExample*}{breakable}
252 \begin{tikzpicture}
253 \mrcNPdef{munich}{48.137222}{11.575556}
254 \mrcNPdef{neskaup}{65.1446431}{-13.7420082}
255 \mrcNPdef{atyrau}{47.0971204}{51.866263}
256 \mrcNPdef{dakhla}{24.2026691}{-15.4883971}
257 \mrcmap[type=reference, named position=munich,
258 flex reference scale=75000000,
259 source=topplusopen web,
260 tex width=\linewidth, tex height=10cm]{limit_distance3}
261 \mrcdrawmap
262 \node[below left,font=\fontsize{7pt}{7pt}\sffamily] at (mrcmap.south east)
263 {\mrcmapattribution};
264 \node[below right,font=\fontsize{7pt}{7pt}\sffamily] at (mrcmap.south west)
265 {\mrcprettymapscale};
266 \mrcclipmap
267 \path[draw] (\mrcNPcs{munich}) circle (\mrckmtotex{3000});
268 \node[above,fill=white,opacity=0.85,text opacity=1]
269 at ([yshift=\mrckmtotex{3000}]\mrcNPcs{munich}) {\SI{3000}{km}};
270 \draw[blue,very thick] (\mrcNPcs{munich}) -- (\mrcNPcs{neskaup});
271 \mrcNPdraworthodrome[red,very thick] {munich}{neskaup}
272 \path (\mrcNPcs{munich}) --
273 node[sloped,above=3mm,red,fill=white,opacity=0.85,text opacity=1]
274 { \mrcNPprettyorthodistance{munich}{neskaup} }
275 node[sloped,below=3mm,blue,fill=white,opacity=0.85,text opacity=1]
276 { \mrcNPprettyloxodistance{munich}{neskaup} }
277 (\mrcNPcs{neskaup});
278 \draw[blue,very thick] (\mrcNPcs{munich}) -- (\mrcNPcs{atyrau});
279 \mrcNPdraworthodrome[red,very thick] {munich}{atyrau}
280 \path (\mrcNPcs{munich}) --
281 node[sloped,above=3mm,red,fill=white,opacity=0.85,text opacity=1]
282 { \mrcNPprettyorthodistance{munich}{atyrau} }
283 node[sloped,below=3mm,blue,fill=white,opacity=0.85,text opacity=1]
284 { \mrcNPprettyloxodistance{munich}{atyrau} }
285 (\mrcNPcs{atyrau});
286 \draw[blue,very thick] (\mrcNPcs{munich}) -- (\mrcNPcs{dakhla});
287 \mrcNPdraworthodrome[red,very thick] {munich}{dakhla}
288 \path (\mrcNPcs{munich}) --
289 node[sloped,above=3mm,red,fill=white,opacity=0.85,text opacity=1]
290 { \mrcNPprettyorthodistance{munich}{dakhla} }
291 node[sloped,below=3mm,blue,fill=white,opacity=0.85,text opacity=1]
292 { \mrcNPprettyloxodistance{munich}{dakhla} }
293 (\mrcNPcs{dakhla});
294 \mrcmarker{type=pinflip,named position=munich,contents={M\"unchen}}
295 \mrcmarker{type=pin,named position=neskaup,contents={Neskaupsta\dh ur}}
296 \mrcmarker{type=pin,named position=atyrau,contents={Atyrau}}
297 \mrcmarker{type=pinflip,named position=dakhla,contents={Ad-Dakhla}}
298 \end{tikzpicture}
299 \end{dispExample*}