
Hi, does mkgmap auto-merge points which have exactly the same coords? I though the remove-short-arcs option would do this, but last week I found a routing problem on a netherland motorway which was caused by such a double node and the map was created with the remove-short-arcs.... Chris

Hi Chris,
does mkgmap auto-merge points which have exactly the same coords?
I though the remove-short-arcs option would do this, but last week I found a routing problem on a netherland motorway which was caused by such a double node and the map was created with the remove-short-arcs....
Well, given that I have just found (and fixed) a bug in the line clipping code, I can't say for sure that it was working correctly before. It would be interesting to see if your example is OK with the fix in place (shortly to be committed). Cheers, Mark

Mark Burton schrieb:
does mkgmap auto-merge points which have exactly the same coords?
I though the remove-short-arcs option would do this, but last week I found a routing problem on a netherland motorway which was caused by such a double node and the map was created with the remove-short-arcs....
Well, given that I have just found (and fixed) a bug in the line clipping code, I can't say for sure that it was working correctly before. It would be interesting to see if your example is OK with the fix in place (shortly to be committed).
I tested with v1180. mgkmap don't seems to automerge points on the same coord. A----------way1------------XY--------------------way2----------------B X (endpoint of way1) and Y (startpoint of way2) having the same coordinate. Mapsource is not able to route from A to B directly. Chris

are there 2 points a XY? and you want to merge them? Then this is wrong input data and must be fixed in osm. mkgmap should never merge 2 points if they are on different ways. how can a tool decide that these ways are connected or not? often a layer tag or bridge tag is missing and routing from a bridge to the way under will be hmmm not so good. On 7 Sep 2009, at 12:39 , Chris-Hein Lunkhusen wrote:
Mark Burton schrieb:
does mkgmap auto-merge points which have exactly the same coords?
I though the remove-short-arcs option would do this, but last week I found a routing problem on a netherland motorway which was caused by such a double node and the map was created with the remove-short-arcs....
Well, given that I have just found (and fixed) a bug in the line clipping code, I can't say for sure that it was working correctly before. It would be interesting to see if your example is OK with the fix in place (shortly to be committed).
I tested with v1180. mgkmap don't seems to automerge points on the same coord.
A----------way1------------XY--------------------way2----------------B
X (endpoint of way1) and Y (startpoint of way2) having the same coordinate.
Mapsource is not able to route from A to B directly.
Chris
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Chris,m
does mkgmap auto-merge points which have exactly the same coords?
I though the remove-short-arcs option would do this, but last week I found a routing problem on a netherland motorway which was caused by such a double node and the map was created with the remove-short-arcs....
Well, given that I have just found (and fixed) a bug in the line clipping code, I can't say for sure that it was working correctly before. It would be interesting to see if your example is OK with the fix in place (shortly to be committed).
I tested with v1180. mgkmap don't seems to automerge points on the same coord.
A----------way1------------XY--------------------way2----------------B
X (endpoint of way1) and Y (startpoint of way2) having the same coordinate.
Mapsource is not able to route from A to B directly.
Sorry, I misinterpreted what you were saying. No, mkgmap does not merge points that have the same coordinates but belong to different ways. Personally, I don't think mkgmap should auto-connect ways, so I certainly won't be writing the code to do that. If the OSM data is wrong, tough! Cheers, Mark

Mark Burton schrieb:
A----------way1------------XY--------------------way2----------------B
X (endpoint of way1) and Y (startpoint of way2) having the same coordinate.
Mapsource is not able to route from A to B directly.
Sorry, I misinterpreted what you were saying. No, mkgmap does not merge points that have the same coordinates but belong to different ways.
Personally, I don't think mkgmap should auto-connect ways, so I certainly won't be writing the code to do that. If the OSM data is wrong, tough!
Okay, I see. In my example X and Y could have a different elevation (for example if there is a cliff). I was just wondering that OpenRouteService.org was able to route over such a spot. Chris

Mark Burton schreef:
The fact that other routing services choose to do that does not make me any more enthusiastic about the idea.
IMHO, if people want specific changes to their OSM data before rendering a map, it's pretty easy to do so. Merging different nodes on basis of some rule (the rule in this case being "coordinates are the same") could be one of these pre-processors. I agree that this should not be mkgmap's job. Another nice preprocessor I just made is (remove extra line feeds): sed 's/k="name" v="[^"]*\(straat\|plein\|hof\|dijk\|laan\|weg\|gracht\|vaart\| museum\|pad\|school\|college\|zicht\|groeve\|park\| Museum\| weide\|sluis\|singel\|haven\|sloot\|plantsoen\|kanaal\|kade\)"/k="name" v="Name Of Collegue\1"/' unpacked.osm > specialmap.osm This made a nice birthday map of the Netherlands; we had a good laugh over it. (Bonus is the fact that "card" and "map" are the same word in Dutch, so "birthday card" is the same as "birthday map" :) Replacing these words with their English (or other language) equivalent is left as an excercise to the reader. Also: if you can't find your way home afterwards, you'll have a great excuse. Best regards, Valentijn
participants (4)
-
Apollinaris Schoell
-
Chris-Hein Lunkhusen
-
Mark Burton
-
Valentijn Sessink