Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

GPU-based method for drawing linetype map symbol with gradually-varied width

A technology of map symbol drawing and width gradient, which is applied in directions such as filling planes with attributes, which can solve the problem that the original vector line data cannot be changed.

Inactive Publication Date: 2016-04-20
NANJING NORMAL UNIVERSITY
View PDF6 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This gradual widening drawing needs to be adapted to a variety of line map symbols, and the original vector line data cannot be changed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • GPU-based method for drawing linetype map symbol with gradually-varied width
  • GPU-based method for drawing linetype map symbol with gradually-varied width
  • GPU-based method for drawing linetype map symbol with gradually-varied width

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0034] 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 elements is more difficult; the traditional drawing of multiple lines with different widths to fit the gradual width line is difficult to meet The requirements of map drawing also caused the loss of spatial information transmission. Therefore, the present invention designs a GPUShader-based method for drawing map symbols with gradient line widths to adapt to the drawing of gradually widening different map symbols. Such as Figure 5 , Four typical width gradient line map symbols and their effects when applied to vector line elements.

[0035] The following is a software method, in the C++ language and OpenGL environment, to realize the drawing of the width gradient line map symbol based on GPUShader:

[0036] (1) Define the structure SymbolStructure to represent the symbol structure:

[0037] #defineMAX_COL_NUM16...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a symbolization rendering technology in the GIS field and the digital map drawing field, provides a GPU-based method for drawing a linetype map symbol with a gradually-varied width, and realizes efficient rendering and drawing of gradual varying on width of a linear vector element based on the method. The method comprises the following steps: firstly determining a coordinate sequence of the line element needing to be drawn, initializing maximum and minimum line widths, according to the maximum width, building a line triangulation network subjected to triangularization, and transmitting a U parameter along a line direction and a V parameter vertical to the line direction to each vertex in the triangulation network; according to a map symbol unit needing to be filled, generating a corresponding color structural table, and transmitting the color structural table, a U-V parameter, the maximum line width and the minimum line width into a tinter program; by using Shader language, according to a U-V value on each vertex and the line widths, drawing pixels of the line element one by one based on a specified width gradual-varying function, thus realizing drawing of the vector linetype map symbol with the gradually-varied width.

Description

technical field [0001] The present invention relates to a symbolic rendering technology in the field of GIS and electronic map, and provides a method for drawing map symbols of width gradient line type based on the GPU (Graphics Processing Unit) programmable pipeline Shader language, and realizes the method based on the method. High-quality rendering and drawing of wide linear vector elements, which can smoothly express feature entities such as rivers and boundaries that have gradient attributes in space. 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 representatio...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06T11/40
CPCG06T11/40
Inventor 温永宁乐松山陈旻闾国年
Owner NANJING NORMAL UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products