mapper icon indicating copy to clipboard operation
mapper copied to clipboard

XML format for Vikazimut

Open Eric-P-Kmz opened this issue 1 year ago • 5 comments

Steps to reproduce

We have continued to improve the link between OOM and Vikazimut for creating routes from OOM. 1 - We've managed the differences between the IOF and OOM formats in the XML file, but the map scale is missing from your XML.

2 - Would it be possible to create multiple races in one XML?

3 - If you can make it easier to create the definition table, it would remove a big drawback to creating courses under OOM.

Actual behaviour

2 - Only one race in XML

3 - No GUI to build the definition table

Expected behaviour

1 - Is it possible to add this tag to the XML? RaceCourseData> Map> Scale>10000 /Scale> /Map> ... /RaceCourseData>

2 - Create multiple <Course> tags in the XML file 3 - Create a GUI for the definition table

Configuration

Mapper Version: 0.9.5 Operating System: Windows

Eric-P-Kmz avatar Jul 05 '23 08:07 Eric-P-Kmz

@Eric-P-Kmz: I added a PR that adds the map scale to the XML. It was also necessary to add the top left and bottom right positions to get an IOF compliant XML. You can use one of the created artifacts from the Azure Pipeline to test the XML output with Vikazimut.

dl3sdo avatar Jul 06 '23 20:07 dl3sdo

Hello,

We have just tested this new version. No more errors. I'm preparing a video to show how to create a course with OOM and export it to Vikazimut. Thanks

Eric-P-Kmz avatar Jul 12 '23 08:07 Eric-P-Kmz

Regarding topic 2 (multiple races in one XML): You propose that it should be possible to create multiple, e.g., 'Simple Orienteering Course' objects and export them as multiple < RaceCourseData> elements of the same < Event> ?

dl3sdo avatar Jul 12 '23 14:07 dl3sdo

Yes, that's right. You'd have to be able to name 'Simple Orienteering Course' objects to do that . OCAD XML exemple Course> Name>Chasse</Name> Length>2630</Length> Climb>0</Climb> CourseControl type="Start"> <Control>S1</Control> </CourseControl> <CourseControl type="Control"> <Control>31</Control> <LegLength>34</LegLength> </CourseControl> CourseControl type="Finish"> Control>F1</Control> LegLength>63</LegLength> /CourseControl> /Course>

Course>
  Name>Vert - facile</Name>
  Length>1300</Length>
  Climb>0</Climb>
  CourseControl type="Start">
    Control>S1</Control>
  /CourseControl>
  CourseControl type="Control">
    Control>31</Control>
    LegLength>34</LegLength>
  /CourseControl>
  CourseControl type="Finish">
    Control>F1</Control>
    LegLength>175</LegLength>
  /CourseControl>
/Course>

Eric-P-Kmz avatar Jul 19 '23 20:07 Eric-P-Kmz

@Eric-P-Kmz, it seems as if your example however contains one race with two courses.

Currently, Mapper's IOF export allows a single race that contains a single course. In general you could have one or more races that consist of one or more courses.

I think that we could use object tags to associate line objects with races and courses in order to avoid complex GUI.

Is Vikazimut using the 'Length' element for courses? It's not a problem to add this to a course if the length should just be the nominal length of the line object.

dl3sdo avatar Jul 21 '23 09:07 dl3sdo