[OSM-talk] duplicated street names problem
Jon Burgess
jburgess777 at googlemail.com
Fri Aug 15 00:46:54 BST 2008
On Fri, 2008-08-15 at 02:19 +0300, nihal fares wrote:
> i'm new to all of this and i want a link or something for explaining
> rendering tiles. i've read only few articles and i didn't understand
> anything.
>
> For the map , i used the code on this link >>
> http://wiki.openstreetmap.org/index.php/Google_Maps_Example
>
> and i added my google API key and i specified the centre as
> (30.092304,31.336055)
> this to load cairo map , and it works but the map that appears is the
> same one on http://www.openstreetmap.org/
> with the same Lat,Lon to view nasrcity ,cairo,egypt
Is this it?
http://www.openstreetmap.org/?lat=30.1044&lon=31.3386&zoom=14&layers=B00FTF
The reason for the duplicate names on the major roads is that they are
dual carriageways with the sane name on both the parallel roads.
If you are rendering the data yourself this it would be possible to
manually edit the data to remove the name from one carriageway and
render the result. You should not upload this change to OSM though, the
current data is correct. It is a limitation in the rendering which makes
it appear twice.
This is often less of an issue in the UK since major roads often have
only a reference number (e.g. M25) and no name. There is special code in
the renderer to ensure that this reference does not get displayed too
often using the min_distance feature on the reference shields in the
style file.
Actually this feature might exist for road names as well but we don't
use it at the moment. You could try setting the min_distance distance
parameter for the primary/secondary road text in the osm.xml.
Jon
More information about the talk
mailing list