Skip to content

Commit

Permalink
Add ST_AsTWKB function
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHayes committed Jan 25, 2017
1 parent a73424a commit b1b672b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions geoalchemy2/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ def __init__(self, *args, **kwargs):
'Return the Well-Known Binary (WKB) representation of the geometry/'
'geography with SRID meta data.'),

('ST_AsTWKB', None,
'Returns the geometry as TWKB, aka "Tiny Well-Known Binary"'),

('ST_AsGeoJSON', None, 'Return the geometry as a GeoJSON element.'),

('ST_AsGML', None, 'Return the geometry as a GML version 2 or 3 element.'),
Expand Down
4 changes: 4 additions & 0 deletions tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ def test_ST_AsEWKB():
_test_simple_func('ST_AsEWKB')


def test_ST_AsTWKB():
_test_simple_func('ST_AsTWKB')


def test_ST_AsGeoJSON():
_test_simple_func('ST_AsGeoJSON')

Expand Down

0 comments on commit b1b672b

Please sign in to comment.