Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
postgis
Commits
fce7c575bde9
Commit
c2fbe03d
authored
Sep 20, 2017
by
David Douard
Browse files
[st] add the ST_CENTROID function
parent
98fc83ac458d
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_postgis/site_cubicweb.py
View file @
fce7c575
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment