[mkgmap-dev] Commit r4271: improve reader for polish (*.mp) format

2019-02-10 Thread svn commit
Version mkgmap-r4271 was committed by gerd on Mon, 11 Feb 2019

improve reader for polish (*.mp) format
- fix restriction handling (various errors, esp. NPE and "can't locate arc from 
'via' node..." error messages 
- make sure that route nodes are only calculated for POLYLINE nodes given for 
level 0

TODO: SIGN section (exit hints)

http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4271
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


[mkgmap-dev] documentation improvement patch

2019-02-10 Thread Mike Baggaley
Hi Gerd, I have attached a patch to improve the documentation of the command
line. I did it some time ago and had forgotten about it, but the discussion
on whether to change default options prompted me to come back to it. The
change is purely to the documentation, no code changes.

Please review and if it meets with your approval, commit.

Thanks,
Mike


doc.patch
Description: Binary data
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] Commit r4270: improve reader for polish (*.mp) format

2019-02-10 Thread Andrzej Popowski

Hi Gerd,

doesn't mkgmap support multiple points restrictions from OSM data? 
Anyway, removing 4-point restriction prevents mkgmap from crashing, but 
errors still remains:


SEVERE (RoadNetwork): 8001.mp: 1 can't locate arc from 'via' node  1 
to 'to' node 171 on way 431744
SEVERE (RoadNetwork): 8001.mp: 4 can't locate arc from 'via' node  4 
to 'to' node 59519 on way 1020461
SEVERE (RoadNetwork): 8001.mp: 8 can't locate arc from 'via' node  8 
to 'to' node 80234 on way 812265


Looks like this message is issued for all restrictions, regardless if 
they are before or after roads in source file. I have checked in 
BaseCamp, restrictions don't work.


Except of restrictions, map looks good.

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


Re: [mkgmap-dev] Shouldn't both options --gmapi and --nsis imply --tdbfile?

2019-02-10 Thread Mike Baggaley
>I still don't dare to change the option handling in mkgmap completely. My
understanding is that we have two groups of users:
>- One large group uses mkgmap since long and has all kinds of scripts which
expect exactly the current behaviour.
>Thus I consider backward compatibility very important.
>- One small group (the newbies) try to create a map on their own and those
are lost with all the options needed to get a good map.
>I think those users would also not profit if we suddenly change all kinds
of defaults because they will find even more confusing >hints and howtos.

I don't agree with that at all. I am a long standing user who uses scripts
and options files to build my map, but still think we should be aiming to
improve the user interface which is pretty hostile to new users. Adding new
functionality without rationalising any of the existing interface generally
makes it even more complicated for newbies. All that is needed is that
changes need to be staged such they are backward compatible for a time with
a clear statement that a certain option is deprecated and is due be
removed/changed, then later this is followed up with another statement and
the actual removal. Changing my script to use a new or changed option takes
a matter of moments. Changing of defaults can be handled in a similar way.
Initially send out a note saying the default will change, indicating that
any scripts may need to explicitly specify the option. If a user has got to
the stage where he has developed a script to generate their map, then they
must know what they are doing, and it will not take much effort to tweak the
script when an occasional user interface change comes along. I don't think
there is any suggestion that there will be so many changes to the interface
that it would become painful, and the occasional change seems to me a very
small price to pay for improving the usability for new users.

Regards,
Mike

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


Re: [mkgmap-dev] Commit r4270: improve reader for polish (*.mp) format

2019-02-10 Thread Gerd Petermann
Hi Andrzej,

besides the mixed case problem mkgmap also cannot handle 4 node restrictions in 
polish input.
Will take a while ...

Gerd


Von: Gerd Petermann 
Gesendet: Sonntag, 10. Februar 2019 09:26
An: Gerd Petermann; Development list for mkgmap
Betreff: AW: [mkgmap-dev] Commit r4270: improve reader for polish (*.mp) format

Hi Andrzej,

I found an older example with restrictions and I can reproduce the problem. It 
seems that our reader is too restrictive regarding the spelling of key words.
For example, the parser understands "TraffPoints" but not "TRAFFPOINTS"

I can try to change the parser so that it always uses method 
String.equalsIgnoreCase() instead of String.equals().

Gerd



Von: mkgmap-dev  im Auftrag von Gerd 
Petermann 
Gesendet: Sonntag, 10. Februar 2019 06:42
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Commit r4270: improve reader for polish (*.mp) format

Hi Andrzej,

please can you share your input file 8001.mp?

Gerd


Von: mkgmap-dev  im Auftrag von Andrzej 
Popowski 
Gesendet: Sonntag, 10. Februar 2019 00:41
An: mkgmap-dev@lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] Commit r4270: improve reader for polish (*.mp) format

Hi Gerd,

I have tried to compile some more complicated mp. First problem is, that
restriction placed on the beginning of the file give multiple warnings,
like:

SEVERE (RoadNetwork): 8001.mp: 1 can't locate arc from 'via' node  1
to 'to' node 171 on way 431744
SEVERE (RoadNetwork): 8001.mp: 4 can't locate arc from 'via' node  4
to 'to' node 59519 on way 1020461
SEVERE (RoadNetwork): 8001.mp: 8 can't locate arc from 'via' node  8
to 'to' node 80234 on way 812265

Then mkgmap crashes:

java.lang.NullPointerException
 at
uk.me.parabola.imgfmt.app.net.RoadNetwork.addRestriction(RoadNetwork.java:320)
 at
uk.me.parabola.mkgmap.general.MapDetails.addRestriction(MapDetails.java:130)
 at
uk.me.parabola.mkgmap.reader.polish.RestrictionHelper.processAndAddRestrictions(RestrictionHelper.java:54)
 at
uk.me.parabola.mkgmap.reader.polish.PolishMapDataSource.load(PolishMapDataSource.java:151)
 at
uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:154)
 at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:52)
 at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:289)
 at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:285)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
 at java.lang.Thread.run(Unknown Source)
Exiting - if you want to carry on regardless, use the --keep-going option

If I move restriction to the end of file, then there is no warning, but
crash is the same:

java.lang.NullPointerException
 at
uk.me.parabola.imgfmt.app.net.RoadNetwork.addRestriction(RoadNetwork.java:320)
 at
uk.me.parabola.mkgmap.general.MapDetails.addRestriction(MapDetails.java:130)
 at
uk.me.parabola.mkgmap.reader.polish.RestrictionHelper.processAndAddRestrictions(RestrictionHelper.java:54)
 at
uk.me.parabola.mkgmap.reader.polish.PolishMapDataSource.load(PolishMapDataSource.java:151)
 at
uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:154)
 at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:52)
 at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:289)
 at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:285)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
 at java.lang.Thread.run(Unknown Source)
Exiting - if you want to carry on regardless, use the --keep-going option

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


Re: [mkgmap-dev] Commit r4270: improve reader for polish (*.mp) format

2019-02-10 Thread Gerd Petermann
Hi Andrzej,

I found an older example with restrictions and I can reproduce the problem. It 
seems that our reader is too restrictive regarding the spelling of key words.
For example, the parser understands "TraffPoints" but not "TRAFFPOINTS"

I can try to change the parser so that it always uses method 
String.equalsIgnoreCase() instead of String.equals().

Gerd



Von: mkgmap-dev  im Auftrag von Gerd 
Petermann 
Gesendet: Sonntag, 10. Februar 2019 06:42
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Commit r4270: improve reader for polish (*.mp) format

Hi Andrzej,

please can you share your input file 8001.mp?

Gerd


Von: mkgmap-dev  im Auftrag von Andrzej 
Popowski 
Gesendet: Sonntag, 10. Februar 2019 00:41
An: mkgmap-dev@lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] Commit r4270: improve reader for polish (*.mp) format

Hi Gerd,

I have tried to compile some more complicated mp. First problem is, that
restriction placed on the beginning of the file give multiple warnings,
like:

SEVERE (RoadNetwork): 8001.mp: 1 can't locate arc from 'via' node  1
to 'to' node 171 on way 431744
SEVERE (RoadNetwork): 8001.mp: 4 can't locate arc from 'via' node  4
to 'to' node 59519 on way 1020461
SEVERE (RoadNetwork): 8001.mp: 8 can't locate arc from 'via' node  8
to 'to' node 80234 on way 812265

Then mkgmap crashes:

java.lang.NullPointerException
 at
uk.me.parabola.imgfmt.app.net.RoadNetwork.addRestriction(RoadNetwork.java:320)
 at
uk.me.parabola.mkgmap.general.MapDetails.addRestriction(MapDetails.java:130)
 at
uk.me.parabola.mkgmap.reader.polish.RestrictionHelper.processAndAddRestrictions(RestrictionHelper.java:54)
 at
uk.me.parabola.mkgmap.reader.polish.PolishMapDataSource.load(PolishMapDataSource.java:151)
 at
uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:154)
 at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:52)
 at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:289)
 at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:285)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
 at java.lang.Thread.run(Unknown Source)
Exiting - if you want to carry on regardless, use the --keep-going option

If I move restriction to the end of file, then there is no warning, but
crash is the same:

java.lang.NullPointerException
 at
uk.me.parabola.imgfmt.app.net.RoadNetwork.addRestriction(RoadNetwork.java:320)
 at
uk.me.parabola.mkgmap.general.MapDetails.addRestriction(MapDetails.java:130)
 at
uk.me.parabola.mkgmap.reader.polish.RestrictionHelper.processAndAddRestrictions(RestrictionHelper.java:54)
 at
uk.me.parabola.mkgmap.reader.polish.PolishMapDataSource.load(PolishMapDataSource.java:151)
 at
uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:154)
 at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:52)
 at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:289)
 at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:285)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
 at java.lang.Thread.run(Unknown Source)
Exiting - if you want to carry on regardless, use the --keep-going option

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