Compare commits
5 Commits
python-0.1
...
python-0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef7c5d9218 | ||
|
|
bd63346c50 | ||
|
|
c878384955 | ||
|
|
475df918c7 | ||
|
|
937440c79a |
11
NEWS.md
11
NEWS.md
@@ -1,3 +1,14 @@
|
|||||||
|
August 30th, 2017
|
||||||
|
=============
|
||||||
|
* Version `0.15.4` of the python library
|
||||||
|
* Fixed invalid geometries for isochrones due to `generalize` option. See #397
|
||||||
|
|
||||||
|
August 24th, 2017
|
||||||
|
=============
|
||||||
|
* Improved the documentation
|
||||||
|
* Version `0.15.3` of the python library
|
||||||
|
* Disabled DO quota check for users that have it configured . See #395
|
||||||
|
|
||||||
August 23th, 2017
|
August 23th, 2017
|
||||||
=============
|
=============
|
||||||
* Version `0.27.0` of the server
|
* Version `0.27.0` of the server
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ def coordinates_to_polygon(coordinates):
|
|||||||
wkt_coordinates = ','.join(result_coordinates)
|
wkt_coordinates = ','.join(result_coordinates)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sql = "SELECT ST_MakePolygon(ST_GeomFromText('LINESTRING({0})', 4326)) as geom".format(wkt_coordinates)
|
sql = "SELECT ST_CollectionExtract(ST_MakeValid(ST_MakePolygon(ST_GeomFromText('LINESTRING({0})', 4326))),3) as geom".format(wkt_coordinates)
|
||||||
geometry = plpy.execute(sql, 1)[0]['geom']
|
geometry = plpy.execute(sql, 1)[0]['geom']
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
plpy.warning("Can't generate POLYGON from coordinates: {0}".format(e))
|
plpy.warning("Can't generate POLYGON from coordinates: {0}".format(e))
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ from setuptools import setup, find_packages
|
|||||||
setup(
|
setup(
|
||||||
name='cartodb_services',
|
name='cartodb_services',
|
||||||
|
|
||||||
version='0.15.3',
|
version='0.15.4',
|
||||||
|
|
||||||
description='CartoDB Services API Python Library',
|
description='CartoDB Services API Python Library',
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user