Rational drawing method of corners of map vector line elements based on gpu
A vector line and rationality technology, which is applied in the field of GPU-based map vector line element corner rationality drawing, can solve problems such as unreasonable drawing of vector line elements, achieve enhanced drawing effect and readability, and avoid redrawing and missing drawing Effect
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2018-08-10
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to a symbolic rendering technology in the fields of GIS and electronic map, and provides a method for drawing rationality of corners of map line elements based on GPU (Graphics Processing Unit) programmable pipeline and Shader language. Background technique
[0002] The symbolization method of geospatial entities is an important research content in the field of geographic information and cartography. Compared with commonly used point symbols and surface symbols, line symbols are often more difficult and time-consuming because they need to be filled and drawn along the direction of linear elements. In addition to the commonly used solid lines and dashed lines, the line symbols required in map representations are more complex. For example, the linear symbol of a major urban road is a double-line graphic entity with a border; the railway symbol is a black and white graphic entity with a border; the single-sided boundary line symbol ...
Examples
Embodiment
[0032] Compared with the straight line drawing in the traditional computer visualization field, due to the complexity of map symbols, the drawing of map vector line features is more difficult. The traditional method, which uses different interval parameters to adjust the drawing errors at the corners, is difficult to meet the requirements of map drawing, and also causes the loss of spatial information transmission. Therefore, the present invention designs a GPUShader-based map line element corner rationality drawing method to adapt to the correct drawing of different map symbols. Such as Figure 6 As shown, the method of the present invention is used to draw four typical corners, as well as the wrong results drawn by other methods for the same vector line element.
[0033] The following is a software method, in the C++ language and OpenGL environment, to realize the rationality drawing method of the corners of map line elements based on GPU Shader:
[0034] (1) Define the st...