Unable to display 3D airspace hull over a city using pydeck #9945
Unanswered
asourabh-airnav
asked this question in
Q&A
Replies: 1 comment
-
|
Can pydeck be used to display free floating hulls over maps? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to display 3D hulls (e.g.: a particular volume of air, between certain altitudes or certain locations, but the volume is not a simple cuboid) using pydeck. I am using SimpleMeshLayer for displaying the volume.
The code runs without error and an html file is generated. But, when I open the output in browser, I can see other layers except the mesh layer. In the console, there is an error of
Geometry geometry-1 attribute positions: must be typed array or object with value as typed arrayFrom my review of the code, it seems that deck.gl expects a
Float32Arrayfor positions but when pydeck converts the mesh layer to json, it doesnt indicate the type of array for the position values and thus deck.gl doesnt get the data in right format.i have used meters offset for the values for vertex positions.
Here is a reproducible example:
The console output is:
I am using a clean conda based virtual environment having py3.12. Here is a list of packages installed:
Beta Was this translation helpful? Give feedback.
All reactions