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

Need spec for proj string #4

Open
mpgerlek opened this issue Apr 14, 2018 · 7 comments
Open

Need spec for proj string #4

mpgerlek opened this issue Apr 14, 2018 · 7 comments
Labels

Comments

@mpgerlek
Copy link
Contributor

We need to document what proj string keys we do / don't support.

@wonderchook
Copy link

@mpgerlek do you have an idea of what ones we should be initially supporting? Or does someone need to hunt this down?

@mpgerlek
Copy link
Contributor Author

@wonderchook If someone could provide me with a list of proj strings or EPSG codes that would be great. Proj4 can do a lot, and I just need to make sure the subset I've implemented will cover the use cases of interest to tegola...

@ARolek
Copy link
Member

ARolek commented Apr 17, 2018

The ones I can think about off hand are:

4326 / 3857
4326 / 3395
3857 / 3395

@mpgerlek can you give me a quick run down of how this works? Do you always need to know conversion pairs, or for the most part does everything convert to 4326 and then into another projection?

@mpgerlek
Copy link
Contributor Author

Right, @ARolek, that's the key question... Usually you're going to want to convert from 4326 (in degrees) to some other epsg code (in meters), and that's what the "minimal" API is for.

But, we can in theory do other sorts of conversions and transforms, too, with the right proj string(s).

I'll put 4326, 3857, and 3395 into the tests for the api package.

@mpgerlek
Copy link
Contributor Author

"3857 to 3395" would be one of the fancier cases, where we need to drop back to 4326 first. Not supporting those sorts of operations in general, but I can put in a special case for that one easily enough if you want.

@ARolek
Copy link
Member

ARolek commented Apr 17, 2018

3395 support is an outstanding request on tegola though I would suspect that the source data would be in 4326 if the end user wants to get to 3395 with minimal data loss. I was suggesting 3857 <-> 3395 to support all combos of those 3 codes.

I'm also interested in if the transformations are lossless or lossy. Do you know if the transformation is always lossy or can you convert back and forth between certain projection pairs without losing precision?

@mpgerlek
Copy link
Contributor Author

mpgerlek commented Apr 17, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants