migurski / Extractotron

Placeholder for some ideas about OpenStreetMap extracts
84 stars 81 forks source link

sort data for shapefile extracts #45

Open ajashton opened 11 years ago

ajashton commented 11 years ago

Mapnik's painters algorithm renders features in the order they come from the datasource. It would be useful to generate shapefiles in an order that makes sense for this. I believe adding order by z_order asc to the queries will handle this for both the Imposm and osm2pgsql shapefiles.

NelsonMinar commented 11 years ago

this seems like a good idea if it's as simple as the order by

migurski commented 11 years ago

I can definitely do that—it won't hit all cases but it'll work for a lot.