-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclassgeoutil_1_1GeoCountry.html
139 lines (135 loc) · 10.4 KB
/
classgeoutil_1_1GeoCountry.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Underpass: geoutil::GeoCountry Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Underpass
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><b>geoutil</b></li><li class="navelem"><a class="el" href="classgeoutil_1_1GeoCountry.html">GeoCountry</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="classgeoutil_1_1GeoCountry-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">geoutil::GeoCountry Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Data structure for country boundaries.
<a href="classgeoutil_1_1GeoCountry.html#details">More...</a></p>
<p><code>#include <<a class="el" href="geoutil_8hh_source.html">geoutil.hh</a>></code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a015f2e70dfafc6471a6c9b86592bb7cb"><td class="memItemLeft" align="right" valign="top"><a id="a015f2e70dfafc6471a6c9b86592bb7cb"></a>
 </td><td class="memItemRight" valign="bottom"><b>GeoCountry</b> (std::string name, std::string iso_a2, std::string iso_a3, std::string region, std::string subregion, boost::geometry::model::polygon< <a class="el" href="geoutil_8hh.html#abf275f02af0611943702d26368f837b9">point_t</a> >)</td></tr>
<tr class="separator:a015f2e70dfafc6471a6c9b86592bb7cb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae477ff9f3722e3be9763035ef8965913"><td class="memItemLeft" align="right" valign="top"><a id="ae477ff9f3722e3be9763035ef8965913"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeoutil_1_1GeoCountry.html#ae477ff9f3722e3be9763035ef8965913">setName</a> (const std::string &field)</td></tr>
<tr class="memdesc:ae477ff9f3722e3be9763035ef8965913"><td class="mdescLeft"> </td><td class="mdescRight">Set the name field. <br /></td></tr>
<tr class="separator:ae477ff9f3722e3be9763035ef8965913"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6be7f9240692a4179b8ae3cf9f1f7602"><td class="memItemLeft" align="right" valign="top"><a id="a6be7f9240692a4179b8ae3cf9f1f7602"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeoutil_1_1GeoCountry.html#a6be7f9240692a4179b8ae3cf9f1f7602">setAltName</a> (const std::string &field)</td></tr>
<tr class="memdesc:a6be7f9240692a4179b8ae3cf9f1f7602"><td class="mdescLeft"> </td><td class="mdescRight">Set the alternate name field. <br /></td></tr>
<tr class="separator:a6be7f9240692a4179b8ae3cf9f1f7602"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a344f585bf4cd6791ea2c800aa1afbbaf"><td class="memItemLeft" align="right" valign="top"><a id="a344f585bf4cd6791ea2c800aa1afbbaf"></a>
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeoutil_1_1GeoCountry.html#a344f585bf4cd6791ea2c800aa1afbbaf">extractTags</a> (const std::string &other)</td></tr>
<tr class="memdesc:a344f585bf4cd6791ea2c800aa1afbbaf"><td class="mdescLeft"> </td><td class="mdescRight">extract the tags from the string for all the other metadata <br /></td></tr>
<tr class="separator:a344f585bf4cd6791ea2c800aa1afbbaf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7bae57dc5a089a029bcd9cc9f6f5cc1d"><td class="memItemLeft" align="right" valign="top"><a id="a7bae57dc5a089a029bcd9cc9f6f5cc1d"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeoutil_1_1GeoCountry.html#a7bae57dc5a089a029bcd9cc9f6f5cc1d">addBoundary</a> (const std::string &border)</td></tr>
<tr class="memdesc:a7bae57dc5a089a029bcd9cc9f6f5cc1d"><td class="mdescLeft"> </td><td class="mdescRight">Add the boundary coordinates from a WKT string. <br /></td></tr>
<tr class="separator:a7bae57dc5a089a029bcd9cc9f6f5cc1d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a975c2ea6987b80d78c749a45de2bc530"><td class="memItemLeft" align="right" valign="top"><a id="a975c2ea6987b80d78c749a45de2bc530"></a>
const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeoutil_1_1GeoCountry.html#a975c2ea6987b80d78c749a45de2bc530">getName</a> (void)</td></tr>
<tr class="memdesc:a975c2ea6987b80d78c749a45de2bc530"><td class="mdescLeft"> </td><td class="mdescRight">Get the name for this country. <br /></td></tr>
<tr class="separator:a975c2ea6987b80d78c749a45de2bc530"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a86e4622c623520684be2e101609366cd"><td class="memItemLeft" align="right" valign="top"><a id="a86e4622c623520684be2e101609366cd"></a>
const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeoutil_1_1GeoCountry.html#a86e4622c623520684be2e101609366cd">getAltName</a> (void)</td></tr>
<tr class="memdesc:a86e4622c623520684be2e101609366cd"><td class="mdescLeft"> </td><td class="mdescRight">Get the alternate name for this country, if there is one. <br /></td></tr>
<tr class="separator:a86e4622c623520684be2e101609366cd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa995a80684643764106bdf12e811ebc0"><td class="memItemLeft" align="right" valign="top"><a id="aa995a80684643764106bdf12e811ebc0"></a>
long </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeoutil_1_1GeoCountry.html#aa995a80684643764106bdf12e811ebc0">getID</a> (void)</td></tr>
<tr class="memdesc:aa995a80684643764106bdf12e811ebc0"><td class="mdescLeft"> </td><td class="mdescRight">Get the Country ID for this country. <br /></td></tr>
<tr class="separator:aa995a80684643764106bdf12e811ebc0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afc4d793d3ac6b920bbcc97f4d6009406"><td class="memItemLeft" align="right" valign="top"><a id="afc4d793d3ac6b920bbcc97f4d6009406"></a>
const std::string & </td><td class="memItemRight" valign="bottom"><b>getAbbreviation</b> (int width)</td></tr>
<tr class="separator:afc4d793d3ac6b920bbcc97f4d6009406"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a28888f81a0dd66bf5144f1a37958fabb"><td class="memItemLeft" align="right" valign="top"><a id="a28888f81a0dd66bf5144f1a37958fabb"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeoutil_1_1GeoCountry.html#a28888f81a0dd66bf5144f1a37958fabb">inCountry</a> (double max_lat, double max_lon, double min_lat, double min_lon)</td></tr>
<tr class="memdesc:a28888f81a0dd66bf5144f1a37958fabb"><td class="mdescLeft"> </td><td class="mdescRight">Determine if a bounding box is contained within this country boundary. <br /></td></tr>
<tr class="separator:a28888f81a0dd66bf5144f1a37958fabb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a36e8e534e064cc665652a868a7537a45"><td class="memItemLeft" align="right" valign="top"><a id="a36e8e534e064cc665652a868a7537a45"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeoutil_1_1GeoCountry.html#a36e8e534e064cc665652a868a7537a45">dump</a> (void)</td></tr>
<tr class="memdesc:a36e8e534e064cc665652a868a7537a45"><td class="mdescLeft"> </td><td class="mdescRight">Dump internal data to the terminal, only for debugging. <br /></td></tr>
<tr class="separator:a36e8e534e064cc665652a868a7537a45"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Data structure for country boundaries. </p>
<p>This stores the data for a country boundary which is used to determine the country that a change was made in. </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>data/<a class="el" href="geoutil_8hh_source.html">geoutil.hh</a></li>
<li>data/geoutil.cc</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>