Commit c2fbe03d authored by David Douard's avatar David Douard
Browse files

[st] add the ST_CENTROID function

parent 98fc83ac458d
......@@ -338,6 +338,13 @@ class ST_MAKEENVELOPE(FunctionDescr):
rtype = 'Geometry'
class ST_CENTROID(FunctionDescr):
minargs = 1
maxargs = 1
supported_backends = ('postgres',)
rtype = 'Geometry'
register_function(ST_EQUALS)
register_function(ST_INTERSECTS)
register_function(ST_INTERSECTION)
......@@ -376,3 +383,4 @@ register_function(ST_M)
register_function(ST_EXTENT)
register_function(ST_AsEWKT)
register_function(ST_MAKEENVELOPE)
register_function(ST_CENTROID)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment