logo separator

[mkgmap-dev] splitter and options --description / --geonames-file

From Gerd Petermann gpetermann_muenchen at hotmail.com on Fri Apr 10 07:46:51 BST 2020

Hi Randolph,

when I want to visualize the calulcated areas I use --write-kml=splitter.kml. The output file splitter.kml can be used in JOSM (with a plugin) as well as in Google Earth,
if you prefer that. The use in JOSM helps me to find issues where a tile border might be involved.

Anyhow, if others are interested I would use your patch with a different option, something like --add-google-plus which would either add the code to the city name or to the given description or to an empty string so that splitter would always generate a unique tile description.

Gerd


________________________________________
Von: Randolph J. Herber <army.bronze.star at gmail.com>
Gesendet: Freitag, 10. April 2020 02:17
An: Development list for mkgmap; Gerd Petermann; Mike Baggaley; Ticker Berkin
Betreff: Re: [mkgmap-dev] splitter and options --description / --geonames-file

Hi, all!

Yes, it helps.

It was not what I had in mind.

[Fragment of          template.args showing the OLC or Google Plus Codes that were          added.]

These codes can be directly used to show the area in question: EG-Alexandria:8G3F5W00+<https://plus.codes/8G3F5W00+>

[Image of          Alexandria, Egypt, area referenced.]

and for an Egyptian area with no cities with a population as large as 15 000: EgyptUC:7GJM0000+<https://plus.codes/7GJM0000+>

[Large area in        southern Egypt with no cities as large as 15 thousand people.]

This area is in southern Egypt.

The differences in AreaList.java, in Unix format are in the attached differences file.

The modified AreaList.java files in the attached java file.

Can you now understand what I want and why?

Randolph J. Herber


On 4/9/2020 9:48 AM, Gerd Petermann wrote:

Hi all,

sorry, I think some mails where not sent to the list. I've attached a patch that adds a number to the city name when --geonames-file is used and multiple tiles
are close to that city.

I fear I don't know in what situation these names are important. So, please try if this improves something.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com><mailto:gpetermann_muenchen at hotmail.com>
Gesendet: Mittwoch, 8. April 2020 16:40
An: Development list for mkgmap; Ticker Berkin
Betreff: Re: [mkgmap-dev] splitter and options --description    /       --geonames-file

Hi Randolph,

in what situation do you use these codes? I am happy with the mapids generated by splitter.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Randolph J. Herber <army.bronze.star at gmail.com><mailto:army.bronze.star at gmail.com>
Gesendet: Mittwoch, 8. April 2020 15:13
An: Development list for mkgmap; Ticker Berkin
Betreff: Re: [mkgmap-dev] splitter and options --description /  --geonames-file

Hi, all,

The Definition of Google Plus Codes, a.k.a. Opern Location Codes, can be
found at https://en.wikipedia.org/wiki/Open_Location_Code

The complete code also specifies, by its length, the size of the area
being described. When using them in splitter, I have never seen a tile
whose code was longer than 8 characters, an area 250m east to west and
125m north to south. I use the largest OLC centered on the tile in
question that fits within the tile.

Randolph J. Herber

On 4/8/2020 4:59 AM, Ticker Berkin wrote:


Hi Gerd

I'd say that if the splitter is going to generate descriptions per tile
(geonames) it should generate one for each tile and, if there isn't a
centre of a city within the tile and no default description, it should
use a modified form of the nearest city to make it unique from a
possible adjacent tile that might use the same city.

Maybe something like "GB-~Basingstoke", but no solution is ideal and
there could still be duplicates.

The splitter could keep track of which names were have been used and,
for the ones outside the tile, added an increasing suffix number, so
would have "GB-Basingstoke-2" etc

Ticker

On Wed, 2020-04-08 at 08:38 +0000, Gerd Petermann wrote:


Hi all,

this is a follow up of http://gis.19327.n8.nabble.com/documentation-i
mprovement-tp5962609p5962747.html

Since I don't use these options for my maps I am unsure what is best.
The --geonames-file option tries to find a city within the calculated
tile. If none is found it either writes the value
given with --description or just a comment.
I think it would be best to always write the nearest city.

Gerd
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev




_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: template.args.JPG
Type: image/jpeg
Size: 45126 bytes
Desc: template.args.JPG
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20200410/cc91a715/attachment-0003.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Alexandria.JPG
Type: image/jpeg
Size: 67769 bytes
Desc: Alexandria.JPG
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20200410/cc91a715/attachment-0004.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7GJM.JPG
Type: image/jpeg
Size: 22314 bytes
Desc: 7GJM.JPG
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20200410/cc91a715/attachment-0005.jpe>


More information about the mkgmap-dev mailing list