Skip to content

Commit 2fee3eb

Browse files
committed
Merge branch 'pr/49'
Conflicts: README.md Signed-off-by: Samuel Denis-D'Ortun <[email protected]>
2 parents 7dd1b71 + c0b18d7 commit 2fee3eb

File tree

6 files changed

+96
-0
lines changed

6 files changed

+96
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
vendor/
22
composer.lock*
3+
doctrine2-spatial.iml
4+
.idea*
5+
.idea/*

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ Currently the following SQL functions are supported in DQL (more coming):
3636
### PostgreSQL
3737
* ST_Area
3838
* ST_AsBinary
39+
* ST_AsGeoJson
3940
* ST_AsText
41+
* ST_Azimuth
42+
* ST_Boundary
43+
* ST_Buffer
4044
* ST_Centroid
4145
* ST_ClosestPoint
4246
* ST_Contains
@@ -47,12 +51,25 @@ Currently the following SQL functions are supported in DQL (more coming):
4751
* ST_Disjoint
4852
* ST_Distance
4953
* ST_Envelope
54+
* ST_Expand
55+
* ST_Extent
5056
* ST_GeomFromText
57+
* ST_Intersection
58+
* ST_Intersects
5159
* ST_Length
5260
* ST_LineCrossingDirection
61+
* ST_LineInterpolatePoint
62+
* ST_MakeBox2D
63+
* ST_MakeLine
64+
* ST_Point
65+
* ST_Scale
66+
* ST_SetSRID
67+
* ST_Simplify
5368
* ST_StartPoint
5469
* ST_Summary
5570
* ST_Perimeter
71+
* ST_Touches
72+
* ST_Transform
5673

5774
### MySQL
5875
* Area
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
}

0 commit comments

Comments
 (0)