Skip to content

Instantly share code, notes, and snippets.

Sampling process 5805 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling node (pid 5805) every 1 millisecond
Process: node [5805]
Path: /Users/devseed/Desktop/tilemill-head/bin/node
Load Address: 0x100000000
Identifier: node
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: bash [192]
// embeds pngs in a geojson
var sys = require('sys'),
fs = require('fs');
var infile = '/home/aj/GeoData/Development Seed/countries_flags.geojson'
var outfile = './countries_flags.geojson'
var geojson = JSON.parse(fs.readFileSync(infile));
#svg-dots {
point-file: url(http://dl.dropbox.com/u/2398828/wh/dot.svg);
point-allow-overlap: true;
[zoom > 0][zoom < 4 ] {
[COUNT > 0][COUNT < 3] { point-transform: "scale(0.25)"; }
[COUNT > 2][COUNT < 10] { point-transform: "scale(0.5)"; }
[COUNT > 9][COUNT < 50] { point-transform: "scale(0.75)"; }
[COUNT > 49][COUNT < 100] { point-transform: "scale(1)"; }
[COUNT > 99][COUNT < 200] { point-transform: "scale(1.25)"; }
[COUNT > 199][COUNT < 500] { point-transform: "scale(1.5)"; }
@gothic_book: "Franklin Gothic FS Book","DejaVu Sans Book";
#country-label[zoom>1]{
text-face-name: @gothic_book;
text-fill:rgba(0,0,0,0.45);
text-size:9;
text-transform:uppercase;
text-halo-fill:rgba(255,255,255,0.5);
text-halo-radius:1;
text-character-spacing:1;
text-line-spacing:1;
ubuntu@domU-12-31-39-05-34-01:~/src/tilestream$ ./ndistro clean
... cleaning build directories
ubuntu@domU-12-31-39-05-34-01:~/src/tilestream$ ./ndistro
... building node-0.2.6
######################################################################## 100.0%
Waf: Entering directory `/home/ubuntu/src/tilestream/src/node-0.2.6/build'
[ 1/69] cc: deps/libeio/eio.c -> build/default/deps/libeio/eio_1.o
[ 2/69] cc: deps/libev/ev.c -> build/default/deps/libev/ev_1.o
../deps/libev/ev.c: In function ‘evpipe_write’:
../deps/libev/ev.c:1236: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
diff --git a/mbutil.py b/mbutil.py
index 5a79887..a732c3f 100755
--- a/mbutil.py
+++ b/mbutil.py
@@ -152,13 +152,13 @@ def disk_to_mbtiles(directory_path, mbtiles_file):
msg = ""
for r1, zs, ignore in os.walk(directory_path):
for z in zs:
- for r2, ys, ignore in os.walk(os.path.join(r1, z)):
- for y in ys:
Map {
background-color: #4f4f4f;
}
@fnt: "Perpetua Regular","Calluna Regular","DejaVu Sans Book";
@land: #919191;
#land {
polygon-fill: @land;
}
echo "UPDATE images SET \
tile_data = X'`od -v -A n -t x1 4-8-10.png | tr -d '\r\n\t '`' \
WHERE tile_id = (SELECT tile_id FROM map \
WHERE zoom_level = 4 AND tile_column = 8 AND tile_row = 10);" \
| sqlite3 world-glass.mbtiles
... building node-srs
Setting srcdir to : /home/aj/devseed/tm-head/modules/node-srs
Setting blddir to : /home/aj/devseed/tm-head/modules/node-srs/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
@r: spin(#f44,-20);
#c0001xgp {
building-fill:#fff;
building-fill-opacity:0.9;
[VALUE=9.1] { building-height:1.37; }
[VALUE=9.0] { building-height:1.28; }
[VALUE=8.9] { building-height:1.194; }
[VALUE=8.8] { building-height:1.114; }