Skip to content

Instantly share code, notes, and snippets.

View springmeyer's full-sized avatar

Dane Springmeyer springmeyer

View GitHub Profile
[node] npm
[node] WARN
[node] Building the local index for the first time, please be patient
[node] npm http GET https://registry.npmjs.org/-/all
[node]
[node] /Users/dane/projects/tilemill/node_modules/npm/node_modules/npm-registry-client/lib/get.js:73
[node] this.log.warn("", "Building the local index for the first time, please be
[node] ^
[node] TypeError: Cannot call method 'warn' of undefined
[node] at requestAll_ (/Users/dane/projects/tilemill/node_modules/npm/node_modules/npm-registry-client/lib/get.js:73:14)
This file has been truncated, but you can view the full file.
Building Mapnik on NT ...
dependencies dir: c:\dev2
lib_dir_schema=lib
Python is not configured
Mapnik.Python library won't be built
...patience...
...patience...
...patience...
...patience...
...found 29022 targets...
@springmeyer
springmeyer / test-out.txt
Created July 5, 2012 16:34
Test output with node-mapnik 0.7.4 and mapnik 2.0.0 on OS X 10.7
~/projects/node-mapnik[master]$ make test
mapnik.Color
✓ should throw with invalid usage
✓ should be green via keyword
✓ should be gray via rgb
✓ should be gray via rgba
✓ should be gray via rgba %

Visual text rendering summary: Failed: 3515 different pixels:

Failed: 1395 different pixels: /tmp/mapnik-visual-images/lines-2-600-agg.png (actual) tests/visual_tests/images/lines-2-600-reference.png (expected)

Failed: 558 different pixels: /tmp/mapnik-visual-images/lines-2-400-agg.png (actual)

@springmeyer
springmeyer / tiff-is-tiled.c
Created June 28, 2012 00:55
C program to check if a tiff is tiled or stripped (internally)
#include <tiffio.h>
/*
clang -o tiff-is-tiled tiff-is-tiled.c -I/usr/local/include -ltiff;
./tiff-is-tiled test.tiff
*/
int main(int argc, char **argv) {
if (argv[1]) {
@springmeyer
springmeyer / agg_pixfmt_rgba_dst_in.diff
Created June 19, 2012 18:35
make AGG svg compositing dst-in behave like inkscape alpha clipping
diff --git a/deps/agg/include/agg_pixfmt_rgba.h b/deps/agg/include/agg_pixfmt_rgba.h
index 6d27d8f..7e3d422 100644
--- a/deps/agg/include/agg_pixfmt_rgba.h
+++ b/deps/agg/include/agg_pixfmt_rgba.h
@@ -433,9 +433,9 @@ namespace agg
{
sa = base_mask - ((cover * (base_mask - sa) + 255) >> 8);
}
- p[Order::R] = (value_type)((p[Order::R] * sa + base_mask) >> base_shift);
- p[Order::G] = (value_type)((p[Order::G] * sa + base_mask) >> base_shift);
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]>
<Map
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over"
background-color="green"
>
<Style name="one">
<Rule>
<PointSymbolizer allow-overlap="true" file="tests/data/raster/white-alpha.png"/>
@springmeyer
springmeyer / test-dash-array.py
Created June 18, 2012 19:19
test mapnik dash-array parser in XML
import mapnik
map_string = """
<Map>
<Style name="test">
<Rule>
<LineSymbolizer stroke-dasharray="22.5,0" />
</Rule>
</Style>
</Map>
@springmeyer
springmeyer / native-client.md
Created June 17, 2012 19:59
native client setup
@springmeyer
springmeyer / spin.diff
Created June 17, 2012 19:25
color spin in mapnik/agg
diff --git a/deps/agg/build.py b/deps/agg/build.py
index 9e2db94..6ba8228 100644
--- a/deps/agg/build.py
+++ b/deps/agg/build.py
@@ -24,8 +24,8 @@ Import('env')
agg_env = env.Clone()
if env['SUNCC']:
- cxxflags = env['CUSTOM_CXXFLAGS'] + ' -O -KPIC -DNDEBUG'
+ cxxflags = env['CUSTOM_CXXFLAGS'] + ' -O -KPIC -DNDEBUG '