Index: src/uk/me/parabola/imgfmt/app/lbl/PlacesFile.java =================================================================== --- src/uk/me/parabola/imgfmt/app/lbl/PlacesFile.java (revision 828) +++ src/uk/me/parabola/imgfmt/app/lbl/PlacesFile.java (working copy) @@ -79,7 +79,7 @@ } Country createCountry(String name, String abbr) { - Country c = new Country(countries.size()); + Country c = new Country(countries.size()+1); String s = abbr != null ? name + 0x1d + abbr : name; @@ -91,7 +91,7 @@ } Region createRegion(Country country, String name) { - Region r = new Region(country, regions.size()); + Region r = new Region(country, regions.size()+1); Label l = lblFile.newLabel(name); r.setLabel(l); @@ -101,7 +101,7 @@ } City createCity(Region region, String name) { - City c = new City(region, cities.size()); + City c = new City(region, cities.size()+1); Label l = lblFile.newLabel(name); c.setLabel(l); @@ -111,7 +111,7 @@ } Zip createZip(String code) { - Zip z = new Zip(postalCodes.size()); + Zip z = new Zip(postalCodes.size()+1); Label l = lblFile.newLabel(code); z.setLabel(l); @@ -129,6 +129,7 @@ p.setLabel(l); pois.add(p); + return p; } Index: src/uk/me/parabola/imgfmt/app/lbl/LBLFile.java =================================================================== --- src/uk/me/parabola/imgfmt/app/lbl/LBLFile.java (revision 828) +++ src/uk/me/parabola/imgfmt/app/lbl/LBLFile.java (working copy) @@ -138,6 +138,19 @@ public POIRecord createPOI(String name) { return places.createPOI(name); } + + public Country createCountry(String name, String abbr) { + return places.createCountry(name, abbr); + } + + public Region createRegion(Country country, String region) { + return places.createRegion(country, region); + } + + public City createCity(Region region, String city) { + return places.createCity(region, city); + } + public void allPOIsDone() { places.allPOIsDone(); Index: src/uk/me/parabola/mkgmap/build/MapBuilder.java =================================================================== --- src/uk/me/parabola/mkgmap/build/MapBuilder.java (revision 828) +++ src/uk/me/parabola/mkgmap/build/MapBuilder.java (working copy) @@ -25,6 +25,8 @@ import uk.me.parabola.imgfmt.app.Coord; import uk.me.parabola.imgfmt.app.lbl.LBLFile; import uk.me.parabola.imgfmt.app.lbl.POIRecord; +import uk.me.parabola.imgfmt.app.lbl.Country; +import uk.me.parabola.imgfmt.app.lbl.Region; import uk.me.parabola.imgfmt.app.map.Map; import uk.me.parabola.imgfmt.app.net.NETFile; import uk.me.parabola.imgfmt.app.net.NODFile; @@ -138,6 +140,21 @@ */ private void processPOIs(Map map, MapDataSource src) { LBLFile lbl = map.getLblFile(); + + Country d = lbl.createCountry("Deutschland","GER"); + + Country a = lbl.createCountry("Oesterreich","AUT"); + + Region b = lbl.createRegion(d,"Bayern"); + lbl.createRegion(d,"Sachsen"); + lbl.createRegion(d,"Berlin"); + lbl.createRegion(d,"Hamburg"); + lbl.createRegion(a,"Tirol"); + lbl.createRegion(a,"Salzburg"); + + lbl.createCity(b,"Rosenheim"); + lbl.createCity(b,"Traunstein"); + for (MapPoint p : src.getPoints()) { POIRecord r = lbl.createPOI(p.getName()); poimap.put(p, r);