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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import mapnik2 | |
print mapnik2.Expression("[NOM_FR] = 'Québec'") | |
f = mapnik2.Feature(0) | |
print 'Québec' | |
f["name"] = 'Québec' |
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
on osx with g++ i686-apple-darwin10-g++-4.2.1 I get: | |
lots of: | |
In file included from ../src/sqlite3.cc:8: | |
../src/database.h:48: error: a storage class can only be specified for objects and functions | |
../src/database.h:55: error: a storage class can only be specified for objects and functions | |
which can be fixed with: |
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
[ | |
"0000000000000000000000000000000000000000000000000000000000000000", | |
"0000000000000000000000000000000000000000000000000000000000000000", | |
"0000000000000000000000000000000000000000000000000000000000000000", | |
"0000000000000000000000000000000000000000000000000000000000000000", | |
"0000000000000000000000000000000000000000000000000000000000000000", | |
"0000000000000000000000000000000000000000000000000000000000000000", | |
"0000000000000000000000000000000000000000000000000000000000000000", | |
"0000000000000000000000000000000000000000000000000000000000000000", | |
"0000000000000000000000000000000000000000000000000000000000000000", |
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
{ "grid": | |
[ | |
" ", | |
" ", | |
" ", | |
" ", | |
" ", | |
" ", | |
" ", | |
" ", |
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
Map { | |
background-color: #43a4d1; | |
} | |
/* grey outline */ | |
#world::big_glow [POP2005 > 1000000]{ | |
line-color: #ddd; | |
line-width: 4; | |
} |
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: include/mapnik/feature_style_processor.hpp | |
=================================================================== | |
--- include/mapnik/feature_style_processor.hpp (revision 2548) | |
+++ include/mapnik/feature_style_processor.hpp (working copy) | |
@@ -323,6 +323,7 @@ | |
boost::apply_visitor(symbol_dispatch(p,*feature,prj_trans),sym); | |
} | |
} | |
+ break; | |
} |
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
diff --git a/bin/ndistro b/bin/ndistro | |
index 537261f..a155ebf 100755 | |
--- a/bin/ndistro | |
+++ b/bin/ndistro | |
@@ -11,8 +11,9 @@ | |
VERSION="0.4.0" | |
DIR=${0%/*} | |
-ROOT=$(pwd) | |
+ROOT="$(pwd)" |
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
// command line test: | |
#!/usr/bin/env node | |
var SphericalMercator = require('./lib/tilelive/sphericalmercator.js') | |
var merc = new SphericalMercator({}) | |
min_zoom = 1; | |
max_zoom = 2; | |
// if we have a merc extent | |
extent = [-20037508.34,-20037508.34,20037508.34,20037508.34]; |
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
def getScale(zoom): | |
return 279541132.014 / (2 ** (zoom-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
It appears that node REPL is calling the functions on a c++ addon as part of inspection, of of course this fails if the functions need arguments. Is this intended? | |
$ node -e "require('srs')" | |
util.js:91 | |
return value.inspect(recurseTimes); | |
^ | |
TypeError: first argument must be srs string in any form readable by OGR, like WKT (.prj file) or a proj4 string | |
at format (util.js:91:20) | |
at Object.inspect (util.js:254:10) |