logo separator

[mkgmap-dev] [PATCH v3] - Sub-optimal fix to limit excessive inter-node arc length

From Marko Mäkelä marko.makela at iki.fi on Tue Apr 28 12:19:11 BST 2009

On Mon, Apr 27, 2009 at 03:59:58PM +0100, Mark Burton wrote:
> As most maps probably don't need this fix, here's a version of the
> patch that doesn't do the arc length limiting unless you specify the
> "--limit-arc-length" option. I have made the diagnostic message that is
> output when an arc length is too long into an error (was a warning) and
> it spells out what to do to get around the problem.

I tried out the patch on mkgmap r1022, and it made me aware of the problem
with http://download.geofabrik.de/osm/europe/finland.osm.bz2 by
emitting two identical warnings:

SEVERE (RouteArc): Way null contains an arc whose length is too big to be encoded so the road will not be routable (you may use the --limit-arc-length option to work around this problem)

[Suggestion: could it print the ref or the id if there is no name?]

After adding --limit-arc-length, I got a different error message:

SEVERE (StyledConverter): Way null contains a segment that is longer than 16383 (routing will fail for that way)

Mark, could you have a look what is going wrong?  I'm running the
script at http://www.polkupyoraily.net/osm/files/osm2img.sh
essentially as follows:

splitter.jar --split-file=areas.list finland.osm
mkgmap.jar --limit-arc-length -c mkgmap.args --family-name="OSM 28.04.2009"

The referenced files are here:

http://www.polkupyoraily.net/osm/files/areas.list
http://www.polkupyoraily.net/osm/files/mkgmap.args

Best regards,

	Marko



More information about the mkgmap-dev mailing list