-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,119 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ composer.lock* | |
doctrine2-spatial.iml | ||
.idea* | ||
.idea/* | ||
/nbproject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/Buffer.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
/** | ||
* Copyright (C) 2013 luca capra | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/ | ||
|
||
namespace CrEOF\Spatial\ORM\Query\AST\Functions\MySql; | ||
|
||
use CrEOF\Spatial\ORM\Query\AST\Functions\AbstractSpatialDQLFunction; | ||
|
||
/** | ||
* Buffer DQL function | ||
* | ||
* @author luca capra <[email protected]> | ||
* @license http://dlambert.mit-license.org MIT | ||
*/ | ||
class Buffer extends AbstractSpatialDQLFunction | ||
{ | ||
protected $platforms = array('mysql'); | ||
|
||
protected $functionName = 'Buffer'; | ||
|
||
protected $minGeomExpr = 2; | ||
|
||
protected $maxGeomExpr = 2; | ||
} | ||
|
21 changes: 21 additions & 0 deletions
21
lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/DistanceFromMultyLine.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace CrEOF\Spatial\ORM\Query\AST\Functions\MySql; | ||
|
||
use CrEOF\Spatial\ORM\Query\AST\Functions\AbstractSpatialDQLFunction; | ||
|
||
/** | ||
* Description of STContains | ||
* | ||
* @author Maximilian | ||
*/ | ||
class DistanceFromMultyLine extends AbstractSpatialDQLFunction | ||
{ | ||
protected $platforms = array('mysql'); | ||
|
||
protected $functionName = 'distance_from_multyline'; | ||
|
||
protected $minGeomExpr = 2; | ||
|
||
protected $maxGeomExpr = 2; | ||
} |
21 changes: 21 additions & 0 deletions
21
lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/GeodistPt.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace CrEOF\Spatial\ORM\Query\AST\Functions\MySql; | ||
|
||
use CrEOF\Spatial\ORM\Query\AST\Functions\AbstractSpatialDQLFunction; | ||
|
||
/** | ||
* Description of STContains | ||
* | ||
* @author Maximilian | ||
*/ | ||
class GeodistPt extends AbstractSpatialDQLFunction | ||
{ | ||
protected $platforms = array('mysql'); | ||
|
||
protected $functionName = 'geodist_pt'; | ||
|
||
protected $minGeomExpr = 2; | ||
|
||
protected $maxGeomExpr = 2; | ||
} |
43 changes: 43 additions & 0 deletions
43
lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/STBuffer.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright (C) 2012 Derek J. Lambert | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/ | ||
|
||
namespace CrEOF\Spatial\ORM\Query\AST\Functions\MySql; | ||
|
||
use CrEOF\Spatial\ORM\Query\AST\Functions\AbstractSpatialDQLFunction; | ||
|
||
/** | ||
* Description of ST_Intersects | ||
* | ||
* @author Maximilian | ||
*/ | ||
class STBuffer extends AbstractSpatialDQLFunction | ||
{ | ||
protected $platforms = array('mysql'); | ||
|
||
protected $functionName = 'ST_Buffer'; | ||
|
||
protected $minGeomExpr = 2; | ||
|
||
protected $maxGeomExpr = 2; | ||
} |
43 changes: 43 additions & 0 deletions
43
lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/STEquals.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
/** | ||
* Copyright (C) 2013 luca capra | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/ | ||
|
||
namespace CrEOF\Spatial\ORM\Query\AST\Functions\MySql; | ||
|
||
use CrEOF\Spatial\ORM\Query\AST\Functions\AbstractSpatialDQLFunction; | ||
|
||
/** | ||
* ST_Equals DQL function | ||
* | ||
* @author luca capra <[email protected]> | ||
* @license http://dlambert.mit-license.org MIT | ||
*/ | ||
class STEquals extends AbstractSpatialDQLFunction | ||
{ | ||
protected $platforms = array('mysql'); | ||
|
||
protected $functionName = 'ST_Equals'; | ||
|
||
protected $minGeomExpr = 2; | ||
|
||
protected $maxGeomExpr = 2; | ||
} |
43 changes: 43 additions & 0 deletions
43
lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/STWithin.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
/** | ||
* Copyright (C) 2013 luca capra | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/ | ||
|
||
namespace CrEOF\Spatial\ORM\Query\AST\Functions\MySql; | ||
|
||
use CrEOF\Spatial\ORM\Query\AST\Functions\AbstractSpatialDQLFunction; | ||
|
||
/** | ||
* ST_Within DQL function | ||
* | ||
* @author luca capra <[email protected]> | ||
* @license http://dlambert.mit-license.org MIT | ||
*/ | ||
class STWithin extends AbstractSpatialDQLFunction | ||
{ | ||
protected $platforms = array('mysql'); | ||
|
||
protected $functionName = 'ST_Within'; | ||
|
||
protected $minGeomExpr = 2; | ||
|
||
protected $maxGeomExpr = 2; | ||
} |
43 changes: 43 additions & 0 deletions
43
lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/ST_Buffer.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright (C) 2012 Derek J. Lambert | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/ | ||
|
||
namespace CrEOF\Spatial\ORM\Query\AST\Functions\MySql; | ||
|
||
use CrEOF\Spatial\ORM\Query\AST\Functions\AbstractSpatialDQLFunction; | ||
|
||
/** | ||
* Description of ST_Intersects | ||
* | ||
* @author Maximilian | ||
*/ | ||
class ST_Buffer extends AbstractSpatialDQLFunction | ||
{ | ||
protected $platforms = array('mysql'); | ||
|
||
protected $functionName = 'ST_Buffer'; | ||
|
||
protected $minGeomExpr = 2; | ||
|
||
protected $maxGeomExpr = 2; | ||
} |
43 changes: 43 additions & 0 deletions
43
lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/ST_Intersects.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright (C) 2012 Derek J. Lambert | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/ | ||
|
||
namespace CrEOF\Spatial\ORM\Query\AST\Functions\MySql; | ||
|
||
use CrEOF\Spatial\ORM\Query\AST\Functions\AbstractSpatialDQLFunction; | ||
|
||
/** | ||
* Description of ST_Intersects | ||
* | ||
* @author Maximilian | ||
*/ | ||
class ST_Intersects extends AbstractSpatialDQLFunction | ||
{ | ||
protected $platforms = array('mysql'); | ||
|
||
protected $functionName = 'ST_Intersects'; | ||
|
||
protected $minGeomExpr = 2; | ||
|
||
protected $maxGeomExpr = 2; | ||
} |
Oops, something went wrong.