File tree 6 files changed +96
-0
lines changed
lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql
6 files changed +96
-0
lines changed Original file line number Diff line number Diff line change 1
1
vendor /
2
2
composer.lock *
3
+ doctrine2-spatial.iml
4
+ .idea *
5
+ .idea /*
Original file line number Diff line number Diff line change @@ -36,7 +36,11 @@ Currently the following SQL functions are supported in DQL (more coming):
36
36
### PostgreSQL
37
37
* ST_Area
38
38
* ST_AsBinary
39
+ * ST_AsGeoJson
39
40
* ST_AsText
41
+ * ST_Azimuth
42
+ * ST_Boundary
43
+ * ST_Buffer
40
44
* ST_Centroid
41
45
* ST_ClosestPoint
42
46
* ST_Contains
@@ -47,12 +51,25 @@ Currently the following SQL functions are supported in DQL (more coming):
47
51
* ST_Disjoint
48
52
* ST_Distance
49
53
* ST_Envelope
54
+ * ST_Expand
55
+ * ST_Extent
50
56
* ST_GeomFromText
57
+ * ST_Intersection
58
+ * ST_Intersects
51
59
* ST_Length
52
60
* ST_LineCrossingDirection
61
+ * ST_LineInterpolatePoint
62
+ * ST_MakeBox2D
63
+ * ST_MakeLine
64
+ * ST_Point
65
+ * ST_Scale
66
+ * ST_SetSRID
67
+ * ST_Simplify
53
68
* ST_StartPoint
54
69
* ST_Summary
55
70
* ST_Perimeter
71
+ * ST_Touches
72
+ * ST_Transform
56
73
57
74
### MySQL
58
75
* Area
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace CrEOF \Spatial \ORM \Query \AST \Functions \PostgreSql ;
4
+
5
+ use CrEOF \Spatial \ORM \Query \AST \Functions \AbstractSpatialDQLFunction ;
6
+
7
+ /**
8
+ * ST_Buffer DQL function
9
+ */
10
+ class STBuffer extends AbstractSpatialDQLFunction
11
+ {
12
+ protected $ platforms = array ('postgresql ' );
13
+
14
+ protected $ functionName = 'ST_Buffer ' ;
15
+
16
+ protected $ minGeomExpr = 2 ;
17
+
18
+ protected $ maxGeomExpr = 3 ;
19
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace CrEOF \Spatial \ORM \Query \AST \Functions \PostgreSql ;
4
+
5
+ use CrEOF \Spatial \ORM \Query \AST \Functions \AbstractSpatialDQLFunction ;
6
+
7
+ /**
8
+ * ST_Buffer DQL function
9
+ */
10
+ class STExpand extends AbstractSpatialDQLFunction
11
+ {
12
+ protected $ platforms = array ('postgresql ' );
13
+
14
+ protected $ functionName = 'ST_Expand ' ;
15
+
16
+ protected $ minGeomExpr = 2 ;
17
+
18
+ protected $ maxGeomExpr = 2 ;
19
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace CrEOF \Spatial \ORM \Query \AST \Functions \PostgreSql ;
4
+
5
+ use CrEOF \Spatial \ORM \Query \AST \Functions \AbstractSpatialDQLFunction ;
6
+
7
+ /**
8
+ * ST_Buffer DQL function
9
+ */
10
+ class STSimplify extends AbstractSpatialDQLFunction
11
+ {
12
+ protected $ platforms = array ('postgresql ' );
13
+
14
+ protected $ functionName = 'ST_Simplify ' ;
15
+
16
+ protected $ minGeomExpr = 2 ;
17
+
18
+ protected $ maxGeomExpr = 2 ;
19
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace CrEOF \Spatial \ORM \Query \AST \Functions \PostgreSql ;
4
+
5
+ use CrEOF \Spatial \ORM \Query \AST \Functions \AbstractSpatialDQLFunction ;
6
+
7
+ /**
8
+ * ST_Buffer DQL function
9
+ */
10
+ class STTransform extends AbstractSpatialDQLFunction
11
+ {
12
+ protected $ platforms = array ('postgresql ' );
13
+
14
+ protected $ functionName = 'ST_Transform ' ;
15
+
16
+ protected $ minGeomExpr = 2 ;
17
+
18
+ protected $ maxGeomExpr = 2 ;
19
+ }
You can’t perform that action at this time.
0 commit comments