You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Pages: 1
#1 2014-01-28 22:03:34
- hfst
- Member
- Registered: 2013-08-31
- Posts: 709
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?
Offline
#2 2014-01-28 22:55:31
- popej
- Member

- Registered: 2008-09-20
- Posts: 500
- Website
Re: Display of Buildings
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.
popej
Offline
#3 2014-01-31 21:49:41
- hfst
- Member
- Registered: 2013-08-31
- Posts: 709
Re: Display of Buildings
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?
Offline
#4 2014-01-31 22:11:14
- ligfietser
- Member

- Registered: 2008-10-09
- Posts: 5,353
- Website
Re: Display of Buildings
Maybe put building = * [0x1D resolution 24] in the line style, because it is a line, not a polygon?
Offline
#5 2014-02-03 20:00:49
- hfst
- Member
- Registered: 2013-08-31
- Posts: 709
Re: Display of Buildings
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?
Offline
#6 2014-02-03 20:58:09
- wilpin
- Member
- Registered: 2009-11-22
- Posts: 79
- Website
Re: Display of Buildings
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!
Offline
#7 2014-02-03 22:34:41
- ligfietser
- Member

- Registered: 2008-10-09
- Posts: 5,353
- Website
Re: Display of Buildings
Wilpin, I havent seen a lightfietser before. Is it a lightweight or an illuminated cyclist? ![]()
Offline
#8 2014-02-04 00:24:22
- wilpin
- Member
- Registered: 2009-11-22
- Posts: 79
- Website
Re: Display of Buildings
Oops! ![]()
Offline
#9 2014-02-04 20:52:54
- hfst
- Member
- Registered: 2013-08-31
- Posts: 709
Re: Display of Buildings
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!
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.
Offline
#10 2014-02-04 21:28:00
- popej
- Member

- Registered: 2008-09-20
- Posts: 500
- Website
Re: Display of Buildings
* why it does not work at the beginning of the line style
It should work, maybe you have done some error unrelated to the problem.
* why it does not work in the polygon style
Because definitions in polygon file crate polygons, not lines.
popej
Offline
#11 2014-02-06 20:32:59
- hfst
- Member
- Registered: 2013-08-31
- Posts: 709
Re: Display of Buildings
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
Offline
Pages: 1