Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Last active December 17, 2015 18:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save springmeyer/5650582 to your computer and use it in GitHub Desktop.
diff --git a/src/agg/agg_renderer.cpp b/src/agg/agg_renderer.cpp
index f3e6cea..0afa940 100644
--- a/src/agg/agg_renderer.cpp
+++ b/src/agg/agg_renderer.cpp
@@ -337,7 +337,9 @@ void agg_renderer<T>::render_marker(pixel_position const& pos,
renderer_type,
pixfmt_comp_type> svg_renderer(svg_path,
(*marker.get_vector_data())->attributes());
-
+ // https://github.com/mapnik/mapnik/issues/1316
+ mtx.tx = std::floor(mtx.tx+.5);
+ mtx.ty = std::floor(mtx.ty+.5);
svg_renderer.render(*ras_ptr, sl, renb, mtx, opacity, bbox);
}
else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment