OpenStreetMap Logo OpenStreetMap

Help with R, G, B color values for OSM roads

Verfasst von Mink am 21. Juni 2011 in English

I have a question:

How would one find the R, G, B color values for the roads in OSM?

I'm currently trying to import the road shapefiles from CloudMade into my radar program, GR2Analyst, and I am having someone make a .sty file for me. He needs to know what colors I want the roads to show up as, and in order for him to make the roads as they would be in OSM, I need to know the exact values for them!

Thanks!!

Ort: Brentwood Manor, Pekin, Tazewell County, Illinois, 61554, United States
E-Mail-Symbol Bluesky-Symbol Facebook-Symbol LinkedIn-Symbol Mastodon-Symbol Telegramm-Symbol X-Symbol

Diskussion

Kommentar von Vclaw am 21. Juni 2011 um 17:53 Uhr

Assuming you are referring to the default 'Mapnik' map on openstreetmap.org, then this is specifed in the osm.xml file. You can get this file here: http://svn.openstreetmap.org/applications/rendering/mapnik/osm.xml
Then look through it to find the colour codes for the tags for each road. They are given as hexadecimal values, but you can convert these to RGB if you want.

Alternatively, an easier option (if you are running Windows): get Pixie from http://www.nattyware.com/pixie.php and run it.
It will show what colour is under the cursor, so if you point your mouse at an OSM map it will give the colours for that.

Anmelden, um einen Kommentar zu schreiben