rust-geo-python 0.1.4__tar.gz → 0.1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,6 +29,12 @@ version = "1.5.0"
29
29
  source = "registry+https://github.com/rust-lang/crates.io-index"
30
30
  checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
31
31
 
32
+ [[package]]
33
+ name = "cfg-if"
34
+ version = "1.0.4"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
37
+
32
38
  [[package]]
33
39
  name = "crossbeam-deque"
34
40
  version = "0.8.6"
@@ -90,9 +96,9 @@ checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
90
96
 
91
97
  [[package]]
92
98
  name = "geo"
93
- version = "0.31.0"
99
+ version = "0.32.0"
94
100
  source = "registry+https://github.com/rust-lang/crates.io-index"
95
- checksum = "2fc1a1678e54befc9b4bcab6cd43b8e7f834ae8ea121118b0fd8c42747675b4a"
101
+ checksum = "3f3901269ec6d4f6068d3f09e5f02f995bd076398dcd1dfec407cd230b02d11b"
96
102
  dependencies = [
97
103
  "earcutr",
98
104
  "float_next_after",
@@ -101,8 +107,10 @@ dependencies = [
101
107
  "i_overlay",
102
108
  "log",
103
109
  "num-traits",
110
+ "rand",
104
111
  "robust",
105
112
  "rstar",
113
+ "sif-itree",
106
114
  "spade",
107
115
  ]
108
116
 
@@ -117,9 +125,9 @@ dependencies = [
117
125
 
118
126
  [[package]]
119
127
  name = "geo-types"
120
- version = "0.7.17"
128
+ version = "0.7.18"
121
129
  source = "registry+https://github.com/rust-lang/crates.io-index"
122
- checksum = "75a4dcd69d35b2c87a7c83bce9af69fd65c9d68d3833a0ded568983928f3fc99"
130
+ checksum = "24f8647af4005fa11da47cd56252c6ef030be8fa97bdbf355e7dfb6348f0a82c"
123
131
  dependencies = [
124
132
  "approx",
125
133
  "num-traits",
@@ -137,6 +145,17 @@ dependencies = [
137
145
  "libm",
138
146
  ]
139
147
 
148
+ [[package]]
149
+ name = "getrandom"
150
+ version = "0.2.16"
151
+ source = "registry+https://github.com/rust-lang/crates.io-index"
152
+ checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592"
153
+ dependencies = [
154
+ "cfg-if",
155
+ "libc",
156
+ "wasi",
157
+ ]
158
+
140
159
  [[package]]
141
160
  name = "hash32"
142
161
  version = "0.3.1"
@@ -252,9 +271,9 @@ dependencies = [
252
271
 
253
272
  [[package]]
254
273
  name = "libc"
255
- version = "0.2.177"
274
+ version = "0.2.178"
256
275
  source = "registry+https://github.com/rust-lang/crates.io-index"
257
- checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976"
276
+ checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091"
258
277
 
259
278
  [[package]]
260
279
  name = "libm"
@@ -264,9 +283,9 @@ checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de"
264
283
 
265
284
  [[package]]
266
285
  name = "log"
267
- version = "0.4.28"
286
+ version = "0.4.29"
268
287
  source = "registry+https://github.com/rust-lang/crates.io-index"
269
- checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
288
+ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
270
289
 
271
290
  [[package]]
272
291
  name = "matrixmultiply"
@@ -295,9 +314,9 @@ dependencies = [
295
314
 
296
315
  [[package]]
297
316
  name = "ndarray"
298
- version = "0.16.1"
317
+ version = "0.17.1"
299
318
  source = "registry+https://github.com/rust-lang/crates.io-index"
300
- checksum = "882ed72dce9365842bf196bdeedf5055305f11fc8c03dee7bb0194a6cad34841"
319
+ checksum = "0c7c9125e8f6f10c9da3aad044cc918cf8784fa34de857b1aa68038eb05a50a9"
301
320
  dependencies = [
302
321
  "matrixmultiply",
303
322
  "num-complex",
@@ -361,9 +380,9 @@ dependencies = [
361
380
 
362
381
  [[package]]
363
382
  name = "numpy"
364
- version = "0.27.0"
383
+ version = "0.27.1"
365
384
  source = "registry+https://github.com/rust-lang/crates.io-index"
366
- checksum = "0fa24ffc88cf9d43f7269d6b6a0d0a00010924a8cc90604a21ef9c433b66998d"
385
+ checksum = "7aac2e6a6e4468ffa092ad43c39b81c79196c2bb773b8db4085f695efe3bba17"
367
386
  dependencies = [
368
387
  "libc",
369
388
  "ndarray",
@@ -396,6 +415,15 @@ dependencies = [
396
415
  "portable-atomic",
397
416
  ]
398
417
 
418
+ [[package]]
419
+ name = "ppv-lite86"
420
+ version = "0.2.21"
421
+ source = "registry+https://github.com/rust-lang/crates.io-index"
422
+ checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
423
+ dependencies = [
424
+ "zerocopy",
425
+ ]
426
+
399
427
  [[package]]
400
428
  name = "proc-macro-crate"
401
429
  version = "3.4.0"
@@ -416,9 +444,9 @@ dependencies = [
416
444
 
417
445
  [[package]]
418
446
  name = "pyo3"
419
- version = "0.27.1"
447
+ version = "0.27.2"
420
448
  source = "registry+https://github.com/rust-lang/crates.io-index"
421
- checksum = "37a6df7eab65fc7bee654a421404947e10a0f7085b6951bf2ea395f4659fb0cf"
449
+ checksum = "ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d"
422
450
  dependencies = [
423
451
  "indoc",
424
452
  "libc",
@@ -433,18 +461,18 @@ dependencies = [
433
461
 
434
462
  [[package]]
435
463
  name = "pyo3-build-config"
436
- version = "0.27.1"
464
+ version = "0.27.2"
437
465
  source = "registry+https://github.com/rust-lang/crates.io-index"
438
- checksum = "f77d387774f6f6eec64a004eac0ed525aab7fa1966d94b42f743797b3e395afb"
466
+ checksum = "b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6"
439
467
  dependencies = [
440
468
  "target-lexicon",
441
469
  ]
442
470
 
443
471
  [[package]]
444
472
  name = "pyo3-ffi"
445
- version = "0.27.1"
473
+ version = "0.27.2"
446
474
  source = "registry+https://github.com/rust-lang/crates.io-index"
447
- checksum = "2dd13844a4242793e02df3e2ec093f540d948299a6a77ea9ce7afd8623f542be"
475
+ checksum = "1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089"
448
476
  dependencies = [
449
477
  "libc",
450
478
  "pyo3-build-config",
@@ -452,9 +480,9 @@ dependencies = [
452
480
 
453
481
  [[package]]
454
482
  name = "pyo3-macros"
455
- version = "0.27.1"
483
+ version = "0.27.2"
456
484
  source = "registry+https://github.com/rust-lang/crates.io-index"
457
- checksum = "eaf8f9f1108270b90d3676b8679586385430e5c0bb78bb5f043f95499c821a71"
485
+ checksum = "0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02"
458
486
  dependencies = [
459
487
  "proc-macro2",
460
488
  "pyo3-macros-backend",
@@ -464,9 +492,9 @@ dependencies = [
464
492
 
465
493
  [[package]]
466
494
  name = "pyo3-macros-backend"
467
- version = "0.27.1"
495
+ version = "0.27.2"
468
496
  source = "registry+https://github.com/rust-lang/crates.io-index"
469
- checksum = "70a3b2274450ba5288bc9b8c1b69ff569d1d61189d4bff38f8d22e03d17f932b"
497
+ checksum = "03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9"
470
498
  dependencies = [
471
499
  "heck",
472
500
  "proc-macro2",
@@ -484,6 +512,36 @@ dependencies = [
484
512
  "proc-macro2",
485
513
  ]
486
514
 
515
+ [[package]]
516
+ name = "rand"
517
+ version = "0.8.5"
518
+ source = "registry+https://github.com/rust-lang/crates.io-index"
519
+ checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
520
+ dependencies = [
521
+ "libc",
522
+ "rand_chacha",
523
+ "rand_core",
524
+ ]
525
+
526
+ [[package]]
527
+ name = "rand_chacha"
528
+ version = "0.3.1"
529
+ source = "registry+https://github.com/rust-lang/crates.io-index"
530
+ checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
531
+ dependencies = [
532
+ "ppv-lite86",
533
+ "rand_core",
534
+ ]
535
+
536
+ [[package]]
537
+ name = "rand_core"
538
+ version = "0.6.4"
539
+ source = "registry+https://github.com/rust-lang/crates.io-index"
540
+ checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
541
+ dependencies = [
542
+ "getrandom",
543
+ ]
544
+
487
545
  [[package]]
488
546
  name = "rawpointer"
489
547
  version = "0.2.1"
@@ -529,7 +587,7 @@ dependencies = [
529
587
 
530
588
  [[package]]
531
589
  name = "rust-geo-python"
532
- version = "0.1.4"
590
+ version = "0.1.5"
533
591
  dependencies = [
534
592
  "geo",
535
593
  "ndarray",
@@ -581,6 +639,12 @@ dependencies = [
581
639
  "syn",
582
640
  ]
583
641
 
642
+ [[package]]
643
+ name = "sif-itree"
644
+ version = "0.4.0"
645
+ source = "registry+https://github.com/rust-lang/crates.io-index"
646
+ checksum = "142099cd6db3c4fab61e5133c62ff80b26674391e195860791fda0b1be3e5080"
647
+
584
648
  [[package]]
585
649
  name = "smallvec"
586
650
  version = "1.15.1"
@@ -653,9 +717,9 @@ dependencies = [
653
717
 
654
718
  [[package]]
655
719
  name = "toml_edit"
656
- version = "0.23.7"
720
+ version = "0.23.9"
657
721
  source = "registry+https://github.com/rust-lang/crates.io-index"
658
- checksum = "6485ef6d0d9b5d0ec17244ff7eb05310113c3f316f2d14200d4de56b3cb98f8d"
722
+ checksum = "5d7cbc3b4b49633d57a0509303158ca50de80ae32c265093b24c414705807832"
659
723
  dependencies = [
660
724
  "indexmap",
661
725
  "toml_datetime",
@@ -684,6 +748,12 @@ version = "0.2.4"
684
748
  source = "registry+https://github.com/rust-lang/crates.io-index"
685
749
  checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
686
750
 
751
+ [[package]]
752
+ name = "wasi"
753
+ version = "0.11.1+wasi-snapshot-preview1"
754
+ source = "registry+https://github.com/rust-lang/crates.io-index"
755
+ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
756
+
687
757
  [[package]]
688
758
  name = "winnow"
689
759
  version = "0.7.14"
@@ -717,3 +787,23 @@ dependencies = [
717
787
  "num-traits",
718
788
  "thiserror",
719
789
  ]
790
+
791
+ [[package]]
792
+ name = "zerocopy"
793
+ version = "0.8.31"
794
+ source = "registry+https://github.com/rust-lang/crates.io-index"
795
+ checksum = "fd74ec98b9250adb3ca554bdde269adf631549f51d8a8f8f0a10b50f1cb298c3"
796
+ dependencies = [
797
+ "zerocopy-derive",
798
+ ]
799
+
800
+ [[package]]
801
+ name = "zerocopy-derive"
802
+ version = "0.8.31"
803
+ source = "registry+https://github.com/rust-lang/crates.io-index"
804
+ checksum = "d8a8d209fdf45cf5138cbb5a506f6b52522a25afccc534d1475dad8e31105c6a"
805
+ dependencies = [
806
+ "proc-macro2",
807
+ "quote",
808
+ "syn",
809
+ ]
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rust-geo-python"
3
- version = "0.1.4"
3
+ version = "0.1.5"
4
4
  authors = ["plooney"]
5
5
  edition = "2024"
6
6
  readme = "README.md"
@@ -11,9 +11,9 @@ crate-type = ["cdylib"]
11
11
 
12
12
  [dependencies]
13
13
  pyo3 = { version = "0.27.1", features = ["extension-module", "abi3-py37"] }
14
- ndarray = {version="0.16", features = ["rayon"]}
15
- numpy = "0.27.0"
16
- geo = { version = "0.31.0" }
14
+ ndarray = {version="0.17.1", features = ["rayon"]}
15
+ numpy = "0.27.1"
16
+ geo = { version = "0.32.0" }
17
17
  wkt = "0.14.0"
18
18
  wkb = "0.9.1"
19
19
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rust-geo-python
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Author: plooney
5
5
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
6
6
 
@@ -8,8 +8,9 @@ mod rust_geo_python {
8
8
 
9
9
  use geo::orient::{Direction, Orient};
10
10
  use geo::{
11
- Area, BooleanOps, Buffer, Contains, Distance, Euclidean, HausdorffDistance, LineString,
12
- MultiLineString, MultiPoint, MultiPolygon, Point, Polygon, Simplify, unary_union,
11
+ Area, BooleanOps, Buffer, Contains, ContainsProperly, Distance, Euclidean,
12
+ HausdorffDistance, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon,
13
+ Simplify, unary_union,
13
14
  };
14
15
  use ndarray::parallel::prelude::IntoParallelIterator;
15
16
  use ndarray::{ArrayView1, ArrayView2};
@@ -673,6 +674,170 @@ mod rust_geo_python {
673
674
  }
674
675
  }
675
676
 
677
+ fn contains(&self, rhs: &Shape) -> bool {
678
+ match (&self.inner, &rhs.inner) {
679
+ (Shapes::Point(p), Shapes::Point(q)) => p.as_ref().contains(q.as_ref()),
680
+ (Shapes::LineString(p), Shapes::Point(q)) => p.as_ref().contains(q.as_ref()),
681
+ (Shapes::Point(p), Shapes::LineString(q)) => p.as_ref().contains(q.as_ref()),
682
+ (Shapes::LineString(p), Shapes::LineString(q)) => p.as_ref().contains(q.as_ref()),
683
+ (Shapes::MultiLineString(p), Shapes::Point(q)) => p.as_ref().contains(q.as_ref()),
684
+ (Shapes::MultiLineString(p), Shapes::LineString(q)) => {
685
+ p.as_ref().contains(q.as_ref())
686
+ }
687
+ (Shapes::MultiLineString(p), Shapes::MultiLineString(q)) => {
688
+ p.as_ref().contains(q.as_ref())
689
+ }
690
+ (Shapes::Point(p), Shapes::MultiLineString(q)) => p.as_ref().contains(q.as_ref()),
691
+ (Shapes::LineString(p), Shapes::MultiLineString(q)) => {
692
+ p.as_ref().contains(q.as_ref())
693
+ }
694
+ (Shapes::Polygon(p), Shapes::Point(q)) => p.as_ref().contains(q.as_ref()),
695
+ (Shapes::Polygon(p), Shapes::LineString(q)) => p.as_ref().contains(q.as_ref()),
696
+ (Shapes::Polygon(p), Shapes::MultiLineString(q)) => p.as_ref().contains(q.as_ref()),
697
+ (Shapes::Polygon(p), Shapes::Polygon(q)) => p.as_ref().contains(q.as_ref()),
698
+ (Shapes::Point(p), Shapes::Polygon(q)) => p.as_ref().contains(q.as_ref()),
699
+ (Shapes::LineString(p), Shapes::Polygon(q)) => p.as_ref().contains(q.as_ref()),
700
+ (Shapes::MultiLineString(p), Shapes::Polygon(q)) => p.as_ref().contains(q.as_ref()),
701
+ (Shapes::MultiPolygon(p), Shapes::Point(q)) => p.as_ref().contains(q.as_ref()),
702
+ (Shapes::MultiPolygon(p), Shapes::LineString(q)) => p.as_ref().contains(q.as_ref()),
703
+ (Shapes::MultiPolygon(p), Shapes::MultiLineString(q)) => {
704
+ p.as_ref().contains(q.as_ref())
705
+ }
706
+ (Shapes::MultiPolygon(p), Shapes::Polygon(q)) => p.as_ref().contains(q.as_ref()),
707
+ (Shapes::MultiPolygon(p), Shapes::MultiPolygon(q)) => {
708
+ p.as_ref().contains(q.as_ref())
709
+ }
710
+ (Shapes::Point(p), Shapes::MultiPolygon(q)) => p.as_ref().contains(q.as_ref()),
711
+ (Shapes::LineString(p), Shapes::MultiPolygon(q)) => p.as_ref().contains(q.as_ref()),
712
+ (Shapes::MultiLineString(p), Shapes::MultiPolygon(q)) => {
713
+ p.as_ref().contains(q.as_ref())
714
+ }
715
+ (Shapes::Polygon(p), Shapes::MultiPolygon(q)) => p.as_ref().contains(q.as_ref()),
716
+ (Shapes::MultiPoint(p), Shapes::Point(q)) => p.as_ref().contains(q.as_ref()),
717
+ (Shapes::MultiPoint(p), Shapes::LineString(q)) => p.as_ref().contains(q.as_ref()),
718
+ (Shapes::MultiPoint(p), Shapes::MultiLineString(q)) => {
719
+ p.as_ref().contains(q.as_ref())
720
+ }
721
+ (Shapes::MultiPoint(p), Shapes::Polygon(q)) => p.as_ref().contains(q.as_ref()),
722
+ (Shapes::MultiPoint(p), Shapes::MultiPolygon(q)) => p.as_ref().contains(q.as_ref()),
723
+ (Shapes::MultiPoint(p), Shapes::MultiPoint(q)) => p.as_ref().contains(q.as_ref()),
724
+ (Shapes::Point(p), Shapes::MultiPoint(q)) => p.as_ref().contains(q.as_ref()),
725
+ (Shapes::LineString(p), Shapes::MultiPoint(q)) => p.as_ref().contains(q.as_ref()),
726
+ (Shapes::MultiLineString(p), Shapes::MultiPoint(q)) => {
727
+ p.as_ref().contains(q.as_ref())
728
+ }
729
+ (Shapes::Polygon(p), Shapes::MultiPoint(q)) => p.as_ref().contains(q.as_ref()),
730
+ (Shapes::MultiPolygon(p), Shapes::MultiPoint(q)) => p.as_ref().contains(q.as_ref()),
731
+ }
732
+ }
733
+
734
+ fn contains_properly(&self, rhs: &Shape) -> bool {
735
+ match (&self.inner, &rhs.inner) {
736
+ (Shapes::Point(p), Shapes::Point(q)) => p.as_ref().contains_properly(q.as_ref()),
737
+ (Shapes::LineString(p), Shapes::Point(q)) => {
738
+ p.as_ref().contains_properly(q.as_ref())
739
+ }
740
+ (Shapes::Point(p), Shapes::LineString(q)) => {
741
+ p.as_ref().contains_properly(q.as_ref())
742
+ }
743
+ (Shapes::LineString(p), Shapes::LineString(q)) => {
744
+ p.as_ref().contains_properly(q.as_ref())
745
+ }
746
+ (Shapes::MultiLineString(p), Shapes::Point(q)) => {
747
+ p.as_ref().contains_properly(q.as_ref())
748
+ }
749
+ (Shapes::MultiLineString(p), Shapes::LineString(q)) => {
750
+ p.as_ref().contains_properly(q.as_ref())
751
+ }
752
+ (Shapes::MultiLineString(p), Shapes::MultiLineString(q)) => {
753
+ p.as_ref().contains_properly(q.as_ref())
754
+ }
755
+ (Shapes::Point(p), Shapes::MultiLineString(q)) => {
756
+ p.as_ref().contains_properly(q.as_ref())
757
+ }
758
+ (Shapes::LineString(p), Shapes::MultiLineString(q)) => {
759
+ p.as_ref().contains_properly(q.as_ref())
760
+ }
761
+ (Shapes::Polygon(p), Shapes::Point(q)) => p.as_ref().contains_properly(q.as_ref()),
762
+ (Shapes::Polygon(p), Shapes::LineString(q)) => {
763
+ p.as_ref().contains_properly(q.as_ref())
764
+ }
765
+ (Shapes::Polygon(p), Shapes::MultiLineString(q)) => {
766
+ p.as_ref().contains_properly(q.as_ref())
767
+ }
768
+ (Shapes::Polygon(p), Shapes::Polygon(q)) => {
769
+ p.as_ref().contains_properly(q.as_ref())
770
+ }
771
+ (Shapes::Point(p), Shapes::Polygon(q)) => p.as_ref().contains_properly(q.as_ref()),
772
+ (Shapes::LineString(p), Shapes::Polygon(q)) => {
773
+ p.as_ref().contains_properly(q.as_ref())
774
+ }
775
+ (Shapes::MultiLineString(p), Shapes::Polygon(q)) => {
776
+ p.as_ref().contains_properly(q.as_ref())
777
+ }
778
+ (Shapes::MultiPolygon(p), Shapes::Point(q)) => {
779
+ p.as_ref().contains_properly(q.as_ref())
780
+ }
781
+ (Shapes::MultiPolygon(p), Shapes::LineString(q)) => {
782
+ p.as_ref().contains_properly(q.as_ref())
783
+ }
784
+ (Shapes::MultiPolygon(p), Shapes::MultiLineString(q)) => {
785
+ p.as_ref().contains_properly(q.as_ref())
786
+ }
787
+ (Shapes::MultiPolygon(p), Shapes::Polygon(q)) => {
788
+ p.as_ref().contains_properly(q.as_ref())
789
+ }
790
+ (Shapes::MultiPolygon(p), Shapes::MultiPolygon(q)) => {
791
+ p.as_ref().contains_properly(q.as_ref())
792
+ }
793
+ (Shapes::Point(p), Shapes::MultiPolygon(q)) => {
794
+ p.as_ref().contains_properly(q.as_ref())
795
+ }
796
+ (Shapes::LineString(p), Shapes::MultiPolygon(q)) => {
797
+ p.as_ref().contains_properly(q.as_ref())
798
+ }
799
+ (Shapes::MultiLineString(p), Shapes::MultiPolygon(q)) => {
800
+ p.as_ref().contains_properly(q.as_ref())
801
+ }
802
+ (Shapes::Polygon(p), Shapes::MultiPolygon(q)) => {
803
+ p.as_ref().contains_properly(q.as_ref())
804
+ }
805
+ (Shapes::MultiPoint(p), Shapes::Point(q)) => {
806
+ p.as_ref().contains_properly(q.as_ref())
807
+ }
808
+ (Shapes::MultiPoint(p), Shapes::LineString(q)) => {
809
+ p.as_ref().contains_properly(q.as_ref())
810
+ }
811
+ (Shapes::MultiPoint(p), Shapes::MultiLineString(q)) => {
812
+ p.as_ref().contains_properly(q.as_ref())
813
+ }
814
+ (Shapes::MultiPoint(p), Shapes::Polygon(q)) => {
815
+ p.as_ref().contains_properly(q.as_ref())
816
+ }
817
+ (Shapes::MultiPoint(p), Shapes::MultiPolygon(q)) => {
818
+ p.as_ref().contains_properly(q.as_ref())
819
+ }
820
+ (Shapes::MultiPoint(p), Shapes::MultiPoint(q)) => {
821
+ p.as_ref().contains_properly(q.as_ref())
822
+ }
823
+ (Shapes::Point(p), Shapes::MultiPoint(q)) => {
824
+ p.as_ref().contains_properly(q.as_ref())
825
+ }
826
+ (Shapes::LineString(p), Shapes::MultiPoint(q)) => {
827
+ p.as_ref().contains_properly(q.as_ref())
828
+ }
829
+ (Shapes::MultiLineString(p), Shapes::MultiPoint(q)) => {
830
+ p.as_ref().contains_properly(q.as_ref())
831
+ }
832
+ (Shapes::Polygon(p), Shapes::MultiPoint(q)) => {
833
+ p.as_ref().contains_properly(q.as_ref())
834
+ }
835
+ (Shapes::MultiPolygon(p), Shapes::MultiPoint(q)) => {
836
+ p.as_ref().contains_properly(q.as_ref())
837
+ }
838
+ }
839
+ }
840
+
676
841
  fn to_wkt(&self) -> String {
677
842
  match &self.inner {
678
843
  Shapes::Point(p) => p.as_ref().wkt_string(),