poiDispFlag="0xc" in locatorconfig.xml

Just a quick question. I couldn't find anywhere documentation what it does exactly. Why is it added for some countries? And what does regionOffset="number" do? -- keep on biking and discovering new trails Felix openmtbmap.org & www.velomap.org

Felix Hartmann-2 wrote
Just a quick question. I couldn't find anywhere documentation what it does exactly. Why is it added for some countries?
And what does regionOffset="number" do? ts.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
I looked at the source and found this: poiDispFlag is related to the way how addresses are displayed. The value is written to the *.img file. Default is 0. RegionOffset : Is used when the is_in tag is evaluated. I think tt gives the expected position of the region. Expected typical content for Germany: "County,State,Country,Continent" Ciao, Gerd -- View this message in context: http://gis.19327.n5.nabble.com/poiDispFlag-0xc-in-locatorconfig-xml-tp574799... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Felix Hartmann-2 wrote
Just a quick question. I couldn't find anywhere documentation what it does exactly. Why is it added for some countries?
And what does regionOffset="number" do? ts.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
I looked at the source and found this:
poiDispFlag is related to the way how addresses are displayed. The value is written to the *.img file. Default is 0.
I've just found out that there might be a problem in the source code. If --transparent is set the poiDispFlag of the TREFile is initialized with constant POI_FLAG_TRANSPARENT=0x2. If the poiDispFlag in the LocatorConfig.xml is set this is overwritten. So the --transparent flag should have no effect for POIs in Austria because the poiDispFlag is configured to 0xc. @Steve, do you know if that matters? WanMil
RegionOffset : Is used when the is_in tag is evaluated. I think tt gives the expected position of the region. Expected typical content for Germany: "County,State,Country,Continent"
Ciao, Gerd

Hi WanMil First to fully answer the original question the known bits are believed to be: 0x2 transparent map 0x4 show street before house number in addresses eg "Sterzinger Straße 1" 0x8 show the zip/postal code before the city eg "6020 Innsbruck" Only the last two should be allowed in the Locator file. The bits only affect the display of addresses, there is no functional difference as far as I know. On 05/02/13 18:51, WanMil wrote:
I've just found out that there might be a problem in the source code. If --transparent is set the poiDispFlag of the TREFile is initialized with constant POI_FLAG_TRANSPARENT=0x2. If the poiDispFlag in the LocatorConfig.xml is set this is overwritten. So the --transparent flag should have no effect for POIs in Austria because the poiDispFlag is configured to 0xc.
@Steve, do you know if that matters?
I see that the transparent flag is OR'ed in, but the other ones appear to overwrite everything. So it matters if they are run in the wrong order ;) So ideally the locator config would only allow the address format bits to be specified and use a more symbolic representation. The bits would then be properly masked and or'ed in. ..Steve

So ideally the locator config would only allow the address format bits to be specified and use a more symbolic representation. The bits would then be properly masked and or'ed in.
Good description for a patch. Wait a minute...
WanMil
I've posted a quick patch and will change the locator config later on. WanMil

On Tue, Feb 05, Steve Ratcliffe wrote:
Hi WanMil
First to fully answer the original question the known bits are believed to be: 0x2 transparent map 0x4 show street before house number in addresses eg "Sterzinger Straße 1" 0x8 show the zip/postal code before the city eg "6020 Innsbruck"
Only the last two should be allowed in the Locator file.
The bits only affect the display of addresses, there is no functional difference as far as I know.
Could this be the reason that it is impossible to create transparent maps if you create adress index? Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)

On Tue, Feb 05, Steve Ratcliffe wrote:
Hi WanMil
First to fully answer the original question the known bits are believed to be: 0x2 transparent map 0x4 show street before house number in addresses eg "Sterzinger Straße 1" 0x8 show the zip/postal code before the city eg "6020 Innsbruck"
Only the last two should be allowed in the Locator file.
The bits only affect the display of addresses, there is no functional difference as far as I know.
Could this be the reason that it is impossible to create transparent maps if you create adress index?
Thorsten
Sounds reasonable. Please try the patch and report your findings. Thanks! WanMil

On Tue, Feb 05, WanMil wrote:
On Tue, Feb 05, Steve Ratcliffe wrote:
The bits only affect the display of addresses, there is no functional difference as far as I know.
Could this be the reason that it is impossible to create transparent maps if you create adress index?
Thorsten
Sounds reasonable. Please try the patch and report your findings. Thanks!
It was the bug, now I can create again transparent maps including adress index. Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)

okay, so probably similar to GerdP's answer, I do wonder why it is set only for some countries. I cannot understand why we should make difference in the way addresses are displayed depending on the country... On 05.02.2013 19:10, GerdP wrote:
Felix Hartmann-2 wrote
Just a quick question. I couldn't find anywhere documentation what it does exactly. Why is it added for some countries?
And what does regionOffset="number" do? ts.mkgmap.org.uk/mailman/listinfo/mkgmap-dev I looked at the source and found this:
poiDispFlag is related to the way how addresses are displayed. The value is written to the *.img file. Default is 0.
RegionOffset : Is used when the is_in tag is evaluated. I think tt gives the expected position of the region. Expected typical content for Germany: "County,State,Country,Continent"
Ciao, Gerd
-- View this message in context: http://gis.19327.n5.nabble.com/poiDispFlag-0xc-in-locatorconfig-xml-tp574799... Sent from the Mkgmap Development mailing list archive at Nabble.com. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- keep on biking and discovering new trails Felix openmtbmap.org & www.velomap.org

On Tue, Feb 05, 2013 at 08:59:46PM +0100, Felix Hartmann wrote:
okay, so probably similar to GerdP's answer, I do wonder why it is set only for some countries. I cannot understand why we should make difference in the way addresses are displayed depending on the country...
Well, while the German style is common in Europe, it is not the only style that is being used in Europe. (Don't the French write the street number before the street name, but postal code before the city name?) Also, Europe is not the whole world. In many countries, the city name is written before the postal code (zip code). I'm glad that Garmin came up with those two bits. Cultural imperialism is annoying and only sometimes funny. Iso Roobertinkatu (In Helsinki, Big Robert Street) can become 150 Roobertinkatu when interpreting handwriting. True story. :-) Best regards, Marko PS: 0xc is the way to go for Finland, Sweden, Norway, Denmark, Estonia, Germany, Austria, The Netherlands at least.
participants (6)
-
Felix Hartmann
-
GerdP
-
Marko Mäkelä
-
Steve Ratcliffe
-
Thorsten Kukuk
-
WanMil