-
Notifications
You must be signed in to change notification settings - Fork 5
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
Mixed up terminology of Coords #26
Comments
Thanks for opening this issue, but I don't think this is correct. There are multiple factors:
Am happy to hear your further thoughts on this. |
I hear your arguments. I think my point is way more shallow, since it only targets this projects variable names: Commonly If I just follow your example: // Start with Zürich's WGS84 latitude/longitude.
zurich4326 := proj.NewCoord(47.374444, 8.541111, 408, 0) and redo the transformation, assuming But, if I don't read your example carefully and only look at the signature I didn't come here to tell you, you're doing something wrong, since your project works fine, if I accept That's why the proposed change in #27 only renames variables locally in |
Thanks for the follow-up. It's unfortunate that there is no consistency in either axis naming or axis order, and I don't think this can be fixed simply, so I think it has to be the user's responsibility to get the axis naming and order right. |
https://gisgeography.com/latitude-longitude-coordinates/ rust proj bindings do as I proposed. https://gisgeography.com/latitude-longitude-coordinates/ sources like this do it as I proposed. GIS World is pretty consistent in axis naming. So nothing unfortunate about it and it could be fixed easily. But you do you, no problem. |
|
This project has an uncommon assumption regarding
x/y
&latitude/longitude
terminology.go-proj declares a coordinate x/y, while proj itself uses latitude/longitude and commonly x translates to longitude, y to latitude.
So if one calls
NewCoord(x,y)
withNewCoord(longitude,latitude)
, the result will be misplaced.From the
README.md
one could guess that for this project it is x==latitude. But this breaks with the general assumption of x==longitude (which is not standardized properly) (gis stackoverflow discussion)I think that also explains #13 even though I did not try to reproduce it.
The text was updated successfully, but these errors were encountered: