diff --git a/INSTALL.md b/INSTALL.md index 974ccd26..a5cf933b 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -31,6 +31,7 @@ doctrine: stcollect: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STCollect stsnaptogrid: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STSnapToGrid stoverlaps: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STOverlaps + stgeomfromgeojson: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STGeomFromGeoJson numeric_functions: # for postgresql starea: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STArea diff --git a/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STGeomFromGeoJSON.php b/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STGeomFromGeoJSON.php new file mode 100644 index 00000000..050072cd --- /dev/null +++ b/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STGeomFromGeoJSON.php @@ -0,0 +1,43 @@ + + * @license http://dlambert.mit-license.org MIT + */ +class STGeomFromGeoJSON extends AbstractSpatialDQLFunction +{ + protected $platforms = array('postgresql'); + + protected $functionName = 'ST_GeomFromGeoJSON'; + + protected $minGeomExpr = 1; + + protected $maxGeomExpr = 2; +}