plepe / pgmapcss

PGMapCSS is a library for PostgreSQL/PostGIS which works between an osm2pgsql based database and Mapnik (and maybe other renderers). It processes database (usually OpenStreetMap) objects according to MapCSS rules and calculates resulting colors, widths and other properties for Symbolizers, even geometric modifications.
GNU Affero General Public License v3.0
35 stars 8 forks source link

Order objects during execution #107

Closed plepe closed 9 years ago

plepe commented 9 years ago

Execution order of objects should be influenced by special pseudo tags. The order applies only for the given rule - subsequent rules may have different order.

The following pseudo classes will be implemented:

The pseudo classes will take at least one, but up to three parameters:

  1. First parameter: the value by which will be ordered. Can be either a tag key or an eval expression.
  2. Second argument (optional): specify order direction, e.g. 'asc' or 'desc'. -> :order-numerical(ele, desc).
  3. An optional third parameter defines the default value (if the first parameter evaluates to none) -> :order-numerical(ele, desc, 0).

The idea for :order-* was first born in #77 .

plepe commented 9 years ago

Alternative:

plepe commented 9 years ago

In #109 I implemented the pseudo classes as stated in my last comment.