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

Custom projection for tile source #15

Closed
apachemaven opened this Issue Apr 2, 2014 · 7 comments

Comments

Projects
None yet
4 participants
@apachemaven

apachemaven commented Apr 2, 2014

Hi:

First, very glad to see that osmdroid being migrated to github. :)

I noticed that osmdroid use the projection class org.osmdroid.views.util.Mercator directly now, the projection is not bound with the tilesource or something else, but we have some tiles with another projection, so I wonder if we can use osmdroid to add them?

@neilboyd neilboyd changed the title from Custom project for tile source to Custom projection for tile source Apr 2, 2014

@neilboyd neilboyd added the question label Apr 2, 2014

@neilboyd

This comment has been minimized.

Show comment
Hide comment
@neilboyd

neilboyd Apr 2, 2014

Contributor

I seem to remember there was a discussion about this a while ago and the conclusion was that Mercator is a bit too fundamentally incorporated to allow another tile system.

Contributor

neilboyd commented Apr 2, 2014

I seem to remember there was a discussion about this a while ago and the conclusion was that Mercator is a bit too fundamentally incorporated to allow another tile system.

@apachemaven

This comment has been minimized.

Show comment
Hide comment
@apachemaven

apachemaven Apr 2, 2014

I am sorry if this is a duplicate issue, I have searched in the issue page in google code.

So that's to say I can not use other tile system? That's a pity.

apachemaven commented Apr 2, 2014

I am sorry if this is a duplicate issue, I have searched in the issue page in google code.

So that's to say I can not use other tile system? That's a pity.

@neilboyd

This comment has been minimized.

Show comment
Hide comment
@neilboyd

neilboyd Apr 3, 2014

Contributor

It's good that you raised it again because I also looked for the previous discussion and didn't find it, so maybe I'm mistaken and there was no discussion and it is possible. This remains a valid question.

Contributor

neilboyd commented Apr 3, 2014

It's good that you raised it again because I also looked for the previous discussion and didn't find it, so maybe I'm mistaken and there was no discussion and it is possible. This remains a valid question.

@kurtzmarc

This comment has been minimized.

Show comment
Hide comment
@kurtzmarc

kurtzmarc Apr 3, 2014

Contributor

My SafeCanvas_To_Projection_Changes branch really moves everything towards using the Projection class exclusively for coordinate system calculations. That should position us with less of a reliance on Mercator and allow someone to implement a custom tile projection by implementing their own Projection class. I am nearing completion on that and hope to merge it soon.

See #12

Contributor

kurtzmarc commented Apr 3, 2014

My SafeCanvas_To_Projection_Changes branch really moves everything towards using the Projection class exclusively for coordinate system calculations. That should position us with less of a reliance on Mercator and allow someone to implement a custom tile projection by implementing their own Projection class. I am nearing completion on that and hope to merge it soon.

See #12

@alex3305

This comment has been minimized.

Show comment
Hide comment
@alex3305

alex3305 Apr 25, 2014

Are custom projections already usable in the latest version of osmdroid? Or is there still work that has to be done?

If it's already usable, maybe you could update the wiki regarding how to use a custom projection.

alex3305 commented Apr 25, 2014

Are custom projections already usable in the latest version of osmdroid? Or is there still work that has to be done?

If it's already usable, maybe you could update the wiki regarding how to use a custom projection.

@kurtzmarc

This comment has been minimized.

Show comment
Hide comment
@kurtzmarc

kurtzmarc Apr 25, 2014

Contributor

I have merged my changes into trunk. Everything is using the abstracted Projection class so it shouldn't be necessarily tied to Mercator. From here, you should be able to subclass MapView and return your own custom projection in getProjection(). We don't officially support different projections, but we may be able to accommodate them. Give it a try and see how it works.

Contributor

kurtzmarc commented Apr 25, 2014

I have merged my changes into trunk. Everything is using the abstracted Projection class so it shouldn't be necessarily tied to Mercator. From here, you should be able to subclass MapView and return your own custom projection in getProjection(). We don't officially support different projections, but we may be able to accommodate them. Give it a try and see how it works.

@kurtzmarc

This comment has been minimized.

Show comment
Hide comment
@kurtzmarc

kurtzmarc Jun 4, 2014

Contributor

I am going to close this issue since #12 is complete. If you need additional assistance, please reopen.

Contributor

kurtzmarc commented Jun 4, 2014

I am going to close this issue since #12 is complete. If you need additional assistance, please reopen.

@kurtzmarc kurtzmarc closed this Jun 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment