Add support for ST_SimplifyPreserveTopology

This commit is contained in:
Fran Boon
2015-01-22 11:45:46 +00:00
parent a2f5d1cfc5
commit d2c25a0021
+6
View File
@@ -278,6 +278,12 @@ class PostgreSQLAdapter(BaseAdapter):
"""
return 'ST_Simplify(%s,%s)' %(self.expand(first), self.expand(second, 'double'))
def ST_SIMPLIFYPRESERVETOPOLOGY(self, first, second):
"""
http://postgis.org/docs/ST_SimplifyPreserveTopology.html
"""
return 'ST_SimplifyPreserveTopology(%s,%s)' %(self.expand(first), self.expand(second, 'double'))
def ST_TOUCHES(self, first, second):
"""
http://postgis.org/docs/ST_Touches.html