"too many restrictions" mkgmap message

Hi Steve, I'm getting the error "too many restrictions" when compiling one of my maps with the as you can see in the out put bellow: java -Xmx10g -XX:+UseConcMarkSweepGC -jar ..\Ferramentas\mkgmap.jar --style-file=..\Ferramentas\mkgmap-style-tracksource --license-file="..\txt\Licenca-TRC.txt" -c TS-Brasil.args Time started: Thu Jul 02 04:30:41 BRT 2015 Bad file format: 90002054.osm.gz too many restrictions Number of MapFailedExceptions: 0 Number of ExitExceptions: 0 Time finished: Thu Jul 02 04:35:14 BRT 2015 Total time taken: 273335ms And I saw in the mkgmap code that this error was thrown in TableC.getOffsetSize method written by you. Could you or anyone tell me what should be wrong in my map to cause this problem? It looks like a specific problem in one of my restrictions. But what kind of problem? I don't know what I must find in the map to fix the problem. Thank you. Best regards.

Hi Alexandre
I'm getting the error "too many restrictions" when compiling one of my maps with the as you can see in the out put bellow:
It means that there are more than 32767 restrictions for a group of roads. A group of roads is usually around 100 or 200 or so. It seems unlikely that there would be genuinely that many restrictions, but if there is then it is possible that the format supports it and I could try to modify the code to accept it. More likely it seems to me that a bug in the code results in it thinking that there are lots more than there realy are under some condition, or perhaps your style creates multiple extra restrictions some how. Best wishes ..Steve

Hi Steve, You gave me a good tip to check my style. Yea! In fact I might have some extra and unnecessary restrictions being generated in the style. I need to review this, because I made this style sometime ago and never revisited it for a review. So this will be my first approach. Thanks. Regards, Alexandre 2015-07-02 17:47 GMT-03:00 Steve Ratcliffe <steve@parabola.me.uk>:
Hi Alexandre
I'm getting the error "too many restrictions" when compiling one of my
maps with the as you can see in the out put bellow:
It means that there are more than 32767 restrictions for a group of roads. A group of roads is usually around 100 or 200 or so.
It seems unlikely that there would be genuinely that many restrictions, but if there is then it is possible that the format supports it and I could try to modify the code to accept it.
More likely it seems to me that a bug in the code results in it thinking that there are lots more than there realy are under some condition, or perhaps your style creates multiple extra restrictions some how.
Best wishes
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (2)
-
Alexandre Loss
-
Steve Ratcliffe