PDA

View Full Version : Fixing map compilation errors



lurkin
25-05-2010, 03:34 PM
Error R014: Several DataX for routable roads not permitted!



This occurs when a polyline is broken up into more than one non contiguous polyline (or non connecting polyline).
The error message box from cgpsmapper is shown in the diagram


Only the registered members can see the link (Only the registered members can see the link)




Note this is not the same as “spliting polylines” – which is ok.
This causes compilation to stop and crash and won’t continue until it is fixed.




To find where it is on the map



Click ok on the error message box


Only the registered members can see the link (Only the registered members can see the link)
No point in reporting it, best to find the error and fix it yourself!!!




Double click on the compiler box which should take you to the line where the error occurred.



Only the registered members can see the link (Only the registered members can see the link)




Highlight and copy a set of coordinates such as 17.99075,102.61421 in the example



Close both the cgpsmapper box



Go back to the source file and press “CTRL+G” to “Go to Position” and paste the coordinates that you have copied into the box.You should then be taken to the polyline that caused the problem




How to fix this error






To do this, Tools – Select Objects



Click on the Polyline which should turn magenta



Right click and you should notice that “Extract All Elements” is bolded indicating that there is a problem with this polyline where there are more than one element.


Only the registered members can see the link (Only the registered members can see the link)


Just to confirm this (you don’t need to do this everytime – this is just for illustrating this tutorial), click on Properties, then select Elements tab


Only the registered members can see the link (Only the registered members can see the link)



You will notice that there are three sets of data for this one polyline and it is not a continuous line.


Eg There is more than one set of Data0=….. line within the same polyline, these must be removed



Click Close and then click on the line again to select it



Right click again



Click on “Extract All Elements” and this should fix the problem



That’s all you need to do.


The problem with a file that has multiple instances of this is that you will need to re-run the compiler after fixing one error polyline and wait for it to report another instance and go through all the steps above to fix it before continuing.

Just imagine doing this through Mapcenter2 – it will take days or weeks to get a finished product!

This iterative process is very time consuming if you have many instances of this problem.

I do hope that someday, GPSMapedit adds a functionality under the Tools – Verify Map to check for this to allow a mapper to eliminate these errors before sending the file for compilation.

Alternatively, you could search for these lines using a text editor but searching for multiple Data0=xx line within [polyline] and [end] tags require some programming knowledge and a customised script to do that

Anyone out there able to help write this? :-)

This is what the SOURCE DATA looks like in a text editor (like Editpad Lite)

[POLYLINE]
Type=0x5
EndLevel=2
CityIdx=7
RoadID=12030
RouteParam=3,0,0,0,0,0,0,0,0,0,0,0
Data0=(18.02133,102.61046),(18.02146,102.61080),(1 8.02231,102.61154),(18.02162,102.61304)
Nod1=0,236539,0
Nod2=3,236538,0
Data0=(18.01393,102.60218),(18.01456,102.60254),(1 8.01498,102.60286),(18.01541,102.60324),(18.01582, 102.60369),(18.01643,102.60440),(18.01655,102.6045 9),(18.01685,102.60485),(18.01711,102.60506),(18.0 1736,102.60507),(18.01764,102.60498),(18.01783,102 .60482),(18.01827,102.60476),(18.01855,102.60494), (18.01867,102.60535),(18.01918,102.60685),(18.0197 9,102.60737),(18.02015,102.60781),(18.02073,102.60 947),(18.02133,102.61046)
Nodes1=(0,236552),(19,236539)
Data0=(18.00955,102.59857),(18.00977,102.59852),(1 8.01105,102.59955),(18.01147,102.59989),(18.01197, 102.60041),(18.01220,102.60068),(18.01261,102.6014 2),(18.01287,102.60173),(18.01386,102.60216)
Nodes2=(0,21852),(7,236543),(8,236553)