Debian Codegraph @

tests/repr_eq_test.py

raw symbols SCIP
1 # Copyright (C) 2024 Christian Ledermann
2 #
3 # This library is free software; you can redistribute it and/or modify it under
4 # the terms of the GNU Lesser General Public License as published by the Free
5 # Software Foundation; either version 2.1 of the License, or (at your option)
6 # any later version.
7 #
8 # This library is distributed in the hope that it will be useful, but WITHOUT
9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11 # details.
12 #
13 # You should have received a copy of the GNU Lesser General Public License
14 # along with this library; if not, write to the Free Software Foundation, Inc.,
15 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
17 """Test the __repr__ and __eq__ methods."""
18
19 from typing import Final
20
21 from pygeoif.geometry import LinearRing
22 from pygeoif.geometry import LineString
23 from pygeoif.geometry import Point
24 from pygeoif.geometry import Polygon
25
26 import fastkml
27 from fastkml.enums import AltitudeMode
28 from fastkml.enums import PairKey
29 from tests.base import Lxml
30 from tests.base import StdLibrary
31
32 eval_locals = {
33 "Point": Point,
34 "Polygon": Polygon,
35 "LineString": LineString,
36 "LinearRing": LinearRing,
37 "AltitudeMode": AltitudeMode,
38 "PairKey": PairKey,
39 "fastkml": fastkml,
40 }
41
42
43 class TestRepr(StdLibrary):
44 clean_doc: Final = fastkml.kml.KML(
45 ns="{http://www.opengis.net/kml/2.2}",
46 name_spaces={
47 "kml": "{http://www.opengis.net/kml/2.2}",
48 "atom": "{http://www.w3.org/2005/Atom}",
49 "gx": "{http://www.google.com/kml/ext/2.2}",
50 },
51 features=[
52 fastkml.containers.Document(
53 ns="{http://www.opengis.net/kml/2.2}",
54 name_spaces={
55 "kml": "{http://www.opengis.net/kml/2.2}",
56 "atom": "{http://www.w3.org/2005/Atom}",
57 "gx": "{http://www.google.com/kml/ext/2.2}",
58 },
59 id="doc-001",
60 target_id="",
61 name="Vestibulum eleifend lobortis lorem.",
62 visibility=None,
63 isopen=None,
64 atom_link=None,
65 atom_author=None,
66 address=None,
67 phone_number=None,
68 snippet=None,
69 description=None,
70 view=None,
71 times=None,
72 style_url=None,
73 styles=[
74 fastkml.styles.Style(
75 ns="{http://www.opengis.net/kml/2.2}",
76 name_spaces={
77 "kml": "{http://www.opengis.net/kml/2.2}",
78 "atom": "{http://www.w3.org/2005/Atom}",
79 "gx": "{http://www.google.com/kml/ext/2.2}",
80 },
81 id="style-001",
82 target_id="",
83 styles=[
84 fastkml.styles.IconStyle(
85 ns="{http://www.opengis.net/kml/2.2}",
86 name_spaces={
87 "kml": "{http://www.opengis.net/kml/2.2}",
88 "atom": "{http://www.w3.org/2005/Atom}",
89 "gx": "{http://www.google.com/kml/ext/2.2}",
90 },
91 id="",
92 target_id="",
93 color=None,
94 color_mode=None,
95 scale=None,
96 heading=None,
97 icon=fastkml.links.Icon(
98 ns="{http://www.opengis.net/kml/2.2}",
99 name_spaces={
100 "kml": "{http://www.opengis.net/kml/2.2}",
101 "atom": "{http://www.w3.org/2005/Atom}",
102 "gx": "{http://www.google.com/kml/ext/2.2}",
103 },
104 id="",
105 target_id="",
106 href="http://barcelona.galdos.local/svn1/sqa/ets-kml/main/test/data/ogc-kml/images/red-stars.png",
107 refresh_mode=None,
108 refresh_interval=None,
109 view_refresh_mode=None,
110 view_refresh_time=None,
111 view_bound_scale=None,
112 view_format=None,
113 http_query=None,
114 ),
115 hot_spot=None,
116 ),
117 ],
118 ),
119 fastkml.styles.Style(
120 ns="{http://www.opengis.net/kml/2.2}",
121 name_spaces={
122 "kml": "{http://www.opengis.net/kml/2.2}",
123 "atom": "{http://www.w3.org/2005/Atom}",
124 "gx": "{http://www.google.com/kml/ext/2.2}",
125 },
126 id="style-002",
127 target_id="",
128 styles=[
129 fastkml.styles.IconStyle(
130 ns="{http://www.opengis.net/kml/2.2}",
131 name_spaces={
132 "kml": "{http://www.opengis.net/kml/2.2}",
133 "atom": "{http://www.w3.org/2005/Atom}",
134 "gx": "{http://www.google.com/kml/ext/2.2}",
135 },
136 id="",
137 target_id="",
138 color=None,
139 color_mode=None,
140 scale=None,
141 heading=None,
142 icon=fastkml.links.Icon(
143 ns="{http://www.opengis.net/kml/2.2}",
144 name_spaces={
145 "kml": "{http://www.opengis.net/kml/2.2}",
146 "atom": "{http://www.w3.org/2005/Atom}",
147 "gx": "{http://www.google.com/kml/ext/2.2}",
148 },
149 id="",
150 target_id="",
151 href="http://barcelona.galdos.local/svn1/sqa/ets-kml/main/test/data/ogc-kml/images/wht-blank.png",
152 refresh_mode=None,
153 refresh_interval=None,
154 view_refresh_mode=None,
155 view_refresh_time=None,
156 view_bound_scale=None,
157 view_format=None,
158 http_query=None,
159 ),
160 hot_spot=None,
161 ),
162 ],
163 ),
164 fastkml.styles.Style(
165 ns="{http://www.opengis.net/kml/2.2}",
166 name_spaces={
167 "kml": "{http://www.opengis.net/kml/2.2}",
168 "atom": "{http://www.w3.org/2005/Atom}",
169 "gx": "{http://www.google.com/kml/ext/2.2}",
170 },
171 id="khStyle712",
172 target_id="",
173 styles=[
174 fastkml.styles.IconStyle(
175 ns="{http://www.opengis.net/kml/2.2}",
176 name_spaces={
177 "kml": "{http://www.opengis.net/kml/2.2}",
178 "atom": "{http://www.w3.org/2005/Atom}",
179 "gx": "{http://www.google.com/kml/ext/2.2}",
180 },
181 id="khIconStyle716",
182 target_id="",
183 color=None,
184 color_mode=None,
185 scale=None,
186 heading=None,
187 icon=fastkml.links.Icon(
188 ns="{http://www.opengis.net/kml/2.2}",
189 name_spaces={
190 "kml": "{http://www.opengis.net/kml/2.2}",
191 "atom": "{http://www.w3.org/2005/Atom}",
192 "gx": "{http://www.google.com/kml/ext/2.2}",
193 },
194 id="",
195 target_id="",
196 href="http://barcelona.galdos.local/svn1/sqa/ets-kml/main/test/data/ogc-kml/images/9.png",
197 refresh_mode=None,
198 refresh_interval=None,
199 view_refresh_mode=None,
200 view_refresh_time=None,
201 view_bound_scale=None,
202 view_format=None,
203 http_query=None,
204 ),
205 hot_spot=None,
206 ),
207 ],
208 ),
209 fastkml.styles.Style(
210 ns="{http://www.opengis.net/kml/2.2}",
211 name_spaces={
212 "kml": "{http://www.opengis.net/kml/2.2}",
213 "atom": "{http://www.w3.org/2005/Atom}",
214 "gx": "{http://www.google.com/kml/ext/2.2}",
215 },
216 id="khStyle887",
217 target_id="",
218 styles=[
219 fastkml.styles.LineStyle(
220 ns="{http://www.opengis.net/kml/2.2}",
221 name_spaces={
222 "kml": "{http://www.opengis.net/kml/2.2}",
223 "atom": "{http://www.w3.org/2005/Atom}",
224 "gx": "{http://www.google.com/kml/ext/2.2}",
225 },
226 id="khLineStyle890",
227 target_id="",
228 color="7fffffff",
229 color_mode=None,
230 width=None,
231 ),
232 fastkml.styles.PolyStyle(
233 ns="{http://www.opengis.net/kml/2.2}",
234 name_spaces={
235 "kml": "{http://www.opengis.net/kml/2.2}",
236 "atom": "{http://www.w3.org/2005/Atom}",
237 "gx": "{http://www.google.com/kml/ext/2.2}",
238 },
239 id="khPolyStyle889",
240 target_id="",
241 color="7fa7ce9e",
242 color_mode=None,
243 fill=None,
244 outline=None,
245 ),
246 ],
247 ),
248 fastkml.styles.StyleMap(
249 ns="{http://www.opengis.net/kml/2.2}",
250 name_spaces={
251 "kml": "{http://www.opengis.net/kml/2.2}",
252 "atom": "{http://www.w3.org/2005/Atom}",
253 "gx": "{http://www.google.com/kml/ext/2.2}",
254 },
255 id="stylemap-001",
256 target_id="",
257 pairs=[
258 fastkml.styles.Pair(
259 ns="{http://www.opengis.net/kml/2.2}",
260 name_spaces={
261 "kml": "{http://www.opengis.net/kml/2.2}",
262 "atom": "{http://www.w3.org/2005/Atom}",
263 "gx": "{http://www.google.com/kml/ext/2.2}",
264 },
265 id="",
266 target_id="",
267 key=PairKey.normal,
268 style=fastkml.styles.StyleUrl(
269 ns="{http://www.opengis.net/kml/2.2}",
270 name_spaces={
271 "kml": "{http://www.opengis.net/kml/2.2}",
272 "atom": "{http://www.w3.org/2005/Atom}",
273 "gx": "{http://www.google.com/kml/ext/2.2}",
274 },
275 url="#style-002",
276 ),
277 ),
278 fastkml.styles.Pair(
279 ns="{http://www.opengis.net/kml/2.2}",
280 name_spaces={
281 "kml": "{http://www.opengis.net/kml/2.2}",
282 "atom": "{http://www.w3.org/2005/Atom}",
283 "gx": "{http://www.google.com/kml/ext/2.2}",
284 },
285 id="",
286 target_id="",
287 key=PairKey.highlight,
288 style=fastkml.styles.StyleUrl(
289 ns="{http://www.opengis.net/kml/2.2}",
290 name_spaces={
291 "kml": "{http://www.opengis.net/kml/2.2}",
292 "atom": "{http://www.w3.org/2005/Atom}",
293 "gx": "{http://www.google.com/kml/ext/2.2}",
294 },
295 url="#style-001",
296 ),
297 ),
298 ],
299 ),
300 ],
301 region=None,
302 extended_data=None,
303 features=[
304 fastkml.containers.Folder(
305 ns="{http://www.opengis.net/kml/2.2}",
306 name_spaces={
307 "kml": "{http://www.opengis.net/kml/2.2}",
308 "atom": "{http://www.w3.org/2005/Atom}",
309 "gx": "{http://www.google.com/kml/ext/2.2}",
310 },
311 id="Folder-001",
312 target_id="",
313 name="Nanaimo, BC",
314 visibility=None,
315 isopen=None,
316 atom_link=None,
317 atom_author=None,
318 address=None,
319 phone_number=None,
320 snippet=None,
321 description=None,
322 view=fastkml.views.LookAt(
323 ns="{http://www.opengis.net/kml/2.2}",
324 name_spaces={
325 "kml": "{http://www.opengis.net/kml/2.2}",
326 "atom": "{http://www.w3.org/2005/Atom}",
327 "gx": "{http://www.google.com/kml/ext/2.2}",
328 },
329 id="",
330 target_id="",
331 longitude=-123.9336542173363,
332 latitude=49.16692307094711,
333 altitude=None,
334 heading=-126.0570028967645,
335 tilt=61.61116895973212,
336 range=359.3753895394523,
337 altitude_mode=AltitudeMode.relative_to_ground,
338 ),
339 times=None,
340 style_url=None,
341 styles=[],
342 region=None,
343 extended_data=None,
344 features=[
345 fastkml.containers.Folder(
346 ns="{http://www.opengis.net/kml/2.2}",
347 name_spaces={
348 "kml": "{http://www.opengis.net/kml/2.2}",
349 "atom": "{http://www.w3.org/2005/Atom}",
350 "gx": "{http://www.google.com/kml/ext/2.2}",
351 },
352 id="",
353 target_id="",
354 name="Downtown Virtual Tours",
355 visibility=None,
356 isopen=None,
357 atom_link=None,
358 atom_author=None,
359 address=None,
360 phone_number=None,
361 snippet=None,
362 description=None,
363 view=None,
364 times=None,
365 style_url=None,
366 styles=[],
367 region=None,
368 extended_data=None,
369 features=[
370 fastkml.features.Placemark(
371 ns="{http://www.opengis.net/kml/2.2}",
372 name_spaces={
373 "kml": "{http://www.opengis.net/kml/2.2}",
374 "atom": "{http://www.w3.org/2005/Atom}",
375 "gx": "{http://www.google.com/kml/ext/2.2}",
376 },
377 id="",
378 target_id="",
379 name="HBC Bastion",
380 visibility=None,
381 isopen=None,
382 atom_link=None,
383 atom_author=None,
384 address=None,
385 phone_number=None,
386 snippet=None,
387 description='<a target="_new" href="http://citymap.nanaimo.ca/virtual_tours/viewnode.cfm?File_ID=8">Launch Virtual Tour</a>',
388 view=None,
389 times=None,
390 style_url=fastkml.styles.StyleUrl(
391 ns="{http://www.opengis.net/kml/2.2}",
392 name_spaces={
393 "kml": "{http://www.opengis.net/kml/2.2}",
394 "atom": "{http://www.w3.org/2005/Atom}",
395 "gx": "{http://www.google.com/kml/ext/2.2}",
396 },
397 url="#khStyle712",
398 ),
399 styles=[],
400 region=None,
401 extended_data=None,
402 kml_geometry=fastkml.geometry.Point(
403 ns="{http://www.opengis.net/kml/2.2}",
404 name_spaces={
405 "kml": "{http://www.opengis.net/kml/2.2}",
406 "atom": "{http://www.w3.org/2005/Atom}",
407 "gx": "{http://www.google.com/kml/ext/2.2}",
408 },
409 id="",
410 target_id="",
411 extrude=None,
412 altitude_mode=AltitudeMode.relative_to_ground,
413 kml_coordinates=fastkml.geometry.Coordinates(
414 ns="{http://www.opengis.net/kml/2.2}",
415 name_spaces={
416 "kml": "{http://www.opengis.net/kml/2.2}",
417 "atom": "{http://www.w3.org/2005/Atom}",
418 "gx": "{http://www.google.com/kml/ext/2.2}",
419 },
420 coords=[
421 (-123.93563168, 49.16716103, 5.0),
422 ],
423 ),
424 ),
425 ),
426 fastkml.features.Placemark(
427 ns="{http://www.opengis.net/kml/2.2}",
428 name_spaces={
429 "kml": "{http://www.opengis.net/kml/2.2}",
430 "atom": "{http://www.w3.org/2005/Atom}",
431 "gx": "{http://www.google.com/kml/ext/2.2}",
432 },
433 id="",
434 target_id="",
435 name="Building",
436 visibility=None,
437 isopen=None,
438 atom_link=None,
439 atom_author=None,
440 address=None,
441 phone_number=None,
442 snippet=None,
443 description=None,
444 view=None,
445 times=None,
446 style_url=fastkml.styles.StyleUrl(
447 ns="{http://www.opengis.net/kml/2.2}",
448 name_spaces={
449 "kml": "{http://www.opengis.net/kml/2.2}",
450 "atom": "{http://www.w3.org/2005/Atom}",
451 "gx": "{http://www.google.com/kml/ext/2.2}",
452 },
453 url="#khStyle887",
454 ),
455 styles=[],
456 region=None,
457 extended_data=None,
458 kml_geometry=fastkml.geometry.Polygon(
459 ns="{http://www.opengis.net/kml/2.2}",
460 name_spaces={
461 "kml": "{http://www.opengis.net/kml/2.2}",
462 "atom": "{http://www.w3.org/2005/Atom}",
463 "gx": "{http://www.google.com/kml/ext/2.2}",
464 },
465 id="",
466 target_id="",
467 extrude=True,
468 tessellate=None,
469 altitude_mode=AltitudeMode.absolute,
470 outer_boundary=fastkml.geometry.OuterBoundaryIs(
471 ns="{http://www.opengis.net/kml/2.2}",
472 name_spaces={
473 "kml": "{http://www.opengis.net/kml/2.2}",
474 "atom": "{http://www.w3.org/2005/Atom}",
475 "gx": "{http://www.google.com/kml/ext/2.2}",
476 },
477 kml_geometry=fastkml.geometry.LinearRing(
478 ns="{http://www.opengis.net/kml/2.2}",
479 name_spaces={
480 "kml": "{http://www.opengis.net/kml/2.2}",
481 "atom": "{http://www.w3.org/2005/Atom}",
482 "gx": "{http://www.google.com/kml/ext/2.2}",
483 },
484 id="",
485 target_id="",
486 extrude=None,
487 tessellate=None,
488 altitude_mode=None,
489 geometry=LinearRing(
490 (
491 (
492 -123.940449937288,
493 49.16927524669021,
494 17.0,
495 ),
496 (
497 -123.940493701601,
498 49.1694596207446,
499 17.0,
500 ),
501 (
502 -123.940356261489,
503 49.16947180231761,
504 17.0,
505 ),
506 (
507 -123.940306243823,
508 49.1692917061711,
509 17.0,
510 ),
511 (
512 -123.940449937288,
513 49.16927524669021,
514 17.0,
515 ),
516 ),
517 ),
518 ),
519 ),
520 ),
521 ),
522 fastkml.features.Placemark(
523 ns="{http://www.opengis.net/kml/2.2}",
524 name_spaces={
525 "kml": "{http://www.opengis.net/kml/2.2}",
526 "atom": "{http://www.w3.org/2005/Atom}",
527 "gx": "{http://www.google.com/kml/ext/2.2}",
528 },
529 id="",
530 target_id="",
531 name="Building",
532 visibility=None,
533 isopen=None,
534 atom_link=None,
535 atom_author=None,
536 address=None,
537 phone_number=None,
538 snippet=None,
539 description=None,
540 view=None,
541 times=None,
542 style_url=fastkml.styles.StyleUrl(
543 ns="{http://www.opengis.net/kml/2.2}",
544 name_spaces={
545 "kml": "{http://www.opengis.net/kml/2.2}",
546 "atom": "{http://www.w3.org/2005/Atom}",
547 "gx": "{http://www.google.com/kml/ext/2.2}",
548 },
549 url="#khStyle887",
550 ),
551 styles=[],
552 region=None,
553 extended_data=None,
554 kml_geometry=fastkml.geometry.Polygon(
555 ns="{http://www.opengis.net/kml/2.2}",
556 name_spaces={
557 "kml": "{http://www.opengis.net/kml/2.2}",
558 "atom": "{http://www.w3.org/2005/Atom}",
559 "gx": "{http://www.google.com/kml/ext/2.2}",
560 },
561 id="",
562 target_id="",
563 extrude=True,
564 tessellate=None,
565 altitude_mode=AltitudeMode.absolute,
566 outer_boundary=fastkml.geometry.OuterBoundaryIs(
567 ns="{http://www.opengis.net/kml/2.2}",
568 name_spaces={
569 "kml": "{http://www.opengis.net/kml/2.2}",
570 "atom": "{http://www.w3.org/2005/Atom}",
571 "gx": "{http://www.google.com/kml/ext/2.2}",
572 },
573 kml_geometry=fastkml.geometry.LinearRing(
574 ns="{http://www.opengis.net/kml/2.2}",
575 name_spaces={
576 "kml": "{http://www.opengis.net/kml/2.2}",
577 "atom": "{http://www.w3.org/2005/Atom}",
578 "gx": "{http://www.google.com/kml/ext/2.2}",
579 },
580 id="",
581 target_id="",
582 extrude=None,
583 tessellate=None,
584 altitude_mode=None,
585 geometry=LinearRing(
586 (
587 (
588 -123.940122952744,
589 49.1691287039003,
590 18.0,
591 ),
592 (
593 -123.940137225952,
594 49.16920143662431,
595 18.0,
596 ),
597 (
598 -123.939995940886,
599 49.16921364907441,
600 18.0,
601 ),
602 (
603 -123.939979331833,
604 49.16914300389781,
605 18.0,
606 ),
607 (
608 -123.940122952744,
609 49.1691287039003,
610 18.0,
611 ),
612 ),
613 ),
614 ),
615 ),
616 ),
617 ),
618 fastkml.features.Placemark(
619 ns="{http://www.opengis.net/kml/2.2}",
620 name_spaces={
621 "kml": "{http://www.opengis.net/kml/2.2}",
622 "atom": "{http://www.w3.org/2005/Atom}",
623 "gx": "{http://www.google.com/kml/ext/2.2}",
624 },
625 id="",
626 target_id="",
627 name="Building",
628 visibility=None,
629 isopen=None,
630 atom_link=None,
631 atom_author=None,
632 address=None,
633 phone_number=None,
634 snippet=None,
635 description=None,
636 view=None,
637 times=None,
638 style_url=fastkml.styles.StyleUrl(
639 ns="{http://www.opengis.net/kml/2.2}",
640 name_spaces={
641 "kml": "{http://www.opengis.net/kml/2.2}",
642 "atom": "{http://www.w3.org/2005/Atom}",
643 "gx": "{http://www.google.com/kml/ext/2.2}",
644 },
645 url="#khStyle887",
646 ),
647 styles=[],
648 region=None,
649 extended_data=None,
650 kml_geometry=fastkml.geometry.Polygon(
651 ns="{http://www.opengis.net/kml/2.2}",
652 name_spaces={
653 "kml": "{http://www.opengis.net/kml/2.2}",
654 "atom": "{http://www.w3.org/2005/Atom}",
655 "gx": "{http://www.google.com/kml/ext/2.2}",
656 },
657 id="",
658 target_id="",
659 extrude=True,
660 tessellate=None,
661 altitude_mode=AltitudeMode.absolute,
662 outer_boundary=fastkml.geometry.OuterBoundaryIs(
663 ns="{http://www.opengis.net/kml/2.2}",
664 name_spaces={
665 "kml": "{http://www.opengis.net/kml/2.2}",
666 "atom": "{http://www.w3.org/2005/Atom}",
667 "gx": "{http://www.google.com/kml/ext/2.2}",
668 },
669 kml_geometry=fastkml.geometry.LinearRing(
670 ns="{http://www.opengis.net/kml/2.2}",
671 name_spaces={
672 "kml": "{http://www.opengis.net/kml/2.2}",
673 "atom": "{http://www.w3.org/2005/Atom}",
674 "gx": "{http://www.google.com/kml/ext/2.2}",
675 },
676 id="",
677 target_id="",
678 extrude=None,
679 tessellate=None,
680 altitude_mode=None,
681 geometry=LinearRing(
682 (
683 (
684 -123.940353238527,
685 49.1688284179789,
686 15.0,
687 ),
688 (
689 -123.940328496557,
690 49.1688539816849,
691 15.0,
692 ),
693 (
694 -123.940305627051,
695 49.1688410371204,
696 15.0,
697 ),
698 (
699 -123.94029136599,
700 49.1688525752424,
701 15.0,
702 ),
703 (
704 -123.940275724243,
705 49.16884496803361,
706 15.0,
707 ),
708 (
709 -123.940267212761,
710 49.16885547002801,
711 15.0,
712 ),
713 (
714 -123.940250998683,
715 49.1688475077284,
716 15.0,
717 ),
718 (
719 -123.94024045302,
720 49.1688581162214,
721 15.0,
722 ),
723 (
724 -123.940221737029,
725 49.1688494547939,
726 15.0,
727 ),
728 (
729 -123.940211083364,
730 49.1688603339744,
731 15.0,
732 ),
733 (
734 -123.940178900168,
735 49.1688453966693,
736 15.0,
737 ),
738 (
739 -123.940163692655,
740 49.1688607198336,
741 15.0,
742 ),
743 (
744 -123.940136059186,
745 49.1688470945275,
746 15.0,
747 ),
748 (
749 -123.940162391523,
750 49.1688218776622,
751 15.0,
752 ),
753 (
754 -123.940122367227,
755 49.1688289487997,
756 15.0,
757 ),
758 (
759 -123.940128827323,
760 49.1688475131544,
761 15.0,
762 ),
763 (
764 -123.940088186399,
765 49.16885189119151,
766 15.0,
767 ),
768 (
769 -123.940058889981,
770 49.1687743342294,
771 15.0,
772 ),
773 (
774 -123.940146366884,
775 49.16876417866831,
776 15.0,
777 ),
778 (
779 -123.940150570466,
780 49.16876513375031,
781 15.0,
782 ),
783 (
784 -123.940183311773,
785 49.16875578354081,
786 15.0,
787 ),
788 (
789 -123.940200543746,
790 49.168763737562,
791 15.0,
792 ),
793 (
794 -123.940211624266,
795 49.16875150585231,
796 15.0,
797 ),
798 (
799 -123.940229767887,
800 49.1687598121941,
801 15.0,
802 ),
803 (
804 -123.940240426635,
805 49.1687492027812,
806 15.0,
807 ),
808 (
809 -123.940256088782,
810 49.1687578890722,
811 15.0,
812 ),
813 (
814 -123.940267772273,
815 49.1687476310603,
816 15.0,
817 ),
818 (
819 -123.940282259105,
820 49.1687539885572,
821 15.0,
822 ),
823 (
824 -123.940301511045,
825 49.1687371934515,
826 15.0,
827 ),
828 (
829 -123.940335907902,
830 49.1687555303004,
831 15.0,
832 ),
833 (
834 -123.940313690715,
835 49.1687770262802,
836 15.0,
837 ),
838 (
839 -123.940345414677,
840 49.1687916075398,
841 15.0,
842 ),
843 (
844 -123.940321043389,
845 49.16881285125181,
846 15.0,
847 ),
848 (
849 -123.940353238527,
850 49.1688284179789,
851 15.0,
852 ),
853 ),
854 ),
855 ),
856 ),
857 ),
858 ),
859 fastkml.features.Placemark(
860 ns="{http://www.opengis.net/kml/2.2}",
861 name_spaces={
862 "kml": "{http://www.opengis.net/kml/2.2}",
863 "atom": "{http://www.w3.org/2005/Atom}",
864 "gx": "{http://www.google.com/kml/ext/2.2}",
865 },
866 id="",
867 target_id="",
868 name="Building",
869 visibility=None,
870 isopen=None,
871 atom_link=None,
872 atom_author=None,
873 address=None,
874 phone_number=None,
875 snippet=None,
876 description=None,
877 view=None,
878 times=None,
879 style_url=fastkml.styles.StyleUrl(
880 ns="{http://www.opengis.net/kml/2.2}",
881 name_spaces={
882 "kml": "{http://www.opengis.net/kml/2.2}",
883 "atom": "{http://www.w3.org/2005/Atom}",
884 "gx": "{http://www.google.com/kml/ext/2.2}",
885 },
886 url="#khStyle887",
887 ),
888 styles=[],
889 region=None,
890 extended_data=None,
891 kml_geometry=fastkml.geometry.Polygon(
892 ns="{http://www.opengis.net/kml/2.2}",
893 name_spaces={
894 "kml": "{http://www.opengis.net/kml/2.2}",
895 "atom": "{http://www.w3.org/2005/Atom}",
896 "gx": "{http://www.google.com/kml/ext/2.2}",
897 },
898 id="",
899 target_id="",
900 extrude=True,
901 tessellate=None,
902 altitude_mode=AltitudeMode.absolute,
903 outer_boundary=fastkml.geometry.OuterBoundaryIs(
904 ns="{http://www.opengis.net/kml/2.2}",
905 name_spaces={
906 "kml": "{http://www.opengis.net/kml/2.2}",
907 "atom": "{http://www.w3.org/2005/Atom}",
908 "gx": "{http://www.google.com/kml/ext/2.2}",
909 },
910 kml_geometry=fastkml.geometry.LinearRing(
911 ns="{http://www.opengis.net/kml/2.2}",
912 name_spaces={
913 "kml": "{http://www.opengis.net/kml/2.2}",
914 "atom": "{http://www.w3.org/2005/Atom}",
915 "gx": "{http://www.google.com/kml/ext/2.2}",
916 },
917 id="",
918 target_id="",
919 extrude=None,
920 tessellate=None,
921 altitude_mode=None,
922 geometry=LinearRing(
923 (
924 (
925 -123.935755404797,
926 49.1660852779118,
927 25.0,
928 ),
929 (
930 -123.93582067022,
931 49.1660311465527,
932 25.0,
933 ),
934 (
935 -123.935800492118,
936 49.1660168302278,
937 25.0,
938 ),
939 (
940 -123.936039795526,
941 49.165822245592,
942 25.0,
943 ),
944 (
945 -123.936064357298,
946 49.1658350873476,
947 25.0,
948 ),
949 (
950 -123.936179746682,
951 49.1657457438265,
952 25.0,
953 ),
954 (
955 -123.936369720217,
956 49.1657486103712,
957 25.0,
958 ),
959 (
960 -123.936512648837,
961 49.1658300134091,
962 25.0,
963 ),
964 (
965 -123.936229647663,
966 49.16604662814821,
967 25.0,
968 ),
969 (
970 -123.936209525388,
971 49.1660352793624,
972 25.0,
973 ),
974 (
975 -123.935976452504,
976 49.16621236606521,
977 25.0,
978 ),
979 (
980 -123.935755404797,
981 49.1660852779118,
982 25.0,
983 ),
984 ),
985 ),
986 ),
987 ),
988 inner_boundaries=[
989 fastkml.geometry.InnerBoundaryIs(
990 ns="{http://www.opengis.net/kml/2.2}",
991 name_spaces={
992 "kml": "{http://www.opengis.net/kml/2.2}",
993 "atom": "{http://www.w3.org/2005/Atom}",
994 "gx": "{http://www.google.com/kml/ext/2.2}",
995 },
996 kml_geometry=fastkml.geometry.LinearRing(
997 ns="{http://www.opengis.net/kml/2.2}",
998 name_spaces={
999 "kml": "{http://www.opengis.net/kml/2.2}",
1000 "atom": "{http://www.w3.org/2005/Atom}",
1001 "gx": "{http://www.google.com/kml/ext/2.2}",
1002 },
1003 id="",
1004 target_id="",
1005 extrude=None,
1006 tessellate=None,
1007 altitude_mode=None,
1008 geometry=LinearRing(
1009 (
1010 (
1011 -123.935774273544,
1012 49.1660841356946,
1013 25.0,
1014 ),
1015 (
1016 -123.935975080821,
1017 49.16619960613241,
1018 25.0,
1019 ),
1020 (
1021 -123.936199121569,
1022 49.1660294278725,
1023 25.0,
1024 ),
1025 (
1026 -123.936199903082,
1027 49.16602888191441,
1028 25.0,
1029 ),
1030 (
1031 -123.936200797694,
1032 49.1660283350392,
1033 25.0,
1034 ),
1035 (
1036 -123.936201694,
1037 49.16602787808731,
1038 25.0,
1039 ),
1040 (
1041 -123.936202592002,
1042 49.16602751105871,
1043 25.0,
1044 ),
1045 (
1046 -123.936203603103,
1047 49.1660271431131,
1048 25.0,
1049 ),
1050 (
1051 -123.936204615898,
1052 49.16602686509071,
1053 25.0,
1054 ),
1055 (
1056 -123.936205743487,
1057 49.1660266760745,
1058 25.0,
1059 ),
1060 (
1061 -123.936206871076,
1062 49.1660264870584,
1063 25.0,
1064 ),
1065 (
1066 -123.93620800036,
1067 49.16602638796551,
1068 25.0,
1069 ),
1070 (
1071 -123.936209129645,
1072 49.1660262888725,
1073 25.0,
1074 ),
1075 (
1076 -123.936210260625,
1077 49.1660262797028,
1078 25.0,
1079 ),
1080 (
1081 -123.9362113933,
1082 49.1660263604563,
1083 25.0,
1084 ),
1085 (
1086 -123.936212527671,
1087 49.16602653113311,
1088 25.0,
1089 ),
1090 (
1091 -123.936213548944,
1092 49.1660267027268,
1093 25.0,
1094 ),
1095 (
1096 -123.93621468501,
1097 49.16602696332681,
1098 25.0,
1099 ),
1100 (
1101 -123.936215707978,
1102 49.1660272248437,
1103 25.0,
1104 ),
1105 (
1106 -123.936216732642,
1107 49.1660275762838,
1108 25.0,
1109 ),
1110 (
1111 -123.936217645904,
1112 49.16602801856421,
1113 25.0,
1114 ),
1115 (
1116 -123.936218559165,
1117 49.16602846084461,
1118 25.0,
1119 ),
1120 (
1121 -123.936228164518,
1122 49.1660339590587,
1123 25.0,
1124 ),
1125 (
1126 -123.936493324423,
1127 49.1658309795689,
1128 25.0,
1129 ),
1130 (
1131 -123.936364459423,
1132 49.1657575567936,
1133 25.0,
1134 ),
1135 (
1136 -123.936186026871,
1137 49.1657548664825,
1138 25.0,
1139 ),
1140 (
1141 -123.936074872463,
1142 49.1658408480101,
1143 25.0,
1144 ),
1145 (
1146 -123.936074315451,
1147 49.1658413022105,
1148 25.0,
1149 ),
1150 (
1151 -123.936073532244,
1152 49.1658417582446,
1153 25.0,
1154 ),
1155 (
1156 -123.936072637635,
1157 49.1658423051187,
1158 25.0,
1159 ),
1160 (
1161 -123.936071739635,
1162 49.1658426721463,
1163 25.0,
1164 ),
1165 (
1166 -123.936070728538,
1167 49.16584304009081,
1168 25.0,
1169 ),
1170 (
1171 -123.93606971744,
1172 49.1658434080353,
1173 25.0,
1174 ),
1175 (
1176 -123.936068589855,
1177 49.16584359705011,
1178 25.0,
1179 ),
1180 (
1181 -123.936067577062,
1182 49.16584387507131,
1183 25.0,
1184 ),
1185 (
1186 -123.936066447782,
1187 49.1658439741628,
1188 25.0,
1189 ),
1190 (
1191 -123.936065318501,
1192 49.1658440732543,
1193 25.0,
1194 ),
1195 (
1196 -123.936064187525,
1197 49.1658440824226,
1198 25.0,
1199 ),
1200 (
1201 -123.936063054855,
1202 49.1658440016676,
1203 25.0,
1204 ),
1205 (
1206 -123.936061922184,
1207 49.1658439209126,
1208 25.0,
1209 ),
1210 (
1211 -123.936060787817,
1212 49.16584375023431,
1213 25.0,
1214 ),
1215 (
1216 -123.936059653451,
1217 49.1658435795561,
1218 25.0,
1219 ),
1220 (
1221 -123.936058628792,
1222 49.1658432281144,
1223 25.0,
1224 ),
1225 (
1226 -123.936057605828,
1227 49.1658429665961,
1228 25.0,
1229 ),
1230 (
1231 -123.936056692572,
1232 49.1658425243144,
1233 25.0,
1234 ),
1235 (
1236 -123.936055779315,
1237 49.1658420820327,
1238 25.0,
1239 ),
1240 (
1241 -123.936041957201,
1242 49.165834909184,
1243 25.0,
1244 ),
1245 (
1246 -123.93581858271,
1247 49.1660164138055,
1248 25.0,
1249 ),
1250 (
1251 -123.935830850283,
1252 49.1660251282083,
1253 25.0,
1254 ),
1255 (
1256 -123.93583153904,
1257 49.1660256622482,
1258 25.0,
1259 ),
1260 (
1261 -123.935832229491,
1262 49.1660262862113,
1263 25.0,
1264 ),
1265 (
1266 -123.935832806845,
1267 49.166026911091,
1268 25.0,
1269 ),
1270 (
1271 -123.9358332711,
1272 49.16602753688741,
1273 25.0,
1274 ),
1275 (
1276 -123.935833737051,
1277 49.1660282526069,
1278 25.0,
1279 ),
1280 (
1281 -123.935833976805,
1282 49.16602897015971,
1283 25.0,
1284 ),
1285 (
1286 -123.935834216559,
1287 49.1660296877125,
1288 25.0,
1289 ),
1290 (
1291 -123.935834343216,
1292 49.1660304061819,
1293 25.0,
1294 ),
1295 (
1296 -123.935834471567,
1297 49.1660312145745,
1298 25.0,
1299 ),
1300 (
1301 -123.935834372027,
1302 49.1660319348771,
1303 25.0,
1304 ),
1305 (
1306 -123.935834272488,
1307 49.16603265517961,
1308 25.0,
1309 ),
1310 (
1311 -123.935833946752,
1312 49.16603337731541,
1313 25.0,
1314 ),
1315 (
1316 -123.935833621016,
1317 49.16603409945121,
1318 25.0,
1319 ),
1320 (
1321 -123.935833295281,
1322 49.166034821587,
1323 25.0,
1324 ),
1325 (
1326 -123.935832741654,
1327 49.1660354556328,
1328 25.0,
1329 ),
1330 (
1331 -123.935832188028,
1332 49.1660360896785,
1333 25.0,
1334 ),
1335 (
1336 -123.935831521303,
1337 49.1660367246408,
1338 25.0,
1339 ),
1340 (
1341 -123.935774273544,
1342 49.1660841356946,
1343 25.0,
1344 ),
1345 ),
1346 ),
1347 ),
1348 ),
1349 ],
1350 ),
1351 ),
1352 ],
1353 ),
1354 ],
1355 ),
1356 fastkml.features.Placemark(
1357 ns="{http://www.opengis.net/kml/2.2}",
1358 name_spaces={
1359 "kml": "{http://www.opengis.net/kml/2.2}",
1360 "atom": "{http://www.w3.org/2005/Atom}",
1361 "gx": "{http://www.google.com/kml/ext/2.2}",
1362 },
1363 id="",
1364 target_id="",
1365 name="General Motors Place",
1366 visibility=None,
1367 isopen=None,
1368 atom_link=fastkml.atom.Link(
1369 ns="{http://www.w3.org/2005/Atom}",
1370 name_spaces={
1371 "kml": "{http://www.opengis.net/kml/2.2}",
1372 "atom": "{http://www.w3.org/2005/Atom}",
1373 "gx": "{http://www.google.com/kml/ext/2.2}",
1374 },
1375 href="http://en.wikipedia.org/wiki/General_Motors_Place",
1376 rel="related",
1377 type="text/html",
1378 hreflang="en",
1379 title="Wikipedia entry",
1380 length=None,
1381 ),
1382 atom_author=fastkml.atom.Author(
1383 ns="{http://www.w3.org/2005/Atom}",
1384 name_spaces={
1385 "kml": "{http://www.opengis.net/kml/2.2}",
1386 "atom": "{http://www.w3.org/2005/Atom}",
1387 "gx": "{http://www.google.com/kml/ext/2.2}",
1388 },
1389 name="Phineas Fogg",
1390 uri=None,
1391 email=None,
1392 ),
1393 address=None,
1394 phone_number="tel:+1-604-899-7400",
1395 snippet=None,
1396 description="General Motors Place (), sponsored by General Motors Canada,\n is an indoor arena at 800 Griffiths Way in Vancouver, British Columbia,\n Canada. Completed in 1995 at a cost of CAD $160 million in private\n financing, the arena is home to the Vancouver Canucks of the NHL, and\n was formerly home to the Vancouver Grizzlies of the NBA and the Vancouver\n Ravens of the NLL. The Grizzlies have since moved to Memphis. The arena\n seats 18,630 for ice hockey and 19,193 for basketball. It has 88 luxury suites,\n 12 hospitality suites, and 2,195 club seats. The arena replaced the\n Pacific Coliseum as the main venue for events in Vancouver.",
1397 view=None,
1398 times=None,
1399 style_url=None,
1400 styles=[],
1401 region=None,
1402 extended_data=None,
1403 kml_geometry=fastkml.geometry.Point(
1404 ns="{http://www.opengis.net/kml/2.2}",
1405 name_spaces={
1406 "kml": "{http://www.opengis.net/kml/2.2}",
1407 "atom": "{http://www.w3.org/2005/Atom}",
1408 "gx": "{http://www.google.com/kml/ext/2.2}",
1409 },
1410 id="",
1411 target_id="",
1412 extrude=None,
1413 altitude_mode=None,
1414 kml_coordinates=fastkml.geometry.Coordinates(
1415 ns="{http://www.opengis.net/kml/2.2}",
1416 name_spaces={
1417 "kml": "{http://www.opengis.net/kml/2.2}",
1418 "atom": "{http://www.w3.org/2005/Atom}",
1419 "gx": "{http://www.google.com/kml/ext/2.2}",
1420 },
1421 coords=[(-123.1097, 49.2774, 0.0)],
1422 ),
1423 ),
1424 ),
1425 fastkml.features.Placemark(
1426 ns="{http://www.opengis.net/kml/2.2}",
1427 name_spaces={
1428 "kml": "{http://www.opengis.net/kml/2.2}",
1429 "atom": "{http://www.w3.org/2005/Atom}",
1430 "gx": "{http://www.google.com/kml/ext/2.2}",
1431 },
1432 id="VFS",
1433 target_id="",
1434 name="Vancouver Film Studios",
1435 visibility=None,
1436 isopen=None,
1437 atom_link=fastkml.atom.Link(
1438 ns="{http://www.w3.org/2005/Atom}",
1439 name_spaces={
1440 "kml": "{http://www.opengis.net/kml/2.2}",
1441 "atom": "{http://www.w3.org/2005/Atom}",
1442 "gx": "{http://www.google.com/kml/ext/2.2}",
1443 },
1444 href="http://www.vancouverfilmstudios.com/",
1445 rel="related",
1446 type="text/html",
1447 hreflang="en",
1448 title="Welcome to Vancouver Film Studios",
1449 length=None,
1450 ),
1451 atom_author=None,
1452 address="3500 Cornett Rd, Vancouver, BC, Canada",
1453 phone_number=None,
1454 snippet=None,
1455 description="Situated on nearly two city blocks of land just fifteen minutes from\n downtown Vancouver, British Columbia, Vancouver Film Studios (VFS) is\n Canada's premier motion picture production complex.",
1456 view=fastkml.views.LookAt(
1457 ns="{http://www.opengis.net/kml/2.2}",
1458 name_spaces={
1459 "kml": "{http://www.opengis.net/kml/2.2}",
1460 "atom": "{http://www.w3.org/2005/Atom}",
1461 "gx": "{http://www.google.com/kml/ext/2.2}",
1462 },
1463 id="",
1464 target_id="",
1465 longitude=-123.0281012076333,
1466 latitude=49.26140654323342,
1467 altitude=0.0,
1468 heading=0.0,
1469 tilt=51.96,
1470 range=301.9568,
1471 altitude_mode=AltitudeMode.relative_to_ground,
1472 ),
1473 times=None,
1474 style_url=None,
1475 styles=[
1476 fastkml.styles.StyleMap(
1477 ns="{http://www.opengis.net/kml/2.2}",
1478 name_spaces={
1479 "kml": "{http://www.opengis.net/kml/2.2}",
1480 "atom": "{http://www.w3.org/2005/Atom}",
1481 "gx": "{http://www.google.com/kml/ext/2.2}",
1482 },
1483 id="",
1484 target_id="",
1485 pairs=[
1486 fastkml.styles.Pair(
1487 ns="{http://www.opengis.net/kml/2.2}",
1488 name_spaces={
1489 "kml": "{http://www.opengis.net/kml/2.2}",
1490 "atom": "{http://www.w3.org/2005/Atom}",
1491 "gx": "{http://www.google.com/kml/ext/2.2}",
1492 },
1493 id="",
1494 target_id="",
1495 key=PairKey.normal,
1496 style=fastkml.styles.Style(
1497 ns="{http://www.opengis.net/kml/2.2}",
1498 name_spaces={
1499 "kml": "{http://www.opengis.net/kml/2.2}",
1500 "atom": "{http://www.w3.org/2005/Atom}",
1501 "gx": "{http://www.google.com/kml/ext/2.2}",
1502 },
1503 id="",
1504 target_id="",
1505 styles=[
1506 fastkml.styles.IconStyle(
1507 ns="{http://www.opengis.net/kml/2.2}",
1508 name_spaces={
1509 "kml": "{http://www.opengis.net/kml/2.2}",
1510 "atom": "{http://www.w3.org/2005/Atom}",
1511 "gx": "{http://www.google.com/kml/ext/2.2}",
1512 },
1513 id="",
1514 target_id="",
1515 color=None,
1516 color_mode=None,
1517 scale=None,
1518 heading=None,
1519 icon=fastkml.links.Icon(
1520 ns="{http://www.opengis.net/kml/2.2}",
1521 name_spaces={
1522 "kml": "{http://www.opengis.net/kml/2.2}",
1523 "atom": "{http://www.w3.org/2005/Atom}",
1524 "gx": "{http://www.google.com/kml/ext/2.2}",
1525 },
1526 id="",
1527 target_id="",
1528 href="http://maps.google.com/mapfiles/kml/paddle/go.png",
1529 refresh_mode=None,
1530 refresh_interval=None,
1531 view_refresh_mode=None,
1532 view_refresh_time=None,
1533 view_bound_scale=None,
1534 view_format=None,
1535 http_query=None,
1536 ),
1537 hot_spot=None,
1538 ),
1539 ],
1540 ),
1541 ),
1542 fastkml.styles.Pair(
1543 ns="{http://www.opengis.net/kml/2.2}",
1544 name_spaces={
1545 "kml": "{http://www.opengis.net/kml/2.2}",
1546 "atom": "{http://www.w3.org/2005/Atom}",
1547 "gx": "{http://www.google.com/kml/ext/2.2}",
1548 },
1549 id="",
1550 target_id="",
1551 key=PairKey.highlight,
1552 style=fastkml.styles.Style(
1553 ns="{http://www.opengis.net/kml/2.2}",
1554 name_spaces={
1555 "kml": "{http://www.opengis.net/kml/2.2}",
1556 "atom": "{http://www.w3.org/2005/Atom}",
1557 "gx": "{http://www.google.com/kml/ext/2.2}",
1558 },
1559 id="",
1560 target_id="",
1561 styles=[
1562 fastkml.styles.IconStyle(
1563 ns="{http://www.opengis.net/kml/2.2}",
1564 name_spaces={
1565 "kml": "{http://www.opengis.net/kml/2.2}",
1566 "atom": "{http://www.w3.org/2005/Atom}",
1567 "gx": "{http://www.google.com/kml/ext/2.2}",
1568 },
1569 id="",
1570 target_id="",
1571 color=None,
1572 color_mode=None,
1573 scale=1.3,
1574 heading=None,
1575 icon=fastkml.links.Icon(
1576 ns="{http://www.opengis.net/kml/2.2}",
1577 name_spaces={
1578 "kml": "{http://www.opengis.net/kml/2.2}",
1579 "atom": "{http://www.w3.org/2005/Atom}",
1580 "gx": "{http://www.google.com/kml/ext/2.2}",
1581 },
1582 id="",
1583 target_id="",
1584 href="http://maps.google.com/mapfiles/kml/paddle/go.png",
1585 refresh_mode=None,
1586 refresh_interval=None,
1587 view_refresh_mode=None,
1588 view_refresh_time=None,
1589 view_bound_scale=None,
1590 view_format=None,
1591 http_query=None,
1592 ),
1593 hot_spot=None,
1594 ),
1595 ],
1596 ),
1597 ),
1598 ],
1599 ),
1600 ],
1601 region=None,
1602 extended_data=fastkml.data.ExtendedData(
1603 ns="{http://www.opengis.net/kml/2.2}",
1604 name_spaces={
1605 "kml": "{http://www.opengis.net/kml/2.2}",
1606 "atom": "{http://www.w3.org/2005/Atom}",
1607 "gx": "{http://www.google.com/kml/ext/2.2}",
1608 },
1609 elements=[
1610 fastkml.data.Data(
1611 ns="{http://www.opengis.net/kml/2.2}",
1612 name_spaces={
1613 "kml": "{http://www.opengis.net/kml/2.2}",
1614 "atom": "{http://www.w3.org/2005/Atom}",
1615 "gx": "{http://www.google.com/kml/ext/2.2}",
1616 },
1617 id="",
1618 target_id="",
1619 name="nStages",
1620 value="13",
1621 display_name="Number of sound stages",
1622 ),
1623 fastkml.data.Data(
1624 ns="{http://www.opengis.net/kml/2.2}",
1625 name_spaces={
1626 "kml": "{http://www.opengis.net/kml/2.2}",
1627 "atom": "{http://www.w3.org/2005/Atom}",
1628 "gx": "{http://www.google.com/kml/ext/2.2}",
1629 },
1630 id="",
1631 target_id="",
1632 name="helipad",
1633 value="yes",
1634 display_name="Helipad?",
1635 ),
1636 ],
1637 ),
1638 kml_geometry=fastkml.geometry.Point(
1639 ns="{http://www.opengis.net/kml/2.2}",
1640 name_spaces={
1641 "kml": "{http://www.opengis.net/kml/2.2}",
1642 "atom": "{http://www.w3.org/2005/Atom}",
1643 "gx": "{http://www.google.com/kml/ext/2.2}",
1644 },
1645 id="",
1646 target_id="",
1647 extrude=None,
1648 altitude_mode=None,
1649 kml_coordinates=fastkml.geometry.Coordinates(
1650 ns="{http://www.opengis.net/kml/2.2}",
1651 name_spaces={
1652 "kml": "{http://www.opengis.net/kml/2.2}",
1653 "atom": "{http://www.w3.org/2005/Atom}",
1654 "gx": "{http://www.google.com/kml/ext/2.2}",
1655 },
1656 coords=[(-123.028369, 49.26107900000001, 0.0)],
1657 ),
1658 ),
1659 ),
1660 fastkml.features.Placemark(
1661 ns="{http://www.opengis.net/kml/2.2}",
1662 name_spaces={
1663 "kml": "{http://www.opengis.net/kml/2.2}",
1664 "atom": "{http://www.w3.org/2005/Atom}",
1665 "gx": "{http://www.google.com/kml/ext/2.2}",
1666 },
1667 id="",
1668 target_id="",
1669 name=None,
1670 visibility=None,
1671 isopen=None,
1672 atom_link=None,
1673 atom_author=None,
1674 address=None,
1675 phone_number=None,
1676 snippet=None,
1677 description="Navigation buoys in Vancouver harbour",
1678 view=None,
1679 times=None,
1680 style_url=None,
1681 styles=[],
1682 region=None,
1683 extended_data=None,
1684 kml_geometry=fastkml.geometry.MultiGeometry(
1685 ns="{http://www.opengis.net/kml/2.2}",
1686 name_spaces={
1687 "kml": "{http://www.opengis.net/kml/2.2}",
1688 "atom": "{http://www.w3.org/2005/Atom}",
1689 "gx": "{http://www.google.com/kml/ext/2.2}",
1690 },
1691 id="geom-001",
1692 target_id="",
1693 kml_geometries=[
1694 fastkml.geometry.Point(
1695 ns="{http://www.opengis.net/kml/2.2}",
1696 name_spaces={
1697 "kml": "{http://www.opengis.net/kml/2.2}",
1698 "atom": "{http://www.w3.org/2005/Atom}",
1699 "gx": "{http://www.google.com/kml/ext/2.2}",
1700 },
1701 id="b385.5",
1702 target_id="",
1703 extrude=None,
1704 altitude_mode=None,
1705 kml_coordinates=fastkml.geometry.Coordinates(
1706 ns="{http://www.opengis.net/kml/2.2}",
1707 name_spaces={
1708 "kml": "{http://www.opengis.net/kml/2.2}",
1709 "atom": "{http://www.w3.org/2005/Atom}",
1710 "gx": "{http://www.google.com/kml/ext/2.2}",
1711 },
1712 coords=[(-123.3215766, 49.2760338, 0.0)],
1713 ),
1714 ),
1715 fastkml.geometry.Point(
1716 ns="{http://www.opengis.net/kml/2.2}",
1717 name_spaces={
1718 "kml": "{http://www.opengis.net/kml/2.2}",
1719 "atom": "{http://www.w3.org/2005/Atom}",
1720 "gx": "{http://www.google.com/kml/ext/2.2}",
1721 },
1722 id="b386",
1723 target_id="",
1724 extrude=None,
1725 altitude_mode=None,
1726 kml_coordinates=fastkml.geometry.Coordinates(
1727 ns="{http://www.opengis.net/kml/2.2}",
1728 name_spaces={
1729 "kml": "{http://www.opengis.net/kml/2.2}",
1730 "atom": "{http://www.w3.org/2005/Atom}",
1731 "gx": "{http://www.google.com/kml/ext/2.2}",
1732 },
1733 coords=[(-123.2643704, 49.3301853, 0.0)],
1734 ),
1735 ),
1736 fastkml.geometry.Point(
1737 ns="{http://www.opengis.net/kml/2.2}",
1738 name_spaces={
1739 "kml": "{http://www.opengis.net/kml/2.2}",
1740 "atom": "{http://www.w3.org/2005/Atom}",
1741 "gx": "{http://www.google.com/kml/ext/2.2}",
1742 },
1743 id="b386.3",
1744 target_id="",
1745 extrude=None,
1746 altitude_mode=None,
1747 kml_coordinates=fastkml.geometry.Coordinates(
1748 ns="{http://www.opengis.net/kml/2.2}",
1749 name_spaces={
1750 "kml": "{http://www.opengis.net/kml/2.2}",
1751 "atom": "{http://www.w3.org/2005/Atom}",
1752 "gx": "{http://www.google.com/kml/ext/2.2}",
1753 },
1754 coords=[(-123.2477084, 49.2890857, 0.0)],
1755 ),
1756 ),
1757 ],
1758 ),
1759 ),
1760 fastkml.features.Placemark(
1761 ns="{http://www.opengis.net/kml/2.2}",
1762 name_spaces={
1763 "kml": "{http://www.opengis.net/kml/2.2}",
1764 "atom": "{http://www.w3.org/2005/Atom}",
1765 "gx": "{http://www.google.com/kml/ext/2.2}",
1766 },
1767 id="",
1768 target_id="",
1769 name="Rivière des Outaouais",
1770 visibility=None,
1771 isopen=True,
1772 atom_link=None,
1773 atom_author=None,
1774 address=None,
1775 phone_number=None,
1776 snippet=None,
1777 description="Vue du ciel, la rivière des Outaouais est le principal élément naturel\n de la vallée du même nom. Cette splendide rivière, la deuxième plus\n grande dans l'est du Canada, possède un bassin hydrographique de 140 000\n km2 et s'étend sure plus de 1 271 km, en majeure partie dans le Bouclier\n canadien.",
1778 view=None,
1779 times=None,
1780 style_url=None,
1781 styles=[],
1782 region=None,
1783 extended_data=None,
1784 kml_geometry=fastkml.geometry.LineString(
1785 ns="{http://www.opengis.net/kml/2.2}",
1786 name_spaces={
1787 "kml": "{http://www.opengis.net/kml/2.2}",
1788 "atom": "{http://www.w3.org/2005/Atom}",
1789 "gx": "{http://www.google.com/kml/ext/2.2}",
1790 },
1791 id="ed-003",
1792 target_id="",
1793 extrude=None,
1794 tessellate=None,
1795 altitude_mode=None,
1796 geometry=LineString(
1797 (
1798 (-74.08, 45.45, 19.0),
1799 (-74.25, 45.51, 23.0),
1800 (-74.33, 45.51, 22.0),
1801 (-74.36, 45.55, 22.0),
1802 (-74.39, 45.57, 29.0),
1803 (-74.44, 45.57, 35.0),
1804 (-74.48, 45.6, 35.0),
1805 (-74.52, 45.59, 32.0),
1806 (-74.55, 45.6, 32.0),
1807 (-74.6, 45.62, 32.0),
1808 ),
1809 ),
1810 ),
1811 ),
1812 fastkml.features.Placemark(
1813 ns="{http://www.opengis.net/kml/2.2}",
1814 name_spaces={
1815 "kml": "{http://www.opengis.net/kml/2.2}",
1816 "atom": "{http://www.w3.org/2005/Atom}",
1817 "gx": "{http://www.google.com/kml/ext/2.2}",
1818 },
1819 id="place-100",
1820 target_id="",
1821 name=None,
1822 visibility=None,
1823 isopen=None,
1824 atom_link=None,
1825 atom_author=None,
1826 address=None,
1827 phone_number=None,
1828 snippet=None,
1829 description="Sampling loop",
1830 view=None,
1831 times=None,
1832 style_url=None,
1833 styles=[],
1834 region=None,
1835 extended_data=None,
1836 kml_geometry=fastkml.geometry.LinearRing(
1837 ns="{http://www.opengis.net/kml/2.2}",
1838 name_spaces={
1839 "kml": "{http://www.opengis.net/kml/2.2}",
1840 "atom": "{http://www.w3.org/2005/Atom}",
1841 "gx": "{http://www.google.com/kml/ext/2.2}",
1842 },
1843 id="",
1844 target_id="",
1845 extrude=None,
1846 tessellate=False,
1847 altitude_mode=None,
1848 geometry=LinearRing(
1849 (
1850 (-65.679, 47.43),
1851 (-65.73, 47.456),
1852 (-65.72, 47.461),
1853 (-65.669, 47.439),
1854 (-65.679, 47.43),
1855 ),
1856 ),
1857 ),
1858 ),
1859 fastkml.features.Placemark(
1860 ns="{http://www.opengis.net/kml/2.2}",
1861 name_spaces={
1862 "kml": "{http://www.opengis.net/kml/2.2}",
1863 "atom": "{http://www.w3.org/2005/Atom}",
1864 "gx": "{http://www.google.com/kml/ext/2.2}",
1865 },
1866 id="VPL",
1867 target_id="",
1868 name="Vancouver Public Library",
1869 visibility=None,
1870 isopen=None,
1871 atom_link=fastkml.atom.Link(
1872 ns="{http://www.w3.org/2005/Atom}",
1873 name_spaces={
1874 "kml": "{http://www.opengis.net/kml/2.2}",
1875 "atom": "{http://www.w3.org/2005/Atom}",
1876 "gx": "{http://www.google.com/kml/ext/2.2}",
1877 },
1878 href="http://www.vpl.ca/",
1879 rel="related",
1880 type="text/html",
1881 hreflang="en",
1882 title="Vancouver Public Library - Home",
1883 length=None,
1884 ),
1885 atom_author=None,
1886 address=None,
1887 phone_number=None,
1888 snippet=None,
1889 description="Funded by the City of Vancouver, Vancouver Public Library is the third\n largest public library system in Canada, with over 373,000 cardholders\n and more than 9 million items borrowed annually. Today, with exceptional\n collections, services and technologies offered at 22 branches and an\n extensive virtual library, VPL is accessible to all citizens of Vancouver.",
1890 view=None,
1891 times=None,
1892 style_url=None,
1893 styles=[],
1894 region=None,
1895 extended_data=None,
1896 kml_geometry=None,
1897 ),
1898 ],
1899 schemata=[],
1900 ),
1901 ],
1902 )
1903
1904 def test_repr(self) -> None:
1905 """Test the __repr__ method."""
1906 new_doc = eval(repr(self.clean_doc), {}, eval_locals) # noqa: S307
1907
1908 assert new_doc == self.clean_doc
1909 assert repr(new_doc) == repr(self.clean_doc)
1910
1911 def test_str(self) -> None:
1912 """Test the __str__ method."""
1913 assert str(self.clean_doc) == self.clean_doc.to_string()
1914
1915 def test_eq_str_round_trip(self) -> None:
1916 """Test the equality of the original and the round-tripped document."""
1917 new_doc = fastkml.KML.from_string(self.clean_doc.to_string())
1918
1919 assert str(self.clean_doc) == str(new_doc)
1920 assert new_doc == self.clean_doc
1921
1922
1923 class TestReprLxml(Lxml, TestRepr):
1924 """Test the __repr__ and __str__ methods of the KML document with lxml."""