Skip to content

Commit

Permalink
Add ST_Z function
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Feb 17, 2015
1 parent 4f4f507 commit 339b63e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions geoalchemy2/functions.py
Expand Up @@ -130,6 +130,10 @@ def __init__(self, *args, **kwargs):
'Return the Y coordinate of the point, or ``None`` if not available. '
'Input must be a point.'),

('ST_Z', None,
'Return the Z coordinate of the point, or ``None`` if not available. '
'Input must be a point.'),

#
# Geometry Editors
#
Expand Down
2 changes: 2 additions & 0 deletions tests/test_functions.py
Expand Up @@ -54,6 +54,8 @@ def test_ST_X():
def test_ST_Y():
_test_simple_func('ST_Y')

def test_ST_Z():
_test_simple_func('ST_Z')

def test_ST_AsBinary():
_test_simple_func('ST_AsBinary')
Expand Down

0 comments on commit 339b63e

Please sign in to comment.