src/xs/geos/geom.h

filter: Statementstmt 90.0% 9 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 90.0% 9 / 10 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« src/xs/geos/index.h ↑ Summary blib/arch/Geo/Geos.pm »
1 #pragma once
2  
3 #include <vector>
4 #include <sstream>
5  
6 #include <geos/geom/Coordinate.h>
7 #include <geos/geom/Triangle.h>
8 #include <geos/triangulate/quadedge/TrianglePredicate.h>
9 #include <geos/geom/LineSegment.h>
10 #include <geos/geom/Dimension.h>
11 #include <geos/geom/Envelope.h>
12 #include <geos/geom/PrecisionModel.h>
13 #include <geos/geom/GeometryFactory.h>
14 #include <geos/geom/Puntal.h>
15 #include <geos/geom/Point.h>
16 #include <geos/geom/MultiPoint.h>
17 #include <geos/geom/LineString.h>
18 #include <geos/geom/LinearRing.h>
19 #include <geos/geom/MultiLineString.h>
20 #include <geos/geom/Polygon.h>
21 #include <geos/geom/MultiPolygon.h>
22 #include <geos/geom/IntersectionMatrix.h>
23 #include <geos/operation/buffer/BufferParameters.h>
24  
25 namespace xs {
26  
27 template <class TYPE>
28 struct Typemap<geos::geom::Coordinate*, TYPE*>: TypemapObject<geos::geom::Coordinate*, TYPE*, ObjectTypePtr, ObjectStorageMG, StaticCast>{
29 78 static panda::string_view package() {return "Geo::Geos::Coordinate"; }
30 };
31  
32 template <>
33 struct Typemap<geos::geom::Triangle*>: TypemapObject<geos::geom::Triangle*, geos::geom::Triangle*, ObjectTypePtr, ObjectStorageMG, StaticCast>{
34 static panda::string_view package() {return "Geo::Geos::Triangle"; }
35 };
36  
37 template <>
38 struct Typemap<geos::geom::LineSegment*>: TypemapObject<geos::geom::LineSegment*, geos::geom::LineSegment*, ObjectTypePtr, ObjectStorageMG, StaticCast>{
39 static panda::string_view package() {return "Geo::Geos::LineSegment"; }
40 };
41  
42 template <>
43 struct Typemap<geos::geom::Envelope*>: TypemapObject<geos::geom::Envelope*, geos::geom::Envelope*, ObjectTypePtr, ObjectStorageMG, StaticCast>{
44 static panda::string_view package() {return "Geo::Geos::Envelope"; }
45 };
46  
47 template <>
48 struct Typemap<geos::geom::PrecisionModel*>: TypemapObject<geos::geom::PrecisionModel*, geos::geom::PrecisionModel*, ObjectTypePtr, ObjectStorageMG, StaticCast>{
49 static panda::string_view package() {return "Geo::Geos::PrecisionModel"; }
50 };
51  
52 template <>
53 struct Typemap<geos::geom::IntersectionMatrix*>: TypemapObject<geos::geom::IntersectionMatrix*, geos::geom::IntersectionMatrix*, ObjectTypePtr, ObjectStorageMG, StaticCast>{
54 static panda::string_view package() {return "Geo::Geos::IntersectionMatrix"; }
55 };
56  
57  
58 template <>
59 struct Typemap<geos::geom::GeometryFactory*>: TypemapObject<geos::geom::GeometryFactory*, geos::geom::GeometryFactory*, ObjectTypePtr, ObjectStorageMG, StaticCast>{
60 static panda::string_view package() {return "Geo::Geos::GeometryFactory"; }
61 static void dispose (geos::geom::GeometryFactory* obj,SV*) { obj->destroy(); }
62 };
63  
64 template <class TYPE>
65 struct Typemap<geos::geom::Geometry*, TYPE> : TypemapObject<geos::geom::Geometry*, TYPE, ObjectTypePtr, ObjectStorageMG, DynamicCast> {
66 0 static panda::string_view package() {return "Geo::Geos::Geometry"; }
67 };
68  
69 template <>
70 struct Typemap<geos::geom::GeometryCollection*>: Typemap<geos::geom::Geometry*, geos::geom::GeometryCollection*>{
71 24 static panda::string_view package() {return "Geo::Geos::GeometryCollection"; }
72 };
73  
74 template <>
75 struct Typemap<geos::geom::Point*>: Typemap<geos::geom::Geometry*, geos::geom::Point*>{
76 18 static panda::string_view package() {return "Geo::Geos::Point"; }
77 };
78  
79 template <>
80 struct Typemap<geos::geom::MultiPoint*>: Typemap<geos::geom::Geometry*, geos::geom::MultiPoint*>{
81 18 static panda::string_view package() {return "Geo::Geos::MultiPoint"; }
82 };
83  
84 template <>
85 struct Typemap<geos::geom::LineString*>: Typemap<geos::geom::Geometry*, geos::geom::LineString*>{
86 24 static panda::string_view package() {return "Geo::Geos::LineString"; }
87 };
88  
89 template <>
90 struct Typemap<geos::geom::MultiLineString*>: Typemap<geos::geom::Geometry*, geos::geom::MultiLineString*>{
91 8 static panda::string_view package() {return "Geo::Geos::MultiLineString"; }
92 };
93  
94 template <>
95 struct Typemap<geos::geom::LinearRing*>: Typemap<geos::geom::Geometry*, geos::geom::LinearRing*>{
96 22 static panda::string_view package() {return "Geo::Geos::LinearRing"; }
97 };
98  
99 template <>
100 struct Typemap<geos::geom::Polygon*>: Typemap<geos::geom::Geometry*, geos::geom::Polygon*>{
101 30 static panda::string_view package() {return "Geo::Geos::Polygon"; }
102 };
103  
104 template <>
105 struct Typemap<geos::geom::MultiPolygon*>: Typemap<geos::geom::Geometry*, geos::geom::MultiPolygon*>{
106 8 static panda::string_view package() {return "Geo::Geos::MultiPolygon"; }
107 };
108  
109 }
« src/xs/geos/index.h ↑ Summary blib/arch/Geo/Geos.pm »