Skip to content

Instantly share code, notes, and snippets.

View springmeyer's full-sized avatar

Dane Springmeyer springmeyer

View GitHub Profile
clang++ -include-pch mapnik.h.pch -o src/svg_parser.os -c -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -Wno-unused-function -Wno-uninitialized -Wno-array-bounds -Wno-parentheses -Wno-char-subscripts -ftemplate-depth-200 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -DNDEBUG -fPIC -Iagg/include -Iinclude -I. -I/opt/icu/include -I/opt/boost-trunk/include -I/Library/Frameworks/UnixImageIO.framework/Headers -I/usr/local/include -I/usr/include -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/include/libxml2 src/svg_parser.cpp
clang++ -include-pch mapnik.h.pch -o src/svg_transform_parser.os -c -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -Wno-unused-function -Wno-uninitialized -Wno-array-bounds -Wno-parentheses -Wno-char-subscripts -ftemplate-depth-200 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -DNDEBUG -fPIC -Iagg/include -Iinclude -I. -I/opt/icu/include -I/opt/boost-trunk/include -I/Library/Frameworks/UnixImageIO.fr
otool -l /usr/lib/libltdl.7.dylib
otool -l /usr/lib/libz.1.dylib
otool -l /usr/lib/libicucore.A.dylib
otool -l /usr/lib/libxml2.2.dylib
otool -l /usr/lib/libstdc++.6.dylib
otool -l /usr/lib/libSystem.B.dylib
world_merc=# alter table world_merc add column blank text;
ALTER TABLE
world_merc=# select blank from world_merc limit 2;
blank
-------
(2 rows)
world_merc=# select count(*) from world_merc where blank is null;
diff --git a/client/js/project.js b/client/js/project.js
index 1db124f..a537ca8 100644
--- a/client/js/project.js
+++ b/client/js/project.js
@@ -438,7 +438,7 @@ var ProjectInteractivityForm = Backbone.View.extend({
success: function() {
var interactivity = that.model.get('_interactivity') || fal
var object = {
- fields: [],
+ fields: [{id:"__id__",selected:true}],
diff --git a/client/js/project.js b/client/js/project.js
index 1db124f..a537ca8 100644
--- a/client/js/project.js
+++ b/client/js/project.js
@@ -438,7 +438,7 @@ var ProjectInteractivityForm = Backbone.View.extend({
success: function() {
var interactivity = that.model.get('_interactivity') || fal
var object = {
- fields: [],
+ fields: [{id:"__id__",selected:true}],
@springmeyer
springmeyer / gist:1095107
Created July 20, 2011 14:50
mapserver crash
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mapscript
>>> m = mapscript.mapObj('../mapserver/osm-google.map')
>>> sld = m.generateSLD()
Abort trap
-------------
LAYER
TYPE POLYGON
STATUS ON
PROJECTION
"init=epsg:900913"
END
NAME "waterarea7"
GROUP "default"
CONNECTIONTYPE POSTGIS
CONNECTION "host=localhost dbname=osm user=postgres password=postgres port=5432"
<?xml version="1.0" encoding="utf-8"?>
<Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Layer name="land0" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"/>
<Layer name="borders0" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"/>
<Layer name="places0" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"/>
<Layer name="land1" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"/>
<Layer name="borders1" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"/>
<Layer name="places1" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"/>
<Layer name="land2" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"/>
<Layer name="borders2" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"/>
@springmeyer
springmeyer / mapnik_proj_test.py
Created July 21, 2011 21:19
test various exotic projections with mapnik and osm data
#!/usr/bin/python
import mapnik2 as mapnik
#mapfile = "tests/data/good_maps/bounds_clipping.xml"
mapfile = "/Users/dane/src/osm_mapnik3/osm2.xml"
projections = {
"latlon": "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs", #EPSG:4326
"google": "+proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs", # SR-ORG:95
"mercator_world": "+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs", # SR-ORG:16
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace:
at MapnikSource.<anonymous> (events.js:126:17)
at MapnikSource.once (events.js:147:8)
at new MapnikSource (/Users/dane/projects/tilemill-04/node_modules/tilelive-mapnik/lib/mapnik.js:34:16)
at Object.load (/Users/dane/projects/tilemill-04/node_modules/tilelive/lib/tilelive.js:95:19)
at /Users/dane/projects/tilemill-04/models/Datasource.server.bones:51:14
at [object Object].fetch (/Users/dane/projects/tilemill-04/node_modules/bones/node_modules/backbone/backbone.js:249:34)
at [object Object].<anonymous> (/Users/dane/projects/tilemill-04/node_modules/bones/servers/Route.bones:115:15)
at Router.<anonymous> (native)