[mapnik-vector-tile] 09/14: Add patch to adapt to changed raster test
Jérémy Lal
kapouer at moszumanska.debian.org
Wed Aug 20 21:26:20 UTC 2014
This is an automated email from the git hooks/post-receive script.
kapouer pushed a commit to branch master
in repository mapnik-vector-tile.
commit 6926b7c8166a732f3b7af9a01131e24eeb85c202
Author: Jérémy Lal <kapouer at melix.org>
Date: Wed Aug 20 23:02:37 2014 +0200
Add patch to adapt to changed raster test
---
debian/patches/test_using_created_tif.patch | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/debian/patches/test_using_created_tif.patch b/debian/patches/test_using_created_tif.patch
new file mode 100644
index 0000000..6b688d2
--- /dev/null
+++ b/debian/patches/test_using_created_tif.patch
@@ -0,0 +1,29 @@
+Description: test using a tif created at build time
+ This circumvents the removal of upstream natural_earth.tif file at the
+ price of having a less realistic test.
+Author: Jérémy Lal <kapouer at melix.org>
+Last-Update: 2014-08-20
+Forwarded: not-needed
+--- a/test/raster_tile.cpp
++++ b/test/raster_tile.cpp
+@@ -37,9 +37,6 @@
+ mapnik::layer lyr("layer",map.srs());
+ mapnik::parameters params;
+ params["type"] = "gdal";
+- // created with:
+- // wget http://www.nacis.org/naturalearth/50m/raster/NE2_50m_SR_W.zip
+- // gdalwarp -t_srs EPSG:3857 -ts 1048 1048 -r bilinear NE2_50M_SR_W.tif natural_earth.tif
+ params["file"] = "test/natural_earth.tif";
+ MAPNIK_SHARED_PTR<mapnik::datasource> ds =
+ mapnik::datasource_cache::instance().create(params);
+@@ -67,8 +64,8 @@
+ file.close();
+ }
+
+- std::size_t expected_image_size = 45660;
+- int expected_vtile_size = expected_image_size + 26;
++ std::size_t expected_image_size = 4723;
++ int expected_vtile_size = expected_image_size + 23;
+ if (!debug) {
+ CHECK(expected_image_size == ras_buffer.size());
+ CHECK(expected_vtile_size == tile.ByteSize());
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapnik-vector-tile.git
More information about the Pkg-grass-devel
mailing list