Skip to content

LukeMcNemee/projekt_secure_coding

Repository files navigation

Program for parsing GPS coordinates in various formats. Output is a simple map in SVG. Coordinates can be read from files given as the command line parameters. If one of the files does not exist, program ends. If no file is set as the parameter, another option for entering coordinates is standard input.

Supported formats:

ddd:mm:ss[NS] ddd:mm:ss[WE]
ddd:mm.mmmmm[NS] ddd:mm.mmmmm[WE]
ddd°mm'ss"[NS] ddd°mm'ss"[WE]
ddd°mm.mmmmm'[NS] ddd°mm.mmmmm'[WE]
ddd.dddddd[NS] ddd.dddddd[WE]
ddd.dddddd°[NS] ddd.dddddd°[WE]

(-)ddd:mm:ss (-)ddd:mm:ss
(-)ddd:mm.mmmmm (-)ddd:mm.mmmmm
(-)ddd°mm'ss" (-)ddd°mm'ss"
(-)ddd°mm.mmmmm' (-)ddd°mm.mmmmm'
(-)ddd.dddddd (-)ddd.dddddd
(-)ddd.dddddd° (-)ddd.dddddd°

[NS]ddd:mm:ss.sss [WE]ddd:mm:ss.sss
[NS]ddd:mm.mmmmm [WE]ddd:mm.mmmmm
[NS]ddd°mm'ss" [WE]ddd°mm'ss"
[NS]ddd°mm.mmmmm' [WE]ddd°mm.mmmmm'
[NS]ddd.dddddd [WE]ddd.dddddd
[NS]ddd.dddddd° [WE]ddd.dddddd°

Range of input values:

  • degrees: ** 180 W (-180) - 180 E (180) ** 90 N (90) - 90 S (-90)

  • minutes: ** 0 - 59.99999

  • seconds ** 0 - 59

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published