Possibility to split two or more files on the same run

Hello, I would like to know if it's possible to run the splitter against two or more files on the same run? For example, is is possible to run splitter that way : java -Xmx896m -jar splitter.jar --cache=~/tmp --geonames-file=cities1000.zip --max-areas=30 --max-nodes=1000000 --description="OSM Map" --mapid=66660001 baden_wuerttemberg.osm.bz2 bayern.osm.bz2 I need the files produced by splitter to be numbered that way : the ones from the baden_wuerttemberg.osm.bz2 file : 66660001 to 66660010 (for example) et the one from bayern.osm.bz2 from 66660011 to 666600xx Thank you. Francois --

Hello,
I would like to know if it's possible to run the splitter against two or more files on the same run? For example, is is possible to run splitter that way :
java -Xmx896m -jar splitter.jar --cache=~/tmp --geonames-file=cities1000.zip --max-areas=30 --max-nodes=1000000 --description="OSM Map" --mapid=66660001 baden_wuerttemberg.osm.bz2 bayern.osm.bz2
I need the files produced by splitter to be numbered that way : the ones from the baden_wuerttemberg.osm.bz2 file : 66660001 to 66660010 (for example) et the one from bayern.osm.bz2 from 66660011 to 666600xx
Thank you. Francois
I have never tried, but I don't think this is possible. Why do you not use two separate runs? The first one splits baden-wuertemberg into 10 tiles (for example) . If you start the second run with --mapid=66660010 you will get the wanted result. Regards, Johann

Le 14/08/2010 10:53, Johann Gail a écrit :
I would like to know if it's possible to run the splitter against two or more files on the same run? For example, is is possible to run splitter that way :
java -Xmx896m -jar splitter.jar --cache=~/tmp --geonames-file=cities1000.zip --max-areas=30 --max-nodes=1000000 --description="OSM Map" --mapid=66660001 baden_wuerttemberg.osm.bz2 bayern.osm.bz2
I need the files produced by splitter to be numbered that way : the ones from the baden_wuerttemberg.osm.bz2 file : 66660001 to 66660010 (for example) et the one from bayern.osm.bz2 from 66660011 to 666600xx
Thank you. Francois
I have never tried, but I don't think this is possible. Why do you not use two separate runs? The first one splits baden-wuertemberg into 10 tiles (for example) . If you start the second run with --mapid=66660010 you will get the wanted result.
Yes, but I have to know first how many tiles the first run will give me. As the files are growing day after day, I could overwrite one of the resulting file. A possibility to give more than one osm.bz2 to the splitter could make the process more secure. Francois

On 08/14/2010 03:55 PM, frmas wrote:
Yes, but I have to know first how many tiles the first run will give me. As the files are growing day after day, I could overwrite one of the resulting file.
Why can't you use the numbers like this: baden_wuerttemberg.osm.bz2: 66660001 to 66660010 bayern.osm.bz2: 66660100 to 666601xx

Hello Francois, You can split mutliple files in the same run no problem (using the same syntax as in your example), but there's no way to control what map IDs are assigned to which tiles. In fact it's quite likely that at least one tile (probably more) will contain nodes from BOTH osm files, so numbering the tiles based on their source osm file isn't possible. If you really want the tiles to be specific to a particular osm file and numbered a certain way, then you'll need to take Johann's advice and run the splitter once for each source file instead. Chris
Hello,
I would like to know if it's possible to run the splitter against two or more files on the same run? For example, is is possible to run splitter that way :
java -Xmx896m -jar splitter.jar --cache=~/tmp --geonames-file=cities1000.zip --max-areas=30 --max-nodes=1000000 --description="OSM Map" --mapid=66660001 baden_wuerttemberg.osm.bz2 bayern.osm.bz2
I need the files produced by splitter to be numbered that way : the ones from the baden_wuerttemberg.osm.bz2 file : 66660001 to 66660010 (for example) et the one from bayern.osm.bz2 from 66660011 to 666600xx Thank you. Francois

You can split mutliple files in the same run no problem (using the same syntax as in your example), [...] In fact it's quite likely that at least one tile (probably more) will contain nodes from BOTH osm files, [...]
Be carefull with this maps. It is a known issue, that routing over the borders of two excerpts of geofabric will not work. So even when you get a single tile with nodes from both files, there are problems to be expected. The background is, that the last segments of streets are missing at the borders of the geofabric regions. A better solution would be to take the germany.osm and use only the needed tiles.

Le 14/08/2010 17:41, Johann Gail a écrit :
You can split mutliple files in the same run no problem (using the same syntax as in your example), [...] In fact it's quite likely that at least one tile (probably more) will contain nodes from BOTH osm files, [...]
Be carefull with this maps. It is a known issue, that routing over the borders of two excerpts of geofabric will not work. So even when you get a single tile with nodes from both files, there are problems to be expected. The background is, that the last segments of streets are missing at the borders of the geofabric regions.
OK, didn't know that. Thank you. I've never been successful with routing using my maps on my Oregon 450. This is the way I create my routing map, but it doesn't work. I must do something wrong. This is part of my script file : OPTIONS_MKGMAP_ROUTING=" \ -Xmx896M \ -jar $FILEDIR/mkgmap.jar \ --adjust-turn-headings \ --check-roundabouts \ --check-roundabout-flares \ --draw-priority=1 \ --family-id=888 \ --ignore-maxspeeds \ --ignore-turn-restrictions \ --latin1 \ --link-pois-to-ways \ --location-autofill=1 \ --mapname="88880000" \ --remove-short-arcs \ --report-dead-ends=1 \ --road-name-pois=0x2f15 \ --route \ --style-file=$FILEDIR/styles/routing \ --transparent \ " java $OPTIONS_MKGMAP_ROUTING --description="$description_routing_map" $CARTESDIR/8888*.osm.gz I use to map specialy hiking trails. I do not know if it's possible to use routing thru trails and paths across mountains. Francois

I use to map specialy hiking trails. I do not know if it's possible to use routing thru trails and paths across mountains. Francois
In general it should be possible to route about trails and paths. For this you have to define the correct access rights for this ways in the types file. But I'm no expert at this. Regards, Johann

Le 15/08/2010 15:38, Johann Gail a écrit :
I use to map specialy hiking trails. I do not know if it's possible to use routing thru trails and paths across mountains. Francois
In general it should be possible to route about trails and paths. For this you have to define the correct access rights for this ways in the types file. But I'm no expert at this.
I'm not an expert at all :-) but a newbie. I want to make maps to help people mostly seniors and who are not sport addict to walk thru middle high mountains. I would like the routing to work that way, but I don't know if it's possible : Three different routes : path, track and route. Preference goes for paths, then tracks and routes if nothing else is useable (because route is not my favorite). Path is my best choice, if there is no subtag to "path" or if the subtag "sac_scale" is setted to "hiking", and if the distance is less than another route thru a track. If the distance is less using a track, then I use the track. If a track has a subtag "sac_scale", it must be the same rules than above. If a path has a subtag "sac_scale" different than "hiking", don't route thru it. Same for a track of course. If it's not possible to route using a path or a track, then we have to use routes, but unclassified, and tertiary ones, would be the only ones to use. I read openstreetmap wiki mkgmap/routing and maybe my problems could be because a track is setted to type 0x0a and path to type 0x16 in my style and TYP files. Maybe I should assign different type to the paths and tracks depending on their subtags. But how to prefer a path to a track, and a track to a route, I don't know if it's possible. Francois --

On 08/15/2010 10:59 PM, frmas wrote:
I read openstreetmap wiki mkgmap/routing and maybe my problems could be because a track is setted to type 0x0a and path to type 0x16 in my style and TYP files. Maybe I should assign different type to the paths and tracks depending on their subtags.
If my memory serves correctly, both are routable types and there should be no problem.
But how to prefer a path to a track, and a track to a route, I don't know if it's possible.
If you need no road routing you could use road_class for preference. Garmin seems to prefer higher road_class (or even ignore lower classes if there are lots of roads). That seems to be the reason why Garmin routes so easily bicycles through major roads (with high road_class) even if you ask for the shortest route. If the road network is large, a lot of high class roads can lead into excessively long route caculation time (or even a failure). I used that in my try to route bicycle better. Unfortunately the long calcultion time was a huge problem with lots of cycleways on a long route. My test route (about 17km in Helsinki) lead to calculation time (and recalculation!) of about 2-3 minutes on my Oregon 550 when all the paved cycleways had been elevated to road_class 3 or 4. The route preferred cycleways over larger car roads (with road_class lot less than 4) though. With shorter routes or less dense road network (like some hiking area) this is probably not as huge problem. Doing that would break car routing also (because you'd have to classify them a lot lower than the preferred types). -- Harri
participants (5)
-
Chris Miller
-
frmas
-
Harri
-
Johann Gail
-
Ralf Kleineisel