-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Another polyline precision issue? #2375
Comments
A couple of issues are exposed here. First, removeDuplicates has created the condition (1 point left), so the item should simply not be drawn. Second, we should probably be as tolerant of "bad" data as possible. We could emit a GeometryError (or similar) exception in this case and let the application developer decide what to do. Alternatively, we could silently ignore the item. |
@GatorScott and I talked a bit offline, and perhaps our exceptions are not, well, exceptional enough in cases like this. For example, when the user gets data from the server and provides it to Cesium, is it really a |
Fix in above pull. |
@GatorScott @mramato Hey guys; I wanted to ask will this allow points in the line to be drawn? We have segments of polylines that are close and we are getting this error. Example (in web mercator although we are converting to geographic before pushing to cesium): I really appreciate your assistance. If not, what can we do to get these rendering? It is so essential for us... To be clear, we don't have these latest pulls but are receiving this error: TypeError: Cannot read property 'x' of undefined It seems like your fix will return undefined, however we need it to be drawn... Thanks! |
That doesn't look like the same issue as above, and you are also using a polyline volume, which is totally different than regular lines. Please update to the latest official Cesium version (1.5 as of this writing) and if the problem still persists, post about it on the forum, preferably with a small complete example to reproduce the issue. Please don't continue to comment on this issue, as it's closed and most likely unrelated. |
As seen on the forum. Our new duplicate removal changes in 1.5 are causing CZML files that used to work in 1.4 to now crash in 1.5.
@bagnell is this new behavior "correct" or are the tolerances still wrong in some places? If the behavior is correct, I should probably handle this somewhere in the entity pipeline to avoid throwing the exception; since we have a similar problem for KML.
Here's the CZML snippet that was provided.
Here's the same file, but with values pre-converted to Cartesian.
The text was updated successfully, but these errors were encountered: