Skip to content

Instantly share code, notes, and snippets.

View springmeyer's full-sized avatar

Dane Springmeyer springmeyer

View GitHub Profile
$ apt-cache show libmapnik
Package: libmapnik
Source: mapnik
Priority: optional
Section: libs
Installed-Size: 6096
Maintainer: Mapnik Developers <mapnik-devel@lists.berlios.de>
Architecture: amd64
Version: 2.0.0+dev20111220.git.b51c06f-1~oneiric1
Suggests: postgis
diff --git a/jit_datasource.cpp b/jit_datasource.cpp
index 561ec25..566e416 100644
--- a/jit_datasource.cpp
+++ b/jit_datasource.cpp
@@ -72,9 +72,9 @@ jit_datasource::jit_datasource(parameters const& params, bool bind)
void jit_datasource::bind() const {
if (is_bound_) return;
- mapnik::projection const *_merc = new mapnik::projection(MERCATOR_PROJ4);
- mapnik::projection const *_wgs84 = new mapnik::projection("+init=epsg:4326");
diff --git a/tools/gyp/pylib/gyp/generator/make.py b/tools/gyp/pylib/gyp/generator/make.py
index 1007672..da527bd 100644
--- a/tools/gyp/pylib/gyp/generator/make.py
+++ b/tools/gyp/pylib/gyp/generator/make.py
@@ -883,8 +883,8 @@ class XcodeSettings(object):
else:
raise NotImplementedError('Unknown debug format %s' % dbg_format)
- if self._Test('GCC_SYMBOLS_PRIVATE_EXTERN', 'YES', default='NO'):
- cflags.append('-fvisibility=hidden')
@springmeyer
springmeyer / require.cache.json
Created January 4, 2012 20:12
require.paths problem with node v6 and deep directory trees
{ id: '/Users/dane/projects/tilemill-node-v6/node_modules/millstone/node_modules/zipfile/lib/index.js',
exports:
{ ZipFile: [Function: ZipFile],
version: '0.3.0',
versions: [Object] },
parent:
{ id: '/Users/dane/projects/tilemill-node-v6/node_modules/millstone/lib/millstone.js',
exports: [Object],
parent: [Object],
filename: '/Users/dane/projects/tilemill-node-v6/node_modules/millstone/lib/millstone.js',
@springmeyer
springmeyer / require_error_tilemill_node_v6.sh
Created January 4, 2012 19:34
odd behavior of node_modules/require with tilemill and node v0.6.x on mac osx
$ node -v # compiled from latest branch
v0.6.7-pre
$ npm -v # installed like npm cache clean; npm install -g npm@alpha;
1.1.0-beta-7
# ensure step is available
$ node -e "console.log(require.resolve('step'))"
/Users/dane/projects/tilemill-node-v6/node_modules/step/lib/step.js
$ traceroute google.com
traceroute: Warning: google.com has multiple addresses; using 74.125.113.99
traceroute to google.com (74.125.113.99), 64 hops max, 52 byte packets
1 ord-t1.boingohotspot.net (10.1.0.1) 1.536 ms 1.048 ms 1.199 ms
2 65-42-208-129.ded.ameritech.net (65.42.208.129) 1.134 ms 1.279 ms 1.226 ms
3 12.116.191.229 (12.116.191.229) 4.032 ms 3.638 ms 3.442 ms
4 cr83.cgcil.ip.att.net (12.122.133.146) 6.358 ms 51.330 ms 5.421 ms
5 cr1.cgcil.ip.att.net (12.123.7.110) 8.513 ms 8.886 ms 6.202 ms
6 gar1.mpsmn.ip.att.net (12.122.133.81) 49.873 ms 83.392 ms 4.226 ms
7 12.248.29.26 (12.248.29.26) 39.505 ms 61.834 ms 30.880 ms
$ ping registry.npmjs.org
PING isaacs.iriscouch.net (107.20.159.167): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
^C
--- isaacs.iriscouch.net ping statistics ---
6 packets transmitted, 0 packets received, 100.0% packet loss
@springmeyer
springmeyer / node-mapnik-win32-build.log
Created December 29, 2011 21:19
12/29/11 node-mapnik compile on windows 7
c:\dev2\node-mapnik>set PROJ_LIB=C:\dev2\proj\nad
c:\dev2\node-mapnik>set GDAL_DATA=C:\dev2\gdal\data
c:\dev2\node-mapnik>set MAPNIK_INPUT_PLUGINS="c:\\mapnik-2.0\\lib\\mapnik\\input"
c:\dev2\node-mapnik>set MAPNIK_FONTS="c:\\mapnik-2.0\\lib\\mapnik\\fonts"
c:\dev2\node-mapnik>set target=Build
@springmeyer
springmeyer / mapnik-win32-build.log
Created December 29, 2011 21:18
12/29/11 mapnik compile on windows 7
Building Mapnik on NT ...
dependecies dir: c:\dev2\
lib_dir_schema=lib
...patience...
...patience...
...patience...
...patience...
...found 23782 targets...
...updating 238 targets...
common.mkdir build
@springmeyer
springmeyer / DRR_IOM_v1.12.style
Created December 28, 2011 15:42
Custom osm2pgsql import for haiti - summary of issues viewing in ArcGIS10
node,way IOM:project text #JOSM preset
node,way IOM_project_DRR:form_number text #JOSM preset
node,way NOTE text #JOSM preset
node,way access text linear #osm2pgsql style
node,way addr:city text #JOSM preset
node,way addr:flats text polygon #osm2pgsql style
node,way addr:full text #JOSM preset
node,way addr:housenumber text linear #osm2pgsql style
node,way addr:interpolation text linear #osm2pgsql style
node,way addr:street text #JOSM preset