[python-shapely] 01/05: Imported Upstream version 1.5.17

Bas Couwenberg sebastic at debian.org
Wed Aug 31 10:44:39 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository python-shapely.

commit 390dfe49a0cba134e15f96b2d26c367a3a41b9fa
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Wed Aug 31 10:46:29 2016 +0200

    Imported Upstream version 1.5.17
---
 CHANGES.txt                    | 6 ++++++
 shapely/__init__.py            | 2 +-
 shapely/geometry/base.py       | 1 +
 shapely/geometry/linestring.py | 8 ++++----
 4 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/CHANGES.txt b/CHANGES.txt
index 9c1cac8..44b4515 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,6 +1,12 @@
 Changes
 =======
 
+1.5.17 (2016-08-31)
+-------------------
+- Bug fix: eliminate memory leak in geom_factory() (#408).
+- Bug fix: remove mention of negative distances in parallel_offset and note
+  that vertices of right hand offset lines are reversed (#284).
+
 1.5.16 (2016-05-26)
 -------------------
 - Bug fix: eliminate memory leak when unpickling geometry objects (#384, #385).
diff --git a/shapely/__init__.py b/shapely/__init__.py
index 35ddfd4..b0c2f60 100644
--- a/shapely/__init__.py
+++ b/shapely/__init__.py
@@ -1 +1 @@
-__version__ = "1.5.16"
+__version__ = "1.5.17"
diff --git a/shapely/geometry/base.py b/shapely/geometry/base.py
index 5fe1ccd..ad97568 100644
--- a/shapely/geometry/base.py
+++ b/shapely/geometry/base.py
@@ -79,6 +79,7 @@ def geom_factory(g, parent=None):
         ob._ndim = 3
     else:
         ob._ndim = 2
+    ob._is_empty = False
     return ob
 
 
diff --git a/shapely/geometry/linestring.py b/shapely/geometry/linestring.py
index 7a9fb6b..6ddd010 100644
--- a/shapely/geometry/linestring.py
+++ b/shapely/geometry/linestring.py
@@ -119,9 +119,8 @@ class LineString(BaseGeometry):
         The side parameter may be 'left' or 'right' (default is 'right'). The
         resolution of the buffer around each vertex of the object increases by
         increasing the resolution keyword parameter or third positional
-        parameter. If the distance parameter is negative the side is inverted,
-        e.g. distance=5.0, side='left' is the same as distance=-5.0,
-        side='right'.
+        parameter. Vertices of right hand offset lines will be ordered in
+        reverse.
 
         The join style is for outside corners between line segments. Accepted
         values are JOIN_STYLE.round (1), JOIN_STYLE.mitre (2), and
@@ -132,7 +131,8 @@ class LineString(BaseGeometry):
         When two line segments meet at a sharp angle, a miter join will extend
         far beyond the original geometry. To prevent unreasonable geometry, the
         mitre limit allows controlling the maximum length of the join corner.
-        Corners with a ratio which exceed the limit will be beveled."""
+        Corners with a ratio which exceed the limit will be beveled.
+        """
         if mitre_limit == 0.0:
             raise ValueError(
                 'Cannot compute offset from zero-length line segment')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-shapely.git



More information about the Pkg-grass-devel mailing list