Skip to content

Instantly share code, notes, and snippets.

View springmeyer's full-sized avatar

Dane Springmeyer springmeyer

View GitHub Profile
Thread 5 (Thread 0x7f4b5bf00910 (LWP 16601)):
#0 0x00007f4b6a57281d in mapnik::polygon<mapnik::vertex<double, 2>, mapnik::vertex_vector2>::set_capacity(unsigned long) ()
from /usr/local/lib/libmapnik.so.0.7
#1 0x00007f4b6a5d9f31 in mapnik::wkb_reader::read_polygon(mapnik::feature<mapnik::geometry<mapnik::vertex<double, 2> >, boost::shared_ptr<mapnik::raster> >&) () from /usr/local/lib/libmapnik.so.0.7
#2 0x00007f4b6a5d8c60 in mapnik::geometry_utils::from_wkb(mapnik::feature<mapnik::geometry<mapnik::vertex<double, 2> >, boost::shared_ptr<mapnik::raster> >&, char const*, unsigned int, bool, mapnik::wkbFormat) () from /usr/local/lib/libmapnik.so.0.7
#3 0x00007f4b63d0f685 in postgis_featureset::next() () from /usr/local/lib/mapnik/input/postgis.input
#4 0x00007f4b6a9db9d9 in mapnik::feature_style_processor<mapnik::agg_renderer<mapnik::Image32> >::apply_to_layer(mapnik::Layer const&, mapnik::agg_renderer<mapnik::Image32>&, mapnik::projection const&, double) ()
from /usr/lib/python2.6/dist-packages/mapni
@springmeyer
springmeyer / tileseed.js
Created March 12, 2011 02:08
test seed script for tilelive
#!/usr/bin/env node
// To test run from tilelive.js master checkout:
// ./bin/node ./bin/carto files/project/k12_county_stats/k12_county_stats.mml > k12_county_stats.xml
// time ./bin/node ./seedtest/tileseed.js k12_county_stats.xml 1 CNTY_FIPS k12_z12_test.mbtiles
var sys = require('sys'),
Step = require('step'),
TileBatch = require('tilelive').TileBatch;
(gdb) thread apply all bt
Thread 5 (Thread 0x7f36b0d64700 (LWP 7760)):
#0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1 0x00000000004e22cc in etp_proc (thr_arg=<value optimized out>) at ../deps/libeio/eio.c:1490
#2 0x00007f36d557f9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3 0x00007f36d52dc70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4 0x0000000000000000 in ?? ()
Thread 4 (Thread 0x7f36af472700 (LWP 7766)):
grid({"grid":[" !!!!!!! "," !!!!!!!!! "," !!!!!!!!! "," !!!!!! "," !!!!!! "," ! "," ## "," ## "," # "," $$"," $"," $$ "," $$$$ "," $$$$$ "," $$$$$ ","
diff --git a/lib/tilelive/mbtiles.js b/lib/tilelive/mbtiles.js
index eff4fe1..60c7709 100644
--- a/lib/tilelive/mbtiles.js
+++ b/lib/tilelive/mbtiles.js
@@ -3,6 +3,7 @@ var fs = require('fs');
var Step = require('step');
var crypto = require('crypto');
var compress = require('compress');
+var zlib = require('zlib');
var Buffer = require('buffer').Buffer;
var compress = require('compress');
var gzip = require('gzip');
var zlib = require('zlib');
function deflate(buffer, callback) {
var gz = new compress.Gzip();
var data = '';
gz.write(buffer, function(err, chunk) {
if (err) {
callback(err);
{"grid":"[\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\"
[100%] Building CXX object CMakeFiles/mbutil.dir/mbutil.cpp.o
In file included from /usr/local/include/boost/property_tree/json_parser.hpp:14,
from /Users/dane/projects/mbutil/mbutil.cpp:6:
/usr/local/include/boost/property_tree/detail/json_parser_read.hpp: In constructor ‘boost::property_tree::json_parser::json_grammar<Ptree>::definition<Scanner>::definition(const boost::property_tree::json_parser::json_grammar<Ptree>&)’:
/usr/local/include/boost/property_tree/detail/json_parser_read.hpp:184: error: reference to ‘assertion’ is ambiguous
/usr/local/include/boost/assert.hpp:94: error: candidates are: namespace boost::assertion { }
/usr/local/include/boost/spirit/home/classic/error_handling/exceptions_fwd.hpp:25: error: template<class ErrorDescrT> struct boost::spirit::classic::assertion
/usr/local/include/boost/property_tree/detail/json_parser_read.hpp:184: error: expected primary-expression before ‘>’ token
/usr/local/include/boost/property_tree/detail/json_parser_read.hpp:184
Index: include/mapnik/layer.hpp
===================================================================
--- include/mapnik/layer.hpp (revision 2628)
+++ include/mapnik/layer.hpp (working copy)
@@ -170,8 +170,18 @@
* @return whether this layer's labels are cached.
*/
bool clear_label_cache() const;
+
+ /*!
Index: bindings/python/SConscript
===================================================================
--- bindings/python/SConscript (revision 2607)
+++ bindings/python/SConscript (working copy)
@@ -153,7 +153,7 @@
if env['SVN_REVISION']:
sources.remove('mapnik_python.cpp')
env2 = py_env.Clone()
- env2.Append(CCFLAGS='-DSVN_REVISION=%s' % env['SVN_REVISION'])
+ env2.Append(CXXFLAGS='-DSVN_REVISION=%s' % env['SVN_REVISION'])