You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2011-03-13 21:45:21

Seldom
Member
Registered: 2009-01-25
Posts: 193

Problem with --remove-short-arcs in mkgmap

I'm running mkgmap r1894, and if I include --remove-short-arcs in the batch file, as follows, the resulting IMG file gives an error in MapSource and appears empty to GPSMapedit although the IMG file size appears as 28MB in Windows Explorer.

java.exe -Xmx4000M -enableassertions -jar "c:\program files\mkgmap\mkgmap.jar" --route --remove-short-arcs=3 --description="UT" --mapname=08250100 utah.osm
pause

If I delete  --remove-short-arcs=3 the IMG compiles with lots of Zero Length Arc errors, but loads into MapSource.

The Source OSM file is Utah State from Cloudmade.

Thanks.

Last edited by Seldom (2011-03-13 23:18:18)

Offline

#2 2011-03-14 08:00:32

csdf
Member
From: UK, living in Abu Dhabi
Registered: 2009-08-11
Posts: 313
Website

Re: Problem with --remove-short-arcs in mkgmap

Does it work as expected with the last stable version of mkgmap (1867)?

PS You can use -ea instead of -enableassertions (same command, just shorter)

Last edited by csdf (2011-03-14 08:01:07)

Offline

#3 2011-03-14 16:30:39

Seldom
Member
Registered: 2009-01-25
Posts: 193

Re: Problem with --remove-short-arcs in mkgmap

csdf wrote:

Does it work as expected with the last stable version of mkgmap (1867)?

Same problem with r1867 I'm afraid.

Offline

#4 2011-03-14 19:05:26

csdf
Member
From: UK, living in Abu Dhabi
Registered: 2009-08-11
Posts: 313
Website

Re: Problem with --remove-short-arcs in mkgmap

I use --remove-short-arcs without stipulating a value...does that work for you?  What about difference values (5, 2.6, 10 etc)?

Offline

#5 2011-03-14 20:01:20

Seldom
Member
Registered: 2009-01-25
Posts: 193

Re: Problem with --remove-short-arcs in mkgmap

csdf wrote:

I use --remove-short-arcs without stipulating a value...does that work for you?  What about difference values (5, 2.6, 10 etc)?

It doesn't work without radius being specified either.

I should probably mention that I'm using a Dell PC running Win7 64.

Offline

#6 2011-03-23 19:35:46

Seldom
Member
Registered: 2009-01-25
Posts: 193

Re: Problem with --remove-short-arcs in mkgmap

I think the problem was with the cloudmade data.  When I ran the same batch file on an extract from Geofabrik, --remove-short-arcs=3 worked fine.

Offline

Board footer

Powered by FluxBB