-
Notifications
You must be signed in to change notification settings - Fork 34
Useful Tools
Lenny edited this page Jan 9, 2023
·
6 revisions
Sector coordinates can be converted from the coordinates in .ese files using the following regular expressions (in Visual Studio Code's Find/Replace function).
- North & West
COORD:N0([0-9]{2})\.([0-9]{2})\.([0-9]{2})\.([0-9]{3}):W([0-9]{3})\.([0-9]{2})\.([0-9]{2})\.([0-9]{3})
["$1$2$3","-$5$6$7"],
- North & East
COORD:N0([0-9]{2})\.([0-9]{2})\.([0-9]{2})\.([0-9]{3}):E([0-9]{3})\.([0-9]{2})\.([0-9]{2})\.([0-9]{3})
["$1$2$3","$5$6$7"],
- South & West
COORD:S0([0-9]{2})\.([0-9]{2})\.([0-9]{2})\.([0-9]{3}):W([0-9]{3})\.([0-9]{2})\.([0-9]{2})\.([0-9]{3})
["-$1$2$3","-$5$6$7"],
- South & East
COORD:S0([0-9]{2})\.([0-9]{2})\.([0-9]{2})\.([0-9]{3}):E([0-9]{3})\.([0-9]{2})\.([0-9]{2})\.([0-9]{3})
["-$1$2$3","$5$6$7"],