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

gerented bounding volume(region) has reversed dimension and direction #29

Open
CrashedBboy opened this issue Sep 6, 2018 · 2 comments

Comments

@CrashedBboy
Copy link

var height = minmaxPoint.max[2] - minmaxPoint.min[2];

the indice of Height and Y are wrong.

Line 31 should be minmaxPoint.max[1] - minmaxPoint.min[1];
Line 35 should be var offsetY = height / 2 + minmaxPoint.min[1];
Line 40, 41 should be minmaxPoint.min[2] and minmaxPoint.max[2]

var south = latitude - latitudeExtent / 2 - offsetY / tileHeight * latitudeExtent;

Line 62 should be + offsetY / tileHeight * latitudeExtent;
Line 64 should be + offsetY / tileHeight * latitudeExtent; (use plus sign instead of minus sign)

@petergerten
Copy link

My output seems to be tilted 90 degrees on the roll axis.
I tried your patch but it seems it did not make a difference.

@hy785737396
Copy link

it works well, thanks

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

3 participants