Routable map making

O narzędziach do tworzenia własnych map, takich jak MapEdit czy cGPSmapper, a także o serwisach udostępniania, wymiany i przetwarzania danych geograficznych takich jak MapCenter, OpenStreetMap czy SDD (SRTM). Ogólnie, o wszystkim co związane z radością UMPowania.
dasorsan
Początkujący
Posty: 11
Rejestracja: 06 wrz 2009, 22:54

Routable map making

Post autor: dasorsan »

Sorry for writting in english, i have no idea of polish

I have no experience in making routable maps. I want to extract the routing information from a routable img map and embed it into another topo map. To do this, I open the routable img map in Mapedit, correct the errors (split roads that intersect themselves,etc), and save as MP polish format. This MP text file contains all the routing information and according to cgpsmapper tutorial it can be used as a source to create a routable map. So, I add this routing MP to my MP topo map and then compile into img with a routable version of cgpsmapper, getting my new routable img topo map. It works with the lastest versions of cgpsmapper an Mapedit but in some cases, if the routing img file (the one i use to extract the routing information) is too big, a compiling error occurs:

Error E401: RoadID value cannot be bigger than 1048575 (0xFFFFF)

However, in the cgpsmapper input data format tutorial i read that the maximum allowed value for RoadID is 16777215. Someone knows what is wrong? Is this method valid? I have never used MapRoute program and i dont know how it works, but, could it correct this error?

Thanks in advance
frasun
Radny
Posty: 3619
Rejestracja: 16 mar 2007, 08:34

Re: Routable map making

Post autor: frasun »

I do not fully follow what are you trying to achieve.
Coping some elements from one mp file to another will not copy routing data and opening img files in MapEdit do not open routing data included in that file. So your approach is WRONG.
Routing can be generated and tested in MapEdit -> Tools --> Generate Routing Graph.
Regards,
Piotrek
Obecnie Nuvi 3790T/
3490 (UMP, CNE 2013.30, GPMapa 2010.3) + Smartphone Link - Live Traffic & Safety Cameras
Obrazek
dasorsan
Początkujący
Posty: 11
Rejestracja: 06 wrz 2009, 22:54

Re: Routable map making

Post autor: dasorsan »

i swear i have extract the roads from a routable img, save as MP with Mapedit and then recompile to another routable img with a routable version of cgpsmapper.

Maybe with old versions of Mapedit does not work, but al least with last version of Mapedit (even the free one) you can open a routable img with all its routing info and then save as MP preserving all the routing info too, wich can be used to create a routable map with cgpsmapper. Am i wrong?

So, the idea is to extract routable info from a map and embed it into another map.

BTW, I dont want to steal Intelectual Property of someone else, just want to make some test. In another forum someone accused me to try to steal IP, even witout asking me from what map i want to get the routing info or what my purposes are
Awatar użytkownika
Alf/red/
Radny
Posty: 1068
Rejestracja: 16 mar 2007, 10:27
Lokalizacja: Szczęśliwice
Kontakt:

Re: Routable map making

Post autor: Alf/red/ »

I have a feeling you think that the map info (eg. road) is a bit separated from routing info (in that position you can/cannot turn right). But this routing info is, simply saying, based on roads. So you cannot copy "routing information" without copying the map data in fact. It would be better to make your original topo map routable without all that magic with another map. Just connect the roads on your map (there are some, right?), generate the routing data with mapedit, and try co compile with routable version of cgpsmapper.
Alf/red/ + jutrzejsze UMP-pcPL + nüvi 360/CNE2008 + nüvi 765/CNE2010 + Vista HCx.
Obrazek
dasorsan
Początkujący
Posty: 11
Rejestracja: 06 wrz 2009, 22:54

Re: Routable map making

Post autor: dasorsan »

I had forgot about this issue, but now I have taken up again the problem of extracting the routing info of roads from an img map in order to embed it in a custom topographical map. I know that routing info is not separated of geographic info and it is just another atributte of the line, like "label" or whatever.

My topo map have no roads, I want to get them from an routable img map and embed them in my topo map. MapEdit is able to read the routing info from an img map and save it in polish format with nodes, speeds, road classes, restrictions, etc. .. So, it is possible to add to my topo map those routables roads in polish format. That was the idea, not magic!

But the problem I faced was that when i tried to compile the routable mp map with cgpsmapper, it said "Error E401: RoadID value can not be bigger than 1048575 (0xFFFFF)"

The solution is to rename in mp file all RoadID atributtes of roads to be RoadID = 1, RoadID = 2, RoadID = 3, and so on. I have done a little application to do it.

Once RoadID's are fixed in the mp map, then you have to do:

cgpsmapper shp mymap.mp -> maproute config.ini 15 -> you get a new mp routable map ready to compile. But now, you shouldn't use MapEdit to change levels or change [IMG] - [END] section of this new mp routable map, because it breaks routing info, i dont know why ... Use a text editor if you want to change whatever

After compiling with cgpsmapper you get a routable img map: road are routables and "one way" roads, speeds, roads clases ... are maintained but you will loose restrictions if they were in the source file img
ODPOWIEDZ