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

Vector data precision question. #391

Closed
zero406-CC opened this issue Nov 1, 2019 · 1 comment
Closed

Vector data precision question. #391

zero406-CC opened this issue Nov 1, 2019 · 1 comment

Comments

@zero406-CC
Copy link

I'm sorry to bother,but I have a question about 3dtiles vector data(*.vctr),I found the float32 precision is not enouth by using the following test data.
the right rendering effects is a smooth arc line,in fact the cesium rendering effects is not like that.
In addition I found the zigZag precision is not enough too。Is there any suggestions?
Best regards.
John.
var tuBuffer = [1.7888602042793667,
1.7888602218491425,
1.7888602394189008,
1.7888602569886767,
1.7888602745584525,
1.7888602921282108,
1.7888603096979867,
1.7888603272677623,
1.7888603448375382,
1.7888603624072965,
1.7888603799770724];

    var tvBuffer = [0.44911867002003503,

0.44911862847305678,
0.44911858692608042,
0.44911854537910401,
0.44911850383212581,
0.4491184622851494,
0.44911842073817126,
0.44911837919119485,
0.44911833764421838,
0.4491182960972403,
0.44911825455026388];

    var thBuffer = [2008.0976503798699,

2008.03930909731,
2007.9940567584999,
2007.96180013509,
2007.9424727723599,
2007.93603485229,
2007.94247311154,
2007.9618008141499,
2007.99405777883,
2008.03931046102,
2008.09765208978];

@lilleyse
Copy link
Contributor

Hi @zero406-CC - part of the problem is that the legacy vctr format only stores uint16 quantized values. A new vector format (CC #25) will likely offer at least float32 precision. In the meantime you can try makes your tile sizes smaller.

The results may vary for cartographic values but for float32 cartesian values you can get centimeter precision at roughly 131,071 meters when positions are defined relative to a center point. See https://help.agi.com/AGIComponents/html/BlogPrecisionsPrecisions.htm.

@lilleyse lilleyse mentioned this issue Nov 15, 2021
15 tasks
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