Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confusing documentation for axis orientation #93

Open
jjanuszkiewicz opened this issue Aug 2, 2021 · 0 comments
Open

confusing documentation for axis orientation #93

jjanuszkiewicz opened this issue Aug 2, 2021 · 0 comments

Comments

@jjanuszkiewicz
Copy link

There are some inconsistencies and possibly errors in documentation related to axis orientation:

AxisOrientationEnum

AxisOrientationEnum.cs says that West is non-standard, but then goes to say that West is usually used and Easy is rare:

/// Orientation of axis. Some coordinate systems use non-standard orientations. 
/// For example, the first axis in South African grids usually points West, 
/// instead of East.

But:

    /// <summary>
    /// Increasing ordinates values go East. This is rarely used.
    /// </summary>
    East = 3,

    /// <summary>
    /// Increasing ordinates values go West. This is usually used for Grid X coordinates and Longitude.
    /// </summary>
    West = 4,

Wiki

Projecting points from one coordinate system to another says:

All transformations are done on double arrays, where the first value is primary axis (X/East/Latitude) and the second the secondary (Y/North/Longitude).

East should be Longitude, North should be Latitude. I'm not sure which coordinate should go first, but the example given on that Wiki page suggests that is should be longitude (120 is not a valid latitude value; this is assuming the example uses WGS84 or a similar system - this may be a wrong assumption):

double[] fromPoint = new double[] { 120, -3 };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant