Re: [mkgmap-dev] Address index for multi-country map

2013-11-12 Thread WanMil

I know that sometimes a correct solution may be very difficult, and wtf,
let's take a shortcut with a pragmatic solution. How complicated is a
correct solution here?


A correct solution requires to have complete and error free boundary 
relations for the whole world...

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Address index for multi-country map

2013-11-11 Thread Bernhard Hiller
Thanks for your hints. With the precompiled boundaries, the map of the 
European countries receives a functional address index. When creating a 
map of South-East Asia (Thailand, Malysia, Singapore, Cambodia, Vietnam, 
Indonesia, Laos), the address index does not work: no roads are found in 
Bangkok or Kuala Lumpur!


Beyond the fact of the defectiveness with South East Asia, that 
procedure does not feel correct at all: it means that I have to get the 
same (?) data from two different locations in two different formats. Or 
even three, when using the --precompiled-sea option (which I never got 
working with South East Asia).
All those files have different update schedules which means 
inconsistencies. With central Europe, those inconsistencies are not very 
likely, since borders and coast lines are available with high quality. 
That does not apply to South East Asia. Last week I updated some 
sections of the Thai-Malaysian border, and today of the South-Thai coast.


I know that sometimes a correct solution may be very difficult, and wtf, 
let's take a shortcut with a pragmatic solution. How complicated is a 
correct solution here?

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Address index for multi-country map

2013-11-11 Thread GerdP
Hi Bernhard,


Bernhard Hiller wrote
 I know that sometimes a correct solution may be very difficult, and wtf, 
 let's take a shortcut with a pragmatic solution. How complicated is a 
 correct solution here?

you can search the archives to find out why these solutions are preferred.
The main reason besides performance is that a part of the world doesn't
contain complete sea and probably also not complete boundaries.

If you like, you can compile your own boundaries data:
http://wiki.openstreetmap.org/wiki/Mkgmap/help/options#Create_Preprocessed_Bounds
see also
http://wiki.openstreetmap.org/wiki/Mkgmap/help/options#generating_precompiled_sea_yourself

Gerd




--
View this message in context: 
http://gis.19327.n5.nabble.com/Address-index-for-multi-country-map-tp5784034p5785017.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Address index for multi-country map

2013-11-10 Thread Bernhard Hiller

Meanwhile I did some experiments.

With a fresh download from Geofabrik, I started with germany.osm.pbf 
without any additional modification by osmconvert. I split it, and 
created the map with the same parameters and style file.

With the examples from Germany, I received the same results.

Next, I removed the include sections from the style files and replaced 
them by the contents of the respective files.

Same result.

Next, I tried the default style (as of mkgmap 2724). Again, the same 
results.


This means: it is not caused by a defect in my style file, nor in a 
defect in processing with osmconvert. Also a defect in resolving the 
include files can be excluded.

Still, the data downloaded from Geofabrik could be defective.

When I use the --country-name=Deutschland  --country-abbr=DEU 
parameters, places are correctly found in Germany. The country Country 
is no more available. For small villages, the index is then OK. But for 
towns consisting of some quarters, it is still defective: there are no 
roads neither in Erlangen nor in Bayreuth, and the Geseeser Weg can 
only be found in Altstadt instead of Bayreuth.


Next, I returned to mkgmap version 2654. I had to remove all lines with 
admin_level from relations, capital from points, the comparison of 
two values from lines. Also this did not solve the problem.


That means, that the creation of the address index is broken somewhere 
in mkgmap.


___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Address index for multi-country map

2013-11-10 Thread Manfred Brenneisen
Hello Bernhard,

some time ago I had the same trouble. Once I understood it, I have set up the 
wiki page:
http://wiki.openstreetmap.org/wiki/Mkgmap/help/Tags
Have a look at the notes [3] and [4]
You will need precompiled bounds. 

Cheers
Manfred



 
Meanwhile I did some experiments.

With a fresh download from Geofabrik, I started with germany.osm.pbf
without any additional modification by osmconvert. I split it, and
created the map with the same parameters and style file.
With the examples from Germany, I received the same results.

Next, I removed the include sections from the style files and replaced
them by the contents of the respective files.
Same result.

Next, I tried the default style (as of mkgmap 2724). Again, the same
results.

This means: it is not caused by a defect in my style file, nor in a
defect in processing with osmconvert. Also a defect in resolving the
include files can be excluded.
Still, the data downloaded from Geofabrik could be defective.

When I use the --country-name=Deutschland --country-abbr=DEU
parameters, places are correctly found in Germany. The country Country
is no more available. For small villages, the index is then OK. But for
towns consisting of some quarters, it is still defective: there are no
roads neither in Erlangen nor in Bayreuth, and the Geseeser Weg can
only be found in Altstadt instead of Bayreuth.

Next, I returned to mkgmap version 2654. I had to remove all lines with
admin_level from relations, capital from points, the comparison of
two values from lines. Also this did not solve the problem.

That means, that the creation of the address index is broken somewhere
in mkgmap.

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
 
 
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

[mkgmap-dev] Address index for multi-country map

2013-11-04 Thread Bernhard Hiller
I try to build a map of Germany, Switzerland, Austria and Czech Republic 
with a functional address index.
I downloaded the Geofabrik extracts for those countries, combined them 
(after conversion to o5m format) with osmconvert, split them, and create 
the map.


The result is quite mixed: some places show up below Country instead 
of Germany, e.g.

- Addresses
- Spell Country: Country
- Spell City: Krummennaab
- Enter Street Name: (stopped here, works)
whilst
- Addresses
- Spell Country: Deutschland
- Spell City: Krummennaab
- No Results found

Some places show up below Deutschland, but (almost) no road is available:
- Addresses
- Spell Country: Deutschland
- Spell City: Erlangen
- Enter Street Name: (blank)
- only Buckenhofer Weg available of a town with more than 10 
inhabitants...

whilst
- Addresses
- Spell Country: Country
- Spell City: Erlangen
- Enter Street Name: (blank)
- lists many roads of the town

Near my home in Bayreuth is Geseeser Weg. I choose that example 
because that street name does not exist so often.

- Addresses
- Spell Country: Country
- Spell City: (Search All)
- Enter Street Name: Geseeser
- No Results found
but
- Addresses
- Spell Country: Deutschland
- Spell City: (Search All)
- Enter Strret Name: Geseeser
- lists Geseeser Straße and Geseeser Weg - select the latter
- Enter House Number: 1
- lists Geseeser Weg Altstadt Deutschland and Geseeser Weg 
Schnörleinsmühle. Since the part of Bayreuth is Altstadt (but no one 
would write that down as part of the address - it is Geseeser Weg 1, 
95447 Bayreuth) select that

- shows correctly on the map

Let's try an example in Czeck Republic: Dukelská Ulica in Sokolov
- Addresses
- Spell Country: Ceská Republica
- Spell City: Sokolov
- No Results found
but
- Addresses
- Spell Country: Country
- Spell City: Sokolov
- Enter Street name: Dukelská
- Enter House Number: 1
- shows correctly on the map

I know that I can use command line parameters for mkgmap:
--country-name=Deutschland ^
--country-abbr=DEU ^
but that's not approriate here: there are 4 different countries to deal 
with. Otherwise, the parameters do their job correctly.


According to the documentation, the style file should help mkgmap 
determine the country, and both my lines and points files say on their top:

include 'inc/address';

How to solve this problem? Thanks for your hints.


___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] Address index for multi-country map

2013-11-04 Thread WanMil

Hello Bernhard,

please post your style files and the mkgmap parameters you are using.

Thanks!
WanMil


I try to build a map of Germany, Switzerland, Austria and Czech Republic
with a functional address index.
I downloaded the Geofabrik extracts for those countries, combined them
(after conversion to o5m format) with osmconvert, split them, and create
the map.

The result is quite mixed: some places show up below Country instead
of Germany, e.g.
- Addresses
- Spell Country: Country
- Spell City: Krummennaab
- Enter Street Name: (stopped here, works)
whilst
- Addresses
- Spell Country: Deutschland
- Spell City: Krummennaab
- No Results found

Some places show up below Deutschland, but (almost) no road is available:
- Addresses
- Spell Country: Deutschland
- Spell City: Erlangen
- Enter Street Name: (blank)
- only Buckenhofer Weg available of a town with more than 10
inhabitants...
whilst
- Addresses
- Spell Country: Country
- Spell City: Erlangen
- Enter Street Name: (blank)
- lists many roads of the town

Near my home in Bayreuth is Geseeser Weg. I choose that example
because that street name does not exist so often.
- Addresses
- Spell Country: Country
- Spell City: (Search All)
- Enter Street Name: Geseeser
- No Results found
but
- Addresses
- Spell Country: Deutschland
- Spell City: (Search All)
- Enter Strret Name: Geseeser
- lists Geseeser Straße and Geseeser Weg - select the latter
- Enter House Number: 1
- lists Geseeser Weg Altstadt Deutschland and Geseeser Weg
Schnörleinsmühle. Since the part of Bayreuth is Altstadt (but no one
would write that down as part of the address - it is Geseeser Weg 1,
95447 Bayreuth) select that
- shows correctly on the map

Let's try an example in Czeck Republic: Dukelská Ulica in Sokolov
- Addresses
- Spell Country: Ceská Republica
- Spell City: Sokolov
- No Results found
but
- Addresses
- Spell Country: Country
- Spell City: Sokolov
- Enter Street name: Dukelská
- Enter House Number: 1
- shows correctly on the map

I know that I can use command line parameters for mkgmap:
 --country-name=Deutschland ^
 --country-abbr=DEU ^
but that's not approriate here: there are 4 different countries to deal
with. Otherwise, the parameters do their job correctly.

According to the documentation, the style file should help mkgmap
determine the country, and both my lines and points files say on their top:
include 'inc/address';

How to solve this problem? Thanks for your hints.


___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev