Display of Buildings

using freizeitkarte.txt wie have for displaying building something like


[_polygon]
Type=0x13
String1=0x00,Gebäude
String2=0x01,Gebäude
String3=0x02,Gebäude
String4=0x04,Building
ExtendedLabels=Y
FontStyle=NoLabel (invisible)
CustomColor=No
Xpm="0 0 1 0"
"1 c #0000FF"
[end]

No I want a border around the building (to distinguish between two buildings) and therefore I added


[_line]
Type=0x13
String1=0x00,Gebäude
String2=0x01,Gebäude
String3=0x02,Gebäude
String4=0x04,Building
Xpm="32 2 2 1"
"! c #FF0000"
"  c #0000FF"
"    !!!!    !!!!    !!!!    !!!!"
"!!!!    !!!!    !!!!    !!!!    "
;12345678901234567890123456789012
[end]

However it does not show a border.

Any ideas or hints?

Polygon has no line, which can be defined in TYP. You have to recompile the map, creating 2 objects for each building: polygon and polyline.

I tried


building = * [0x13 resolution 24 continue]
building = * [0x1D resolution 24]

and


[_line]
Type=0x1d
UseOrientation=Y
Xpm="32 2 2  1"
"! c #408000"
"  c none"
"!!!!!!  !!  !!!!!!  !!  !!!!!!  "
"!!!!!!  !!  !!!!!!  !!  !!!!!!  "
;12345678901234567890123456789012
String1=0x00,Nationalparkgrenze
String2=0x01,Nationalparkgrenze
String3=0x02,Nationalparkgrenze
String4=0x04,National Park Boundary
ExtendedLabels=Y
FontStyle=Default
CustomColor=No
[end]

But that does not work i.e. no border is shown.

Any ideas?

Maybe put building = * [0x1D resolution 24] in the line style, because it is a line, not a polygon?

In which order are the styles read?

Have a look at

http://www.pinns.co.uk/osm/styleideas.html

this deals with adding outlines to polygons.

lines are parsed before polygons so make sure you have a continue at the end of your building entry in lines.

Following lightfietser : building = * [0x1D resolution 24 continue] # ADD CONTINUE IN LINES ENTRY!

Wilpin, I havent seen a lightfietser before. Is it a lightweight or an illuminated cyclist? :smiley:

Oops! :wink:

Thanks …
First I put on top of the lines style. This did not work, all the map was black
Then I put it at the end as mentioned in the link and it did work.

Howerver, I do not understand

  • why it does not work at the beginning of the line style
  • why it does not work in the polygon style
    maybe one can tell me.

It should work, maybe you have done some error unrelated to the problem.

Because definitions in polygon file crate polygons, not lines.

Thanks for your help. Now I changed my style in way

  • that buildings have a border; now I can notice my observations more accuratly
  • that buildings with a addr:housenumber have a different color than such without
    with these I can collect new housenumber more easily.

But it happens in Nuremberg that the addr:housenumber is not tagged to the polyline but to a entrance=* point (e.g. http://www.openstreetmap.org/node/1725997265)
Therefore I added

entrance = * & addr:housenumber = * [0x0209 resolution 24]

to the points style file.
This works some times but most times i does not.
Question 1: Does it happen that the points with the addr:housenumber are deleted by the simplifying of the Douglas Peuker algorithm?
Question 2: When processing the polyline: is it possible to find out whether one of the points of the polyline contain an addr:housenuber tag?
Thanks