[email protected] wrote:

> I was assuming that the sql filter only does pre-filtering for 
> performance reasons, and that simply applying a generic filter on the 
> whole data could produce the same result

You assumption is wrong. The SQL queries also perform some data munging.

- yes/true/1 -> yes for bridges/tunnels
- siding/spur/yard -> siding-spur-yard (for railway/service)

And there's more to come now that mapnik 0.7.0 has been tagged and will 
be released soon.

You're also missing out on the way_area column that is calculated by 
osm2pgsql during import, and it also performs some z_order ordering.

Converting the current osm.xml for the OSM plugin is not an impossible 
task yet, but don't keep your hopes up for what's still to come.

> Then wouldn't it be possible to implement an automatic conversion of 
> strings to numeric when a comparison operator is encountered ?

The Datasource OSM plugin only delivers data to mapnik proper. It has no 
knowledge of which types of comparisons are being performed on that data.

-- 
Lennard
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to