Skip to content

Commit

Permalink
rebase merge and other stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
muka committed Oct 20, 2015
2 parents ddee49c + 91d770b commit 5cd595d
Show file tree
Hide file tree
Showing 20 changed files with 1,119 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ composer.lock*
doctrine2-spatial.iml
.idea*
.idea/*
/nbproject
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,40 @@ Currently the following SQL functions are supported in DQL (more coming):
* ST_StartPoint
* ST_Summary
* ST_Perimeter
* ST_Touches
* ST_Transform

### MySQL
* Area
* AsBinary
* AsText
* Buffer
* Contains
* Crosses
* Disjoint
* Envelope
* GeomFromText
* GLength
* Intersects
* LineString
* MBRContains
* MBRDisjoint
* MBREqual
* MBRIntersects
* MBROverlaps
* MBRTouches
* MBRWithin
* Overlaps
* ST_Disjoint
* STartPoint
* ST_Contains
* ST_Crosses
* ST_Disjoint
* ST_Equals
* ST_Intersects
* ST_Overlaps
* ST_Touches
* ST_Within
* Touches
* Within
* StartPoint
* LineString
* LineStringFromWKB
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "creof/doctrine2-spatial",
"name": "slavenin/doctrine2-spatial",
"type": "library",
"description": "Doctrine2 multi-platform support for spatial types and functions",
"keywords": ["orm", "dbal", "database", "postgresql", "mysql", "opengis", "postgis", "gis", "spatial", "geometry", "geography"],
Expand Down
44 changes: 44 additions & 0 deletions lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/Buffer.php
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;
}

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 lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/GeodistPt.php
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 lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/STBuffer.php
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 lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/STEquals.php
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 lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/STWithin.php
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 lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/ST_Buffer.php
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 lib/CrEOF/Spatial/ORM/Query/AST/Functions/MySql/ST_Intersects.php
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;
}
Loading

0 comments on commit 5cd595d

Please sign in to comment.