640
Views
13
CrossRef citations to date
0
Altmetric
Original Articles

A function-based linear map symbol building and rendering method using shader language

, , , , &
Pages 143-167 | Received 14 Jun 2015, Accepted 27 Jul 2015, Published online: 20 Aug 2015
 

Abstract

Maps are widely used to visualize geo-information so that map users can develop related understandings about the real world. Such a process for communicating information is largely dependent on the rendering of map elements using different symbols (points and linear and area symbols). To meet the demand of more dynamic and comprehensive visualization in map rendering, it is essential to improve the rendering efficiency. This paper focuses on these research topics, especially the difficulty in constructing and drawing linear map symbols. By employing shader language, a function-based linear symbol building and rendering method is presented in this paper. The basic idea of this function-based method is to build a map-rendering solution that employs graphic processing unit (GPU) acceleration technology to improve the rendering efficiency. A ‘function’ is used to represent the algorithm that draws certain simple or complex linear map symbols. This function reflects the structure of a linear map symbol (describing the symbol construction information) and also the rendering process of the symbolized linear map elements (handled on a per-pixel basis by the shader program). Based on the Open Geospatial Consortium (OGC), Styled Layer Descriptor (SLD) specifications, four basic line types (i.e., solid lines, dashed lines, gradient color lines, and transition lines) are implemented in the proposed method, and the implementation of line markers, line joins and line caps is also discussed. Three experiments are conducted to demonstrate improvements in map rendering. The results show that a variety of linear map symbols can be constructed in a uniform way, which suggests that the proposed method addresses the difficulty in drawing linear map symbols. With this method, the efficiency of rendering linear map elements is substantially improved compared to using the graphics device interface plus (GDI+) and anti-grain geometry (AGG) methods; it also provides an applicable approach for developing map rendering systems. Using this function-based concept, the complexity of building linear map symbols and drawing linear map elements can be decreased.

Acknowledgments

We appreciate the detailed suggestions and comments from the editor and the anonymous reviewers.

Additional information

Funding

The work described in this article involves many geo-analysis models and was supported by the following research programs: the National Basic Research Program of China (973 Program) [grant number 2015CB954102]; the National Natural Science Foundation of China [grant number 41471317], [grant number 41371424]; the Priority Academic Program Development of Jiangsu Higher Education Institutions.

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.