[fiona] 05/09: Fix cython compilation error
Johan Van de Wauw
johanvdw-guest at moszumanska.debian.org
Wed Oct 29 23:09:48 UTC 2014
This is an automated email from the git hooks/post-receive script.
johanvdw-guest pushed a commit to branch master
in repository fiona.
commit 47700f1a39974494901fea1dae1da65464041a12
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date: Wed Oct 29 21:11:36 2014 +0100
Fix cython compilation error
---
.../0002-Fix-cython-compilation-error.patch | 31 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 32 insertions(+)
diff --git a/debian/patches/0002-Fix-cython-compilation-error.patch b/debian/patches/0002-Fix-cython-compilation-error.patch
new file mode 100644
index 0000000..274dba6
--- /dev/null
+++ b/debian/patches/0002-Fix-cython-compilation-error.patch
@@ -0,0 +1,31 @@
+From: Johan Van de Wauw <johan.vandewauw at gmail.com>
+Date: Wed, 29 Oct 2014 20:58:35 +0100
+Subject: Fix cython compilation error
+
+---
+ fiona/_transform.pyx | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+--- a/fiona/_transform.pyx
++++ b/fiona/_transform.pyx
+@@ -115,16 +115,17 @@ 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)
+ dst = _osr_from_crs(dst_crs)
+ transform = ograpi.OCTNewCoordinateTransformation(src, dst)
+
+- # Transform options.
++ # 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")
+
diff --git a/debian/patches/series b/debian/patches/series
index 8811221..18ba74d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-Rename-fio-command-to-fiona-to-avoid-name-clash.patch
+0002-Fix-cython-compilation-error.patch
--
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