-
Notifications
You must be signed in to change notification settings - Fork 289
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
How to parse the scaling ratio and horizontal rotation angle of 3dtiles data #757
Comments
I'm not sure what you mean. If your data set is specified at a lat / lon then typically it would be positioned at the correct location on the globe, already. If your method for processing just produced lat / lon to place it at then you'll need to know what coordinate frame orientation relative to the globe ellipsoid it was produced in. As the question template states - please include a link to a project or data. Otherwise I have to guess at what you're referring to. |
I use the geo-tree library to display the map, which is flat. Then, I parse tileset.json to obtain latitude and longitude, and overlay the 3D tiles model on the map. However, the horizontal rotation angle and scaling ratio of the model are incorrect and cannot match the map. My code example is as follows:
|
I'm happy to help but please make things easy to understand. Pasting 300 lines of code with no imports or data, as I asked for, is not something I can to spend time digging in to to understand or figure out how to run. If you're just asking how to extract a coordinate frame from a lat / lon position you can use the Ellipsoid.getEastNorthUpAxes or getEastNorthUpFrame function to get a matrix with orthogonal vectors for the eastern and northern directions in X and Y respectively. These functions aren't currently documented but a Regarding the scale differences this is going to depend on the 2d projection of your map. The scale will change depending on the location of the tile set due to the projection but that's outside the scope of this project. Otherwise if you'd like help please make a simple, live code example using something like codesandbox or jsfiddle including all the data necessary and the specific portion of code you have a question about made clear. |
Hello, I can currently load 3dtiles data, but I don't know how to overlay the local 3dtiles model with the satellite map. Currently, I have parsed the latitude and longitude of the model from tileset.json, but I don't know how to parse the scaling ratio and horizontal rotation angle of the model. So, I would like to ask for advice. Thank you!
The text was updated successfully, but these errors were encountered: