This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 5 (process 46611): | |
#0 0x00007fff86f9ffca in __semwait_signal () | |
#1 0x00007fff86fa3de1 in _pthread_cond_wait () | |
#2 0x000000010002c657 in etp_proc (thr_arg=<value temporarily unavailable, due to optimizations>) at ../deps/libeio/eio.c:1490 | |
#3 0x00007fff86f9e536 in _pthread_start () | |
#4 0x00007fff86f9e3e9 in thread_start () | |
Thread 4 (process 46611): | |
#0 0x00000001262ff900 in pj_datum_transform () | |
#1 0x0000000126300192 in pj_transform () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove index | |
curl -XDELETE 'http://localhost:9200/geo/' | |
# {"ok":true,"acknowledged":true} | |
# add some data | |
curl -XPOST http://localhost:9200/geo/1 -d '{ | |
"pin" : { | |
"location" : { | |
"lat" : 1.1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR 1: Invalid Feature object. Missing 'properties' member. | |
ERROR 1: Layer schema generation failed. | |
ERROR 4: Failed to read GeoJSON data | |
ERROR 1: Invalid Feature object. Missing 'properties' member. | |
ERROR 1: Layer schema generation failed. | |
ERROR 4: Failed to read GeoJSON data | |
FAILURE: | |
Unable to open datasource `files/data/untitled.geojson' with the following drivers. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
db = '<db.sqlite>' | |
sql = 'select tile_data from tiles limit 1' | |
con = sqlite3.connect(db) | |
cur = con.cursor() | |
tiles = con.execute() | |
f = open('test.png','wb') | |
t = tiles.fetchone() | |
f.write(t[0]) | |
f.close() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo '' >> ~/.bash_profile | |
echo '# Settings for Mapnik.framework Installer to enable Mapnik programs and python bindings' >> ~/.bash_profile | |
echo 'export PATH=/Library/Frameworks/Mapnik.framework/Programs:$PATH' >> ~/.bash_profile | |
echo 'export PYTHONPATH=/Library/Frameworks/Mapnik.framework/Python:$PYTHONPATH' >> ~/.bash_profile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dane:python dane$ otool -L /Library/Frameworks/Mapnik.framework/Mapnik | |
/Library/Frameworks/Mapnik.framework/Mapnik: | |
/Library/Frameworks/Mapnik.framework/Versions/2.0/unix/lib/libmapnik2.dylib (compatibility version 2.0.0, current version 2.0.0) | |
/Library/Frameworks/Mapnik.framework/unix/lib/libfreetype.6.dylib (compatibility version 13.0.0, current version 13.2.0) | |
/usr/lib/libltdl.7.dylib (compatibility version 9.0.0, current version 9.2.0) | |
/Library/Frameworks/UnixImageIO.framework/Versions/C/UnixImageIO (compatibility version 1.0.0, current version 1.2.4) | |
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) | |
/Library/Frameworks/PROJ.framework/Versions/4/PROJ (compatibility version 7.0.0, current version 7.6.0) | |
/Library/Frameworks/Mapnik.framework/unix/lib/libicuuc.46.dylib (compatibility version 46.0.0, current version 46.0.0) | |
/Library/Frameworks/Mapnik.framework/unix/lib/libboost_filesystem.dylib (compatibility version 0.0.0, current version 0.0.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/agg/process_raster_symbolizer.cpp | |
=================================================================== | |
--- src/agg/process_raster_symbolizer.cpp (revision 2893) | |
+++ src/agg/process_raster_symbolizer.cpp (working copy) | |
@@ -63,6 +63,8 @@ | |
if (sym.get_scaling() == "bilinear8"){ | |
scale_image_bilinear8<image_data_32>(target,raster->data_, err_offs_x, err_offs_y); | |
+ } else if (sym.get_scaling() == "bilinear_old") { | |
+ scale_image_bilinear_old<image_data_32>(target,raster->data_, err_offs_x, err_offs_y); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d:tilemill dane$ ./tilemill.js | |
Started TileMill on port 8889. | |
/Users/dane/projects/tilemill/lib/node/worker.js:34 | |
throw new Error(message) | |
^ | |
Error: [object Object] | |
at [object Object].<anonymous> (/Users/dane/projects/tilemill/lib/node/worker.js:34:15) | |
at [object Object].emit (events:31:17) | |
at Object.handleMessage (/Users/dane/projects/tilemill/lib/node/worker.js:142:22) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started TileMill on port 8889. | |
Workerdebug 87592 - From worker HANDSHAKE | |
Workerdebug 87592 - Received data HANDSHAKE | |
Workerdebug 87592 - Sending data {"progress":0,"status":"waiting","id":"a49ff0","datasource":{"_center":{"lat":0,"lon":0,"zoom":2},"_format":"png","_interactivity":false,"srs":"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over","Stylesheet":[],"Layer":[]}} | |
Workerdebug 87592 - From worker {"__exception__":{"message":"undefined is not a function","stack":"TypeError: undefined is not a function\n at CALL_NON_FUNCTION_AS_CONSTRUCTOR (native)\n at WorkerNode.onmessage (/Users/dane/projects/tilemill/server/export-worker.js:34:5)\n at WorkerNode.<anonymous> (/Users/dane/projects/tilemill/lib/node/worker.js:189:12)\n at WorkerNode.emit (events:31:17)\n at Object.handleMessage (/Users/dane/projects/tilemill/lib/node/worker.js:144:22)\n at Object.handleData (/Users/dane/projects/tilemill/lib/node/worker.js:121:18)\n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in python | |
import mapnik2 | |
mapnik2.Expression("[name].replace('(\B)|( )','$1 ')") |