From e1052ba42655083ca51bcbb1727b2701e1ead868 Mon Sep 17 00:00:00 2001
From: Jon West <jon.west@weatherfusion.com>
Date: Wed, 24 Dec 2014 14:04:40 -0600
Subject: [PATCH] Resolved #1

---
 .gitignore                                    |  3 +++
 .idea/.name                                   |  1 +
 .../AST/Functions/PostgreSql/STBuffer.php     | 19 +++++++++++++++++++
 .../AST/Functions/PostgreSql/STExpand.php     | 19 +++++++++++++++++++
 .../AST/Functions/PostgreSql/STSimplify.php   | 19 +++++++++++++++++++
 .../AST/Functions/PostgreSql/STTransform.php  | 19 +++++++++++++++++++
 6 files changed, 80 insertions(+)
 create mode 100644 .idea/.name
 create mode 100644 lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STBuffer.php
 create mode 100644 lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STExpand.php
 create mode 100644 lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STSimplify.php
 create mode 100644 lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STTransform.php

diff --git a/.gitignore b/.gitignore
index 81b4efa..cccb1b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,5 @@
 vendor/
 composer.lock*
+doctrine2-spatial.iml
+.idea*
+.idea/*
diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..93898e6
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+doctrine2-spatial
\ No newline at end of file
diff --git a/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STBuffer.php b/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STBuffer.php
new file mode 100644
index 0000000..2be385b
--- /dev/null
+++ b/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STBuffer.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql;
+
+use CrEOF\Spatial\ORM\Query\AST\Functions\AbstractSpatialDQLFunction;
+
+/**
+ * ST_Buffer DQL function
+ */
+class STBuffer extends AbstractSpatialDQLFunction
+{
+    protected $platforms = array('postgresql');
+
+    protected $functionName = 'ST_Buffer';
+
+    protected $minGeomExpr = 2;
+
+    protected $maxGeomExpr = 3;
+}
diff --git a/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STExpand.php b/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STExpand.php
new file mode 100644
index 0000000..35eb7e8
--- /dev/null
+++ b/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STExpand.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql;
+
+use CrEOF\Spatial\ORM\Query\AST\Functions\AbstractSpatialDQLFunction;
+
+/**
+ * ST_Buffer DQL function
+ */
+class STExpand extends AbstractSpatialDQLFunction
+{
+    protected $platforms = array('postgresql');
+
+    protected $functionName = 'ST_Expand';
+
+    protected $minGeomExpr = 2;
+
+    protected $maxGeomExpr = 2;
+}
diff --git a/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STSimplify.php b/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STSimplify.php
new file mode 100644
index 0000000..4904a34
--- /dev/null
+++ b/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STSimplify.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql;
+
+use CrEOF\Spatial\ORM\Query\AST\Functions\AbstractSpatialDQLFunction;
+
+/**
+ * ST_Buffer DQL function
+ */
+class STSimplify extends AbstractSpatialDQLFunction
+{
+    protected $platforms = array('postgresql');
+
+    protected $functionName = 'ST_Simplify';
+
+    protected $minGeomExpr = 2;
+
+    protected $maxGeomExpr = 2;
+}
diff --git a/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STTransform.php b/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STTransform.php
new file mode 100644
index 0000000..2b0ce63
--- /dev/null
+++ b/lib/CrEOF/Spatial/ORM/Query/AST/Functions/PostgreSql/STTransform.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql;
+
+use CrEOF\Spatial\ORM\Query\AST\Functions\AbstractSpatialDQLFunction;
+
+/**
+ * ST_Buffer DQL function
+ */
+class STTransform extends AbstractSpatialDQLFunction
+{
+    protected $platforms = array('postgresql');
+
+    protected $functionName = 'ST_Transform';
+
+    protected $minGeomExpr = 2;
+
+    protected $maxGeomExpr = 2;
+}
-- 
GitLab