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
aa9580b5f998
Commit
f8a1de50
authored
Jan 18, 2016
by
Julien Cristau
Browse files
add ST_EXTENT aggregate function
parent
c20dff50fee3
Changes
1
Hide whitespace changes
Inline
Side-by-side
site_cubicweb.py
View file @
aa9580b5
...
...
@@ -7,7 +7,7 @@
# psql <database> -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql
# cubicweb-ctl db-init <instance>
from
logilab.database
import
FunctionDescr
from
logilab.database
import
FunctionDescr
,
AggrFunctionDescr
from
logilab.database
import
get_db_helper
from
logilab.database.sqlgen
import
SQLExpression
...
...
@@ -302,6 +302,11 @@ class ST_M(FunctionDescr):
rtype
=
'Float'
class
ST_EXTENT
(
AggrFunctionDescr
):
supported_backends
=
(
'postgres'
,)
rtype
=
'Geometry'
register_function
(
ST_EQUALS
)
register_function
(
ST_INTERSECTS
)
register_function
(
ST_INTERSECTION
)
...
...
@@ -337,3 +342,4 @@ register_function(ST_X)
register_function
(
ST_Y
)
register_function
(
ST_Z
)
register_function
(
ST_M
)
register_function
(
ST_EXTENT
)
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