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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
| // 中国大陆多边形,用于判断坐标是否在中国
// 因为港澳台地区使用WGS坐标,所以多边形不包含港澳台地区
+ (NSMutableArray *)polygonOfChina {
static NSMutableArray *polygonOfChina = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
polygonOfChina = [[NSMutableArray alloc] init];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(49.1506690000,
87.4150810000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(48.3664501790,
85.7527085300)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(47.0253058185,
85.3847443554)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(45.2406550000,
82.5214000000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(44.8957121295,
79.9392351487)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(43.1166843846,
80.6751253982)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(41.8701690000,
79.6882160000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(39.2896190000,
73.6171080000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(34.2303430000,
78.9155300000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(31.0238860000,
79.0627080000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(27.9989800000,
88.7028920000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(27.1793590000,
88.9972480000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(28.0969170000,
89.7331400000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(26.9157800000,
92.1615830000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(28.1947640000,
96.0986050000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(27.4094760000,
98.6742270000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(23.9085500000,
97.5703890000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(24.0775830000,
98.7846100000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(22.1375640000,
99.1893510000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(21.1398950000,
101.7649720000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(22.2746220000,
101.7281780000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(23.2641940000,
105.3708430000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(22.7191200000,
106.6954480000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(21.9945711661,
106.7256731791)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(21.4847050000,
108.0200530000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(20.4478440000,
109.3814530000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(18.6689850000,
108.2408210000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(17.4017340000,
109.9333720000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(19.5085670000,
111.4051560000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(21.2716775175,
111.2514995205)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(21.9936323233,
113.4625292629)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(22.1818312942,
113.4258358111)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(22.2249729295,
113.5913115000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(22.4501912753,
113.8946844490)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(22.5959159322,
114.3623797842)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(22.4334610000,
114.5194740000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(22.9680954377,
116.8326939975)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(25.3788220000,
119.9667980000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(28.3261276204,
121.7724402562)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(31.9883610000,
123.8808230000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(39.8759700000,
124.4695370000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(41.7350890000,
126.9531720000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(41.5142160000,
128.3145720000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(42.9842081790,
131.0676468344)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(45.2690810000,
131.8468530000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(45.0608370000,
133.0610740000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(48.4480260000,
135.0111880000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(48.0054800000,
131.6628800000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(50.2270740000,
127.6890640000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(53.3516070000,
125.3710040000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(53.4176040000,
119.9254040000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(47.5590810000,
115.1421070000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(47.1339370000,
119.1159230000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(44.8256460000,
111.2786750000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(42.5293560000,
109.2549720000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(43.2598160000,
97.2967290000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(45.4247620000,
90.9680590000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(47.8075570000,
90.6737020000)]];
[polygonOfChina
addObject:[NSValue valueWithCGPoint:CGPointMake(49.1506690000,
87.4150810000)]];
});
return polygonOfChina;
}
|