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

2 problems of creating offline map . #6

Closed
CharlesQHappy opened this issue Oct 18, 2021 · 3 comments
Closed

2 problems of creating offline map . #6

CharlesQHappy opened this issue Oct 18, 2021 · 3 comments

Comments

@CharlesQHappy
Copy link

I followed the document in https://github.com/SimBlocks/OneWorldSDKforUnity/blob/main/docs/ExternalData.md to create offline imagery map. I could see the big picture, but still had 2 small problems.

  1. How to traverse all the Geodetic2d point of the whole Earth since it is a vector consisting of real numbers which has infinite amounts?
  2. After I got the GeoBoundingBox with the function TileToBounds, how could I get the corresponding PNG or JPEG image?
@CharlesQHappy
Copy link
Author

CharlesQHappy commented Oct 29, 2021

I have succeeded in resolving the second problem by twisting the "Export" function in the class "GeoOBJExporter". Now I can get the PNG when given column and row and level detail of a tile. But the 1st problem still exists, could you give some hint?

@CharlesQHappy
Copy link
Author

OK, I think I find a way to do that, I just traverse all the coordinate with a interval.

@SimBlocks
Copy link
Owner

Good job.

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

2 participants