Skip to content

Instantly share code, notes, and snippets.

View springmeyer's full-sized avatar

Dane Springmeyer springmeyer

View GitHub Profile
diff --git a/deps/agg/include/agg_math_stroke.h b/deps/agg/include/agg_math_stroke.h
index 4806dcd..7ba45f6 100644
--- a/deps/agg/include/agg_math_stroke.h
+++ b/deps/agg/include/agg_math_stroke.h
@@ -22,6 +22,7 @@
#include "agg_math.h"
#include "agg_vertex_sequence.h"
+#include <mapnik/debug.hpp>
@springmeyer
springmeyer / 14_10083_6161.vector.pbf.z
Last active August 29, 2015 13:57
AGG line-join:round triangle artifacts bug testcase
@springmeyer
springmeyer / gist:9675127
Created March 20, 2014 22:16
libosmium osm-testdata output
./testdata-multipolygon ../../../osm-testdata/grid/data/all.osm
Pass 1...
relations: 57
node members: 0
way members: 136
relation members: 0
Pass 1 done
Pass 2...
Build relation id()=701900 members.size()=2 segments.size()=4
@springmeyer
springmeyer / gist:9630512
Created March 18, 2014 21:51
g++4.8 / gdal warning
/home/ubuntu/mapnik-packaging/osx/out/build-cpp11-libstdcpp-gcc-x86_64/lib/libgdal.a(cpl_minixml.o): In function `_ZL19CPLSerializeXMLNodePK10CPLXMLNodeiPPcPjS4_.constprop.4':
cpl_minixml.cpp:(.text+0xf57): warning: memset used with constant zero length parameter; this could be due to transposed parameters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@springmeyer
springmeyer / node-mapnik-install.md
Created February 12, 2014 18:41
testing node-mapnik install via node-pre-gyp binaries

install protoc

For now you still need the protobuf depedency installed.

For OS X do:

brew install protobuf

The protoc command should then be on your path.

@springmeyer
springmeyer / test.sh
Created January 26, 2014 23:54
boost karma confix compile error
$ clang++ -o t testcase.cpp -I/Users/dane/projects/mapnik-packaging/osx/out/build-cpp11-libcpp-x86_64/include -DBOOST_SPIRIT_NO_PREDEFINED_TERMINALS=1
In file included from t.cpp:2:
In file included from /Users/dane/projects/mapnik-packaging/osx/out/build-cpp11-libcpp-x86_64/include/boost/spirit/repository/include/karma_confix.hpp:16:
/Users/dane/projects/mapnik-packaging/osx/out/build-cpp11-libcpp-x86_64/include/boost/spirit/repository/home/karma/directive/confix.hpp:49:11: error: no member named 'confix' in namespace
'boost::spirit::repository'; did you mean 'tag::confix'?
using repository::confix;
^~~~~~~~~~~~~~~~~~
tag::confix
/Users/dane/projects/mapnik-packaging/osx/out/build-cpp11-libcpp-x86_64/include/boost/spirit/repository/home/support/confix.hpp:18:45: note: 'tag::confix' declared here
In file included from /home/ubuntu/node-mapnik/sdk/mapnik-linux-sdk-v2.2.0-720-g499d485-cpp11-libstdcpp-gcc-4.8/include/boost/smart_ptr/shared_ptr.hpp:32:0,
from /home/ubuntu/node-mapnik/sdk/mapnik-linux-sdk-v2.2.0-720-g499d485-cpp11-libstdcpp-gcc-4.8/include/boost/shared_ptr.hpp:17,
from ../src/mapnik_map.hpp:9,
from ../src/mapnik_map.cpp:2:
/home/ubuntu/node-mapnik/sdk/mapnik-linux-sdk-v2.2.0-720-g499d485-cpp11-libstdcpp-gcc-4.8/include/boost/smart_ptr/detail/shared_count.hpp: In instantiation of ‘boost::detail::shared_count::shared_count(P, boost::detail::sp_inplace_tag<D>) [with P = mapnik::Map*; D = boost::detail::sp_ms_deleter<mapnik::Map>]’:
/home/ubuntu/node-mapnik/sdk/mapnik-linux-sdk-v2.2.0-720-g499d485-cpp11-libstdcpp-gcc-4.8/include/boost/smart_ptr/shared_ptr.hpp:363:76: required from ‘boost::shared_ptr<T>::shared_ptr(Y*, D) [with Y = mapnik::Map; D = boost::detail::sp_inplace_tag<boost::detail::sp_ms_deleter<mapnik::Map> >; T = mapnik::Map]’
/u
@springmeyer
springmeyer / lsort.txt
Last active January 4, 2016 05:19
linux sort order of dependencies in object files for mapnik
lorder libboost_filesystem.a libboost_system.a libboost_regex.a libboost_thread.a libbz2.a libfreetype.a
libharfbuzz.a libharfbuzz-icu.a libicuuc.a libicudata.a libicui18n.a libjpeg.a libpng16.a libtiff.a libproj.a libwebp.a libxml2.a libz.a | tsort
libboost_filesystem.a
libboost_regex.a
libboost_thread.a
libbz2.a
libharfbuzz-icu.a
libpng16.a
libproj.a
libtiff.a
diff --git a/src/image_filter_grammar.cpp b/src/image_filter_grammar.cpp
index f54e184..6e95bcf 100644
--- a/src/image_filter_grammar.cpp
+++ b/src/image_filter_grammar.cpp
@@ -38,28 +38,27 @@ template <typename Iterator, typename ContType>
image_filter_grammar<Iterator,ContType>::image_filter_grammar()
: image_filter_grammar::base_type(start)
{
- using qi::lit;
- using qi::_val;