Select to view content in your preferred language

Use the OSM Attributes

2674
11
Jump to solution
02-26-2013 03:12 AM
DanielS
Emerging Contributor
Hey everyone,

Is it possible to use the imported OSM Attributes?

I make a Rule with the Attribute height (attr height = rand(10,50)) the building is shown in this height(s). Everything is fine.
But I like to use the attributes from the OSM-data if available. Because of this the attribute have the same name like the Attribute in the ???Object Attributes???.
I tried to connect it with the ???Attribute Connection Editor??? but the selection for ???Object attribute??? is grey, cannot be selected???
[ATTACH=CONFIG]22169[/ATTACH]

What can I do?

Thanks a lot
0 Kudos
11 Replies
MatthiasBuehler1
Deactivated User
hi.

You don't want to have those values to be strings. You NEED floats to be floats for e.g. the extrude.

So you'd use something like ..

attr height = ""  heightFunction =     case height == "" : rand(30, 50)     else : float(height)  Lot -->     extrude(heightFunction)

or similar.
0 Kudos
DanielS
Emerging Contributor
Nice, nice, nice. That´s it.
You solved my problems.
Thank you very much!
0 Kudos