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

UTM - is the zone part of the coordiate or not? #6

Open
judgej opened this issue Oct 24, 2015 · 2 comments
Open

UTM - is the zone part of the coordiate or not? #6

judgej opened this issue Oct 24, 2015 · 2 comments

Comments

@judgej
Copy link
Owner

judgej commented Oct 24, 2015

This one has me scratching my head a little.

Inherited from Proj.4 and all its successors to this point, a UTM zone is a part of the projection and NOT a part of the coordinate, This means you set up the projection for a single zone, then run all your conversions through that. That is kind of okay when you are going from UTM to another coordinate system, but not the other way around, since you don't know the zone of a longitude until you pass it to the projection to work it out (okay, you can work it out, but the point is, you should not have to do a part of the projection's work to find it out what parameters it needs for a coordinate before you can even create the projection - it seems back-to-front).

So my approach will be to allow you to set the zone for a projection if you ave a bunch of coordinates to transform, but allow the coordinate to define the zone and that takes precedence. An x/y coordinate from a UTM projected map is of no use without knowing this additional information (i.e. which hemisphere and/or MGRS latitude zone, and which longitude zone the x/y is bound to).

@judgej judgej changed the title UTM - is teh zone part of the coordiate or not? UTM - is teeh zone part of the coordiate or not? Oct 24, 2015
@judgej judgej changed the title UTM - is teeh zone part of the coordiate or not? UTM - is the zone part of the coordiate or not? Oct 24, 2015
@judgej
Copy link
Owner Author

judgej commented Oct 24, 2015

I think the approach Proj.4 has taken is that a user will be driving the transformation commands by hand, and will know exactly what they are putting in and getting out. They can pass in lists of context-less decimals and know what is going to happen to them. My approach here is to put more type checking and bound restrictions on everything, so exceptions are raised when silly things are being done, and also all data has context, so that transformations can be sensibly chosen by the code where appropriate. For example, converting an Geodetic coordinate to an Geodetic coordinate will result in no conversion, because the code can see that a Geodetic coordinate has been supplied and needs no further conversion.

@judgej
Copy link
Owner Author

judgej commented Mar 30, 2016

I suspect the zone is a part of the projection, but the projection instance MUST be a part of a UTM projection point.

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