vatSys / australia-dataset

9 stars 15 forks source link

Update FIR_BOUNDARIES.xml #10

Closed Kahn closed 3 years ago

Kahn commented 3 years ago

I'm writing a map that parses the FIR_BOUNDARIES file to get FIRs to filter the vatsim data API by location. I was getting weird results so I ended up inspecting each polygon and found this issue.

Not sure what the source data is for this file and if we'll just need to fix it upstream or each time the generator runs

vatpacais commented 3 years ago

Yeah, technically 180E and 180W are same. It was flipped to +180 as the database is optimised for VRC and Euroscope by converting all West longitudes to East (add 360 if < 0) as this is the only way to get these apps to behave when coordinates cross the 180 East West line. When converting back to +- Longitude, the preference is East so only > 180 are converted to West. Although not required for vatSys I've updated the master coord file to 1795959.999W so it will be converted to 180W

Kahn commented 3 years ago

Ahhh that makes more sense. I guess in this case then it's http://turfjs.org/ struggling as well. I'll retest with the new values