Hi all
I've followed the advice here: 'MapRun needs the coordinate system to be set to UTM/WGS84. Select the applicable Zone and Hemisphere relating to the location of your map.' It appears that Lincoln, UK is in Zone 30 North and I've set it to such. However, when I export the course file from OCAD to XML and then convert to a KMZ file, Google Earth shows my controls just off the west coast of Africa! Not sure what I'm doing wrong here... Paul |
Paul,
Not sure if I can actually help as I'm not sure I understand which set of tools you are using (that and I do not use OCAD for course setting). However, this has never stopped me from trying! What utility are you using to convert the XML to KML. The older 0-utils.cgi (Convert Georeferenced IOF XML Course File to KML Course Files (in a Zip file)) only works with XML V2 (that by default is UTM based). In addition, I know the Purple Pen, when exporting a XML V2 file does not include a line (above the <Document> tag) that specifies the UTM zone so this needs to be added: Without this line the o-util will fail with an error. I do not know if this is missing from an OCAD generated course XML so you might want to check the XML and make sure it is correct (but it is unlikely to be missing if you are not getting an error). There is a utility on the Maprun Console page (don't need to be an admin) to "Create KML Course" with the option to load up an XML course file (V3) and produce a KML. Although marked as 'Beta' it seems to work fine. The main point of this utility is to actually make a course quickly but you can just upload the XML and then not change anything to produce the KML. You could try exporting the XML from OCAD in V3 format and convert. "OCAD to XML and then convert to a KMZ file" - do you mean "to a KML file"?? "MapRun needs the coordinate system to be set to UTM/WGS84" - where is this coming from? If you want to post the files (XML and KML) I'd be happy to take a better look at them (or others might be able to help. I think some more details on the steps and utilities you are using might also help. Michael |
Hi Michael
Thanks for the response - I'm using a geo-referenced master map from within OCAD 12 for the course setting. I'm using the link as provided by the MapRun guide to converts the version2 XML to a KML file: http://www.p.fne.com.au/rg/cgi-bin/o-utils.cgi To answer your question - "MapRun needs the coordinate system to be set to UTM/WGS84" - where is this coming from? This is from the guidance at the top of this page here: https://maprunners.weebly.com/ocad-maps-and-courses.html. When I've left the map in it's default state of 'British National Grid' it comes up with an error when I attempt to convert the XML to a KML file. I've attached the KML file for the long course here - convertedIOFXML__Long__715234334887104.kml Cheers P. |
Just to be clear, although the o-util function needs to have the XML in V2 format (which is UTM), the converted KML will be in lon lat. The KML file you posted is (as you know) wrong and should be something like (-2.799,54.045 Lon Lat). Can you link to the resulting OCAD XML file? Have you checked the coordinates in it (should be UTM X,Y 513123,5988551 -rough example).
As I mentioned, I do not use OCAD directly to course set. Pure speculation but is it possible you are messing up changing the Map from BNG to UTM? You have to be careful if you are importing a master in BNG but telling OCAD it is UTM rather than reading it then changing the coord system to use. Have you tried just leaving the OCAD coordinates alone and exporting the XML file as I would expect that OCAD will do the conversion during the export assuming it is properly exporting IOF XML files. I do have OCAD and will see if I can set a course in it - I'm curious. |
Hi Michael
I appear to have solved it by using the MapRun Console system that you suggested. I kept the OCAD master map and course file as the original co-ordinates and the British system and then exported to XML 3.0 and it worked a treat. Many thanks! P. |
Glad to hear. I did play a bit with the OCAD course setting and (at least version) has the export to KML as well as the XML. A quick look and it seemed to match the MapRun format so it can save another step. Just open the resulting file and double check that the coords look correct for LonLat in your area.
|
Free forum by Nabble | Edit this page |