Archive for February, 2010

Published by breki on 26 Feb 2010

Fresh Catch For February 26th

These are my new delicious links for February 26th:


Published by breki on 24 Feb 2010

Fresh Catch For February 24th

These are my new delicious links for February 24th:


Published by breki on 22 Feb 2010

Fresh Catch For February 22nd

These are my new delicious links for February 22nd:


Published by breki on 20 Feb 2010

Paper Prototyping

A screenshot from my yesterday’s Maperitive paper prototyping session:

Paper prototyping

Tools of the trade:

Paper prototyping - tools

Published by breki on 20 Feb 2010

Fresh Catch For February 20th

These are my new delicious links for February 20th:


Published by breki on 18 Feb 2010

Maperitive Rendering Rules, Sneak Preview (Part 2)

The second part of the rules:

rulefor : railway
    define
        min-zoom : 13
    define
        line-color : gray
        line-width : 2
        curved : false
    draw : line
    define
        line-style : dashlong
        line-color : white
        line-width : 2
        border-style : solid
        border-color : gray
        border-width : 25%
        curved : false
    draw : line
    
rulefor : road.*
    define
        line-join : round
        line-start-cap : none
        line-end-cap : none
        curved : true
 
    for : motorway
        define
            min-zoom : 12
            line-color : #849BBD
            border-style : solid
            border-color : #849BBD black 20%
            border-width : 15%
 
        for : link
            define
                line-width : 12:3;13:4;16:5;18:6
        else
            define
                line-width : 12:5;13:7;16:10;18:12
                
        draw : line
    elsefor : trunk
        define
            min-zoom : 12
            line-color : #96D296
            border-style : solid
            border-color : #96D296 black 20%
            border-width : 15%
 
        for : link
            define
                line-width : 12:3;13:4;16:5;18:6
        else
            define
                line-width : 12:4;13:6;16:8;18:10
 
        draw : line
    elsefor : road primary
        define
            min-zoom : 11
            line-color : #ECA2A3
            line-width : 7:1;9:1.5;10:2;12:5;13:7;16:10;18:12
            border-style : solid
            border-color : #ECA2A3 black 20%
            border-width : 15%
        draw : line
        define
            min-zoom : 7
            max-zoom : 11
            border-style : none
        draw : line
    elsefor : road secondary
        define
            min-zoom : 12
            line-color : #FDCC8B
            line-width : 7:1;9:1.5;10:2;12:4;13:5;16:8;18:10
            border-style : solid
            border-color : #FDCC8B black 20%
            border-width : 15%
        draw : line
        define
            min-zoom : 9
            max-zoom : 12
            border-style : none
        draw : line
    elsefor : road tertiary
        define
            min-zoom : 13
            line-color : #FEFEB2
            line-width : 7:1;9:1.5;10:2;12:4;13:5;16:8;18:10
            border-style : solid
            border-color : #FEFEB2 black 20%
            border-width : 15%
        draw : line
    elsefor : (.*residential)|(.*unclassified)
        define
            min-zoom : 13
            line-color : white
            line-width : 13:2;15:10;18:12
            border-style : solid
            border-color : white black 50%
            border-width : 20%
        draw : line
        define
            min-zoom : 15
            font-family : Arial
            font-size : 15:7;18:10
        draw : text
    elsefor : road track
        define
            min-zoom : 12.5
            line-color : #9D7517
            line-width : 1.5
            line-style : dash
            border-style : solid
            border-color : white
            border-width : 100%
            border-opacity : 0.3
        draw : line
    elsefor : road footway
        define    
            min-zoom : 13
            line-color : #F68474
            line-width : 1.5
            line-style : dot
            border-style : solid
            border-color : white
            border-width : 100%
            border-opacity : 0.3
            curved : false
        draw : line
    else
        stop
 
rulefor : river
    define
        line-color : #B5D0D0
        line-width : 7:1;8:2
    draw : line
    
rulefor : national park
    define
        fill-color : #8DC56C
        fill-opacity : 0.2
        line-style : none
    draw : fill
    define
        line-color : #8DC56C black 20%
        line-opacity : 0.5
        line-width : 3
        line-style : dash
        font-size : 3:3;12:12
        text-halo-width : 3
    draw : line
    draw : text
 
rulefor: parking
    define
        icon-image : http://wiki.openstreetmap.org/images/9/9a/Parking20.png
        min-zoom : 15
        icon-width : 16
    draw : icon
    
rulefor: contours.*
    define
        line-color : #7f3300
        line-opacity : 0.5
    for : contours major
        define
            line-width : 2
    draw : contour

Published by breki on 18 Feb 2010

Maperitive Rendering Rules: Sneak Preview

Since rendering rules parsing and processing has more or less been implemented a few weeks ago, I think it’s time to show how these rules look like.

I’ve tried to mimic some of the styles and colors used for Mapnik OSM map (although this covers only about 10% of Mapnik’s rules). I won’t be explaining these rules right now because I’m interested in what you think of them at the first glance – can you understand the basic concept or not? Are the rules too verbose? Are they legible? The only hint I will give is: indentation is important!

So here it is, the first part (I have to split this into two posts, WordPress problems) :

features
    parking : amenity=parking
 
    contours major : contour[elevation=50]
    contours minor : contour[elevation=10]
 
    areas
        forest : landuse=forest OR natural=wood
        farm : landuse=farm
        fell : natural=fell
        national park : boundary=national_park
        water : natural=water OR waterway=riverbank
        residential area : landuse=residential
    lines
        river : waterway=river
        railway : railway=rail
        road motorway : highway=motorway
        road motorway link : highway=motorway_link
        road trunk : highway=trunk
        road primary : highway=primary
        road secondary : highway=secondary
        road tertiary : highway=tertiary
        road unclassified : highway=unclassified
        road residential : highway=residential
        road track : highway=track
        road footway : highway=footway
 
        state borders : relation[boundary=administrative AND admin_level=4]
 
properties
    map-background-color    : #F1EEE8
    map-background-opacity    : 1
 
rules
    rulefor : areas
        define
            line-style : none
        for : forest
            define
                min-zoom : 9
                fill-color : #8DC56C
        elsefor : farm
            define
                fill-color : #E9D8BD
        elsefor : fell
            define
                fill-color : #C5FF5B black 10%
        elsefor : water
            define
                fill-color : #B5D0D0
        elsefor : residential
            define
                fill-color : #DCDCDC
        else
            stop
        draw : fill
                    

Published by breki on 18 Feb 2010

Fresh Catch For February 18th

These are my new delicious links for February 18th:


Published by breki on 15 Feb 2010

Fresh Catch For February 15th

These are my new delicious links for February 15th:


Published by breki on 15 Feb 2010

Am I Doing Amateur Software?

Ouchy Creative Commons License photo credit: 1Happysnapper(photography)

Just read Amateur Software on The Endeavour blog. I liked the following line:

Volunteers do what they want to do by definition. The problem is that the reverse is also true: volunteers do not do what they do not want to do. And for software developers, writing documentation usually falls in the “do not want to do” column. So does making software easy to install. So does testing in multiple environments.

I had to reread the “do not” part several times before I got it into my head :) .

I guess I fall into this “amateur” category. To some extent. I don’t like writing documentation. But I somehow forced myself to write at least something about the software I’m developing. That’s why I like the concept of an open Wiki – the users can participate in this painful activity, too.

Next »