airsalliance / airs-xml

Automatically exported from code.google.com/p/airs-xml
Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

Ensure Longitude values are in Western hemisphere #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In a number of AIRS XML exports we've seen from another vendor, the Longitude 
values are all positive numbers without the W designation to indicate Western 
hemisphere.

The schema should clarify the expected values here. Either require prefixing 
Longitude with a minus sign (preferred), or append N to Latitude and W to 
Longitude. Both are accepted standards (see here: 
http://en.wikipedia.org/wiki/ISO_6709), one should be chosen for the schema and 
enforced by the validator.

It may sound trivial, and we have already modified our code to account for 
this. But it could cause issues for other systems doing importations and then 
trying to sort by proximity, for example.

Original issue reported on code.google.com by bleeb...@gmail.com on 9 Dec 2011 at 9:44

GoogleCodeExporter commented 9 years ago
We think that the longitudes included should be actual - so if the longitude is 
negative, then make sure you send a negative number.  All Western longitudes 
should have a negative number.  We agree that there should be a regex for these 
values to ensure proper validation. 

Original comment by gglbwmn2...@gmail.com on 18 Jan 2012 at 5:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Voted for implementation, and in 3.1 release.  Simple regex requiring a sign 
prefix.  Everything else left the same, so it is a simple decimal type, as 
before, otherwise.

Original comment by e...@ejahn.net on 23 Feb 2012 at 3:48