Creating boundary files

Hi,

I want to create boundary files for Kabul map downloaded from Openstreetmap.org in .osm format for Garmin Mobile XT.

I have downloaded Mkgmap(latest version), osmconvert and osmfilter and also map of Kabul city, and because map of Kabul city is only 10MB there for I don’t divide and split it to small regions.

Now when I want to create boundary files and type following commands in cmd I get errors,

when I type osmconvert kabul.osm --out-o5m >kabul.o5m

I get errors,

osmconvert Warning: wrong sequence at way 28614055
osmconvert Warning: next object is way 28612513
osmconvert Warning: wrong sequence at way 69825386
osmconvert Warning: next object is way 23841288
osmconvert Warning: wrong sequence at way 42472052
osmconvert Warning: next object is way 4398580

But the kabul.o5m file is created with 705KB size.

when I type osmfilter kabul.o5m --keep-nodes= --keep-ways-relations=“boundary=administrative =postal_code postal_code=” >kabul-boundaries.osm

I get errors,

osmfilter Warning: wrong sequence at way 28612513
osmfilter Warning: wrong sequence at way 23841288
osmfilter Warning: wrong sequence at way 4398580

But kabul-boundaries.osm is created with 13KB size.

When I type java -jar mkgmap.jar --createboundsfile=kabul-boundaries.osm

I get error,

SEVERE (BoundarySaver): Calculate bbox to (46079.99997854233,46079.99997854233)
to (-46080.0,-46080.0)
Exception in thread “main” java.lang.NullPointerException
at uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryPreparer.workoutBou
ndaryRelations(BoundaryPreparer.java:141)
at uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryPreparer.run(Bounda
ryPreparer.java:110)
at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:333)
at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.ja
va:126)
at uk.me.parabola.mkgmap.main.Main.main(Main.java:112)

and no bounds directory is created.

Therefor when I change the map from .osm to .img and use it Garmin Mobile XT I can’t search for addresses.

What is your recommendations what should I do to create boundary files for Kabul map and use it Garmin Mobile XT.