Re: Worldwide routable Garmin maps: URL REMOVED
Geschrieben von Lambertus (Gast) am 14. August 2012 21:44:45: [flux]
Als Antwort auf:
Worldwide routable Garmin maps: URL REMOVED
geschrieben von
Lambertus
(Gast)
am
08. März 2009 14:41:
Lambertus wrote:
Apparently Paris is the most complex area in OSM and the script is giving up too early.
Apparently not... I just noticed the following log messages:
Splitting␣nodes␣into␣areas␣containing␣a␣maximum␣of␣200,000␣nodes␣each... Area␣(48.779296875,2.373046875)␣to␣(49.130859375,2.548828125)␣contains␣3,126,220␣nodes␣but␣can't␣be␣split␣further 1␣areas: Area␣63242086␣covers␣(0x22b000,0x1b000)␣to␣(0x22f000,0x1d000)␣FR-Montreuil
So Paris simply cannot be subsplit further to get tiles that are max. 8 MB large because the area of these tiles would become too small. The corresponding code in Splitter is (SplittableDensityArea.java):
if␣(densities.getWidth()␣<␣4␣&&␣densities.getHeight()␣<␣4)␣{ System.out.println("Area␣"␣+␣bounds␣+␣"␣contains␣"␣+␣Utils.format(densities.getNodeCount()) +␣"␣nodes␣but␣is␣already␣at␣the␣minimum␣size␣so␣can't␣be␣split␣further"); return␣Collections.singletonList(bounds); }
So I'm trying to detect this situation in the script and -when encountered- ignore the 8MB limit to get (hopefully) a correct tile at least.