In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you the example analysis of the surface in the secondary development of TE, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
In the development of TE, except in the case of sticking to the ground, the surface object can be affixed to the ground in the way of terrain, the other relative ground and absolute height are the effect of a plane, and the same situation is faced when drawing lines, so in the spherical mpt of TE, setting the position of the surface according to a central point will cause some surfaces or lines to be underground, and the effect is not good. So far, there is no update to the api here.
In cesium 3D, you can directly draw surfaces or curves, see the Cesium series: load irregular shapes to draw, and can paste pictures as textures.
How to use TE api to draw a surface or curve on the map, at least show the ups and downs according to the way of the terrain? making a three-dimensional model object according to the ups and downs is a way that can be considered, but it needs to be made by data personnel. Here is a way of referring to elevation data, by means of interpolation, drawing multiple surfaces instead of one.
The drawing method of the line is relatively simple. Through a certain distance, the middle data is interpolated. The more the interpolation, the more smooth the line. See the pie chart on the TE map. When there are enough points, you can draw a circle on the map.
In the picture, sampling points can be taken from the surface, and each point has a height relative to the surface. This sampling point can be obtained uniformly according to the horizontal and vertical coordinates according to the four to four ranges of the surface object. The higher the density, the higher the coincidence between the surface and the terrain. Irregular surface objects, redundant points can be filtered by whether the points are filtered in the surface. After the filtering is completed, every three points are connected into a triangle. This rule can find the corresponding algorithm on the Internet. After the triangles are connected, a triangular grid similar to elevation is formed. If these triangles are drawn on the map, they will form a surface similar to the elevation trend.
These triangles are stripped of the edges according to api, filled with color, and they will appear like one.
The 3D model can also be generated according to the triangular grid, and the above data can be generated into the model according to the format of the model, and the model can also be filled with maps.
Regular polygon faces, files with corresponding maps, according to the range of polygons and the small size of the picture, fill in the color data in the upper triangle through data interpolation to form a similar mapping effect, the picture itself is composed of color.
The above is all the contents of the article "sample Analysis of surfaces in the Secondary Development of TE". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.