You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
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.***

#1 2015-07-11 23:52:49

ak33056
Member
Registered: 2011-11-07
Posts: 22

Set a non existing t and the value of a variable in mkgmap ??

Hi,

two basically question in rendering maps  with mkgmap and using own styles:

1. How can I set a non existing tag to the value of a variable?

Example: place=* & ( name!=* ) {set name=variable_name}                   # Code in 'polygons' file

2. Is it posible to set the 'variable_name' in other style files (like pois, lines ore relations)?

I hope anybody can help me.

Best regards


ak 33056

Offline

#2 2015-07-12 09:02:21

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Set a non existing t and the value of a variable in mkgmap ??

ak33056 wrote:

1. How can I set a non existing tag to the value of a variable?

Example: place=* & ( name!=* ) {set name=variable_name}                   # Code in 'polygons' file

I'm not sure what you mean by variable name.
You can set a non existing tag by {add key=value} in point, lines or polygon files. You can also use {set key=value2} if key=value exists.
See for more info http://www.mkgmap.org.uk/doc/pdf/style-manual.pdf

Offline

#3 2015-07-12 10:09:29

ak33056
Member
Registered: 2011-11-07
Posts: 22

Re: Set a non existing t and the value of a variable in mkgmap ??

'variable_name' is simply the name of the variable.

Once again:
Is it possible to replace the value of an existing tag with the value of a variable named 'variable_name'?

Thanks


ak 33056

Offline

#4 2015-07-12 10:49:40

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Set a non existing t and the value of a variable in mkgmap ??

This is very confusing, are you looking for an existing or non existing tag?
Can you give an example what you want?

Offline

Board footer

Powered by FluxBB