FIXING cGPSmapper MAP COMPILATION ERRORS
This occurs when a polyline is broken up into more than one non contiguous polyline (or non connecting polyline).
This is the same error as:-
Error R014: Several DataX for routable roads not permitted!
In fact running a different cGPSmapper compiler version generates a different error message for the same error!
The rest of the article is the same as Error R014 with different screen shots - you can skip it if you have already read the R014 error article
The error message box from cgpsmapper is shown in the diagram below
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
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.
- Highlight and copy a set of coordinates
- 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 R019 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.
- 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
- You will notice that there are five sets of data for this one polyline when there should only be one!
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 "multiple dataX" 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? :-)
UPDATE MAR 2010 !
Actually, I found a way to seek out these error using a good text editor such as Notepad++ or Editpad Pro. Windows notepad or other similar editors won't cut it!
This is what the SOURCE DATA looks like in a text editor
Hint: Search for this using "regular expression".