574
edits
(→addSegmentGeo: Added list of commands) |
|||
Line 680: | Line 680: | ||
Coords is a vector with the numbers/coordinates that the command needs in GPS format. | Coords is a vector with the numbers/coordinates that the command needs in GPS format. | ||
The coords can for example be "E32.45" for latitude and "N45.34" for longitude. If an 'S' or 'W' is seen instead of E or N, the sign is flipped. | |||
See this list of all commands and how many coords they require. | |||
VG_CLOSE_PATH: 0, | |||
VG_MOVE_TO: 2, | |||
VG_MOVE_TO_ABS: 2, | |||
VG_MOVE_TO_REL: 2, | |||
VG_LINE_TO: 2, | |||
VG_LINE_TO_ABS: 2, | |||
VG_LINE_TO_REL: 2, | |||
VG_HLINE_TO: 1, | |||
VG_HLINE_TO_ABS: 1, | |||
VG_HLINE_TO_REL: 1, | |||
VG_VLINE_TO: 1, | |||
VG_VLINE_TO_ABS: 1, | |||
VG_VLINE_TO_REL: 1, | |||
VG_QUAD_TO: 4, | |||
VG_QUAD_TO_ABS: 4, | |||
VG_QUAD_TO_REL: 4, | |||
VG_CUBIC_TO: 6, | |||
VG_CUBIC_TO_ABS: 6, | |||
VG_CUBIC_TO_REL: 6, | |||
VG_SQUAD_TO: 2, | |||
VG_SQUAD_TO_ABS: 2, | |||
VG_SQUAD_TO_REL: 2, | |||
VG_SCUBIC_TO: 4, | |||
VG_SCUBIC_TO_ABS: 4, | |||
VG_SCUBIC_TO_REL: 4, | |||
VG_SCCWARC_TO: 5, | |||
VG_SCCWARC_TO_ABS: 5, | |||
VG_SCCWARC_TO_REL: 5, | |||
VG_SCWARC_TO: 5, | |||
VG_SCWARC_TO_ABS: 5, | |||
VG_SCWARC_TO_REL: 5, | |||
VG_LCCWARC_TO: 5, | |||
VG_LCCWARC_TO_ABS: 5, | |||
VG_LCCWARC_TO_REL: 5, | |||
VG_LCWARC_TO: 5, | |||
VG_LCWARC_TO_ABS: 5, | |||
VG_LCWARC_TO_REL: 5, | |||
== Map == | == Map == |
edits