[fiona] 04/04: Fix cython compilation error

Johan Van de Wauw johanvdw-guest at moszumanska.debian.org
Tue Nov 4 20:45:01 UTC 2014


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

johanvdw-guest pushed a commit to branch patch-queue/master
in repository fiona.

commit 38754e2d6a87d585ad0c2bb3b7dbb2d88f678d39
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date:   Wed Oct 29 22:34:31 2014 +0100

    Fix cython compilation error
---
 fiona/_transform.pyx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/fiona/_transform.pyx b/fiona/_transform.pyx
index 3d5dd69..a2d4abe 100644
--- a/fiona/_transform.pyx
+++ b/fiona/_transform.pyx
@@ -115,6 +115,7 @@ def _transform_geom(
     cdef void *src_ogr_geom
     cdef void *dst_ogr_geom
     cdef int i
+    antimeridian_offset_str = str(antimeridian_offset).encode('utf-8')
 
     if src_crs and dst_crs:
         src = _osr_from_crs(src_crs)
@@ -123,8 +124,8 @@ def _transform_geom(
 
         # Transform options.
         options = ograpi.CSLSetNameValue(
-                    options, "DATELINEOFFSET", 
-                    str(antimeridian_offset).encode('utf-8'))
+                    options, "DATELINEOFFSET", antimeridian_offset_str
+                    )
         if antimeridian_cutting:
             options = ograpi.CSLSetNameValue(options, "WRAPDATELINE", "YES")
 

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



More information about the Pkg-grass-devel mailing list