RaymanNg / 3D-Wind-Field

Visualize wind field on Cesium
https://raymanng.github.io/3D-Wind-Field/demo/
MIT License
410 stars 146 forks source link

about picking up the wind field data #46

Open AlbertEjiestein opened 4 years ago

AlbertEjiestein commented 4 years ago

If I want to pick up the wind field data at a certain point on the earth, what method should I use? I use the following API, and the result returns undefined. var pick = viewer.scene.pick(movement.position);

RaymanNg commented 4 years ago

I don't think pick function would work for objects rendered by WebGL, and my suggestion is to load the wind field data as a layer in Cesium.

The easiest solution probably is making use of the WMS function of Cesium

By this way the wind field data is static, if you want to pick the dynamic data like particle movement, you have to find another solution

AlbertEjiestein commented 4 years ago

Thank you very much, I will try the WMS function.

AlbertEjiestein commented 4 years ago

I have successfully picked up wind field data by WMS, thank you for your generous help.

AlbertEjiestein commented 4 years ago

Dear author, I encountered another problem when picking up data. image image image The "imageryProvider.pickFeatures" API will initiate two requests by default. One request format is application/json, which will return 400, and the other is text/xml, which returns 200. It can be seen that when the format is ‘application/json’, the corresponding resource does not exist. What should I do if I don’t want to initiate a request in the "application/json" format? Because the request failed will take a lot of time.

RaymanNg commented 4 years ago

I am not a Cesium experts so I suggest that for Cesium related problems you better check the Cesium document or ask question in the Cesium Community