W dniu 12.12.2009 10:47, Nop pisze: > This would explain the behaviour, as the name Tag occurs with all types > of objects, so it currently is declared as polygon: > > node,way highway text linear > > node,way name text polygon > > > What is the inteded way to resolve this? > - Change the name tag to linear also? > - Or always provide an area=no to override the polygon assumption? >
Flag polygon means it is candidate for polygon (if it is circular). This mean that You declare it only for polygon specific tags, to help osm2pgsql decide which object to consider. Name is of course not polygon ony tag, in fact it is most common tag for all type of objects :) Changing name tag to linear is what You need. All tags with linear flag will have its columns in polygon table. In fact first column flag: node/way is used to choose which tables it will affect (node - add to *point table, way - add to *line/*road/*polygon table). When you remove polygon from name You could loose some object, that already where classified as polygons and now aren't, so I would recommend saving list of polygons to file (select osm_id, name from planet_osm_polygon) before and after change, to compare what, besides rouandabouts aren't polygons any more. area=no/yes is special case in osm2pgsql code, that allows to override any case. -- Marcin Rudowski _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

