CN109741436A - A kind of method and device rendering vector data - Google Patents

A kind of method and device rendering vector data Download PDF

Info

Publication number
CN109741436A
CN109741436A CN201811473089.8A CN201811473089A CN109741436A CN 109741436 A CN109741436 A CN 109741436A CN 201811473089 A CN201811473089 A CN 201811473089A CN 109741436 A CN109741436 A CN 109741436A
Authority
CN
China
Prior art keywords
target
tile fragment
vector data
shape point
target tile
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811473089.8A
Other languages
Chinese (zh)
Other versions
CN109741436B (en
Inventor
孙锐
周明瑞
陈瑞
石清华
熊继林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Cennavi Technologies Co Ltd
Original Assignee
Beijing Cennavi Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Cennavi Technologies Co Ltd filed Critical Beijing Cennavi Technologies Co Ltd
Priority to CN201811473089.8A priority Critical patent/CN109741436B/en
Publication of CN109741436A publication Critical patent/CN109741436A/en
Application granted granted Critical
Publication of CN109741436B publication Critical patent/CN109741436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Image Generation (AREA)

Abstract

The embodiment of the invention discloses a kind of method and devices for rendering vector data, are related to area of geographic information, solve during rendering vector data, expend a large amount of calculating power, and the problem that rendering speed is slower.The specific scheme is that determining the indication range of current screen, and the number for the tile fragment that current screen includes is calculated according to indication range, according to the number of target tile fragment, obtain the two-dimensional coordinate for the shape point that target tile fragment includes, according to the number of target tile fragment, obtain the three-dimensional coordinate that target tile fragment fits in target shape point required when spherical surface, according to the two-dimensional coordinate for the shape point that target tile fragment includes, the shape point that target tile fragment includes is drawn in target window, texture picture after being drawn, according to the three-dimensional coordinate of target shape point, target shape point is drawn on spherical surface, obtain being plotted in the target tile fragment on spherical surface, texture picture is filled in the target tile fragment on spherical surface.The embodiment of the present invention is for during rendering vector data.

Description

A kind of method and device rendering vector data
Technical field
The present embodiments relate to area of geographic information more particularly to a kind of method and devices for rendering vector data.
Background technique
In GIS-Geographic Information System (Geographic Information System, GIS), vector data is in located space Position and spatial analysis etc. have important application.Vector data generally can be point, line, polygon etc., be used for table Show geographical entity, such as road network, building, vegetation.
Currently, common three-dimensional map engine can determine vector data packet when vector data to be plotted on spherical surface The each two-dimensional shapes point included is in the position of spherical surface, and the shape point model shared by the position of spherical surface for including according to vector data It encloses, calculates and need the increased shape point for fitting in spherical surface in the position of spherical surface, and render vector data on spherical surface and include Shape point and increased shape point, connect all shape points, obtain the shape for fitting in spherical surface.As shown in Figure 1, working as vector When data include two shape points, obtain fitting in the line of spherical surface after rendering vector data.
At least there is following technical problem in the prior art: since the calculating of the spherical surface position of increased shape point is more multiple It is miscellaneous, cause to expend a large amount of calculating power, and the quantity of increased shape point is more, these increased shape points are plotted on spherical surface The rendering capability that computer can be expended causes the speed of rendering slower.
Summary of the invention
The present invention provides a kind of method and device for rendering vector data, solves during rendering vector data, Expend a large amount of calculating power, and the problem that rendering speed is slower.
In order to achieve the above objectives, the present invention adopts the following technical scheme:
In a first aspect, the present invention provides a kind of method for rendering vector data, this method may include: determining current screen Indication range, and calculate according to indication range the number of the current screen tile fragment that includes;According to the number of target tile fragment, obtain The two-dimensional coordinate for the shape point that target tile fragment includes;Target tile fragment is any one in the tile fragment that current screen includes;According to The number of target tile fragment obtains the three-dimensional coordinate that target tile fragment fits in target shape point required when spherical surface;According to target watt The two-dimensional coordinate for the shape point that block includes draws the shape point that target tile fragment includes, the line after being drawn in target window Manage picture;According to the three-dimensional coordinate of target shape point, target shape point is drawn on spherical surface, obtains being plotted in the target on spherical surface Tile fragment;Texture picture is filled in the target tile fragment on spherical surface.
With reference to first aspect, in one possible implementation, according to the number of target tile fragment, target tile fragment packet is obtained The two-dimensional coordinate of the shape point contained specifically may include: to send request message to server, include target watt in request message The number of block;Receive the two-dimensional coordinate for the shape point that the target tile fragment that server is sent includes.
With reference to first aspect with above-mentioned possible implementation, in alternatively possible implementation, according to target watt The two-dimensional coordinate for the shape point that block includes draws the shape point that target tile fragment includes, the line after being drawn in target window Before reason picture, further includes: determine target window;The resolution ratio of the shape point and current screen that include according to target tile fragment, really Determine configuration parameter;Target window is configured using configuration parameter.
Determine that target regards in alternatively possible implementation with above-mentioned possible implementation with reference to first aspect Window, if specifically may include: that there are frame buffer zone object (Frame Buffer Object, FBO) in current environment, then Content in FBO is emptied, and the FBO after emptying is determined as target window;If FBO is not present in current environment, build Vertical FBO, and FBO is determined as target window.
Can also include: in alternatively possible implementation with above-mentioned possible implementation with reference to first aspect Save the three-dimensional coordinate that target tile fragment fits in target shape point required when spherical surface.
Second aspect, the present invention provide a kind of device for rendering vector data, and the device of the rendering vector data can wrap It includes: determination unit, computing unit, acquiring unit, drawing unit and fills unit.Determination unit, for determining current screen Indication range.Computing unit, the indication range for being determined according to determination unit calculate the number for the tile fragment that current screen includes. Acquiring unit, the number of the target tile fragment for being obtained according to computing unit obtain the two dimension for the shape point that target tile fragment includes Coordinate;Target tile fragment is any one in the tile fragment that current screen includes;According to the number of target tile fragment, target tile fragment is obtained Fit in the three-dimensional coordinate of target shape point required when spherical surface.Drawing unit, the target watt for being obtained according to acquiring unit The two-dimensional coordinate for the shape point that block includes draws the shape point that target tile fragment includes, the line after being drawn in target window Manage picture;According to the three-dimensional coordinate for the target shape point that computing unit calculates, target shape point is drawn on spherical surface, is drawn Target tile fragment on spherical surface.Fills unit, for being filled in texture picture in the target tile fragment on spherical surface.
In conjunction with second aspect, in one possible implementation, acquiring unit is specifically used for: asking to server transmission Message is sought, includes the number of target tile fragment in request message;Receive the two of the shape point that the target tile fragment that server is sent includes Tie up coordinate.
In conjunction with second aspect and above-mentioned possible implementation, in alternatively possible implementation, vector number is rendered According to device can also include: configuration unit.Determination unit is also used to determine target window;The shape for including according to target tile fragment The resolution ratio of shape point and current screen, determines configuration parameter.Configuration unit, for configuring target window using configuration parameter.
In conjunction with second aspect and above-mentioned possible implementation, in alternatively possible implementation, determination unit, tool Body is used for: if there are FBO in current environment, the content in FBO being emptied, and the FBO after emptying is determined as target view Window;If FBO is not present in current environment, FBO is established, and FBO is determined as target window.
In conjunction with second aspect and above-mentioned possible implementation, in alternatively possible implementation, vector number is rendered According to device can also include: storage unit.Storage unit, for saving target shape required when target tile fragment fits in spherical surface The three-dimensional coordinate of shape point.
Concrete implementation mode can be with reference to the rendering arrow that the possible implementation of first aspect or first aspect provides Measure the behavioral function that the device of vector data is rendered in the method for data.
The third aspect provides a kind of device for rendering vector data, and the device of the rendering vector data includes: at least one Processor, memory, communication interface and communication bus.Processor is connect with memory, communication interface by communication bus, storage Device is for storing computer executed instructions, and when rendering the device operation of vector data, processor executes the meter of memory storage Calculation machine executes instruction, so that the device of rendering vector data is executed as in the possible implementation of first aspect or first aspect The method of the rendering vector data of any one.
Fourth aspect provides a kind of computer storage medium, is stored thereon with computer executed instructions, when computer executes It instructs when being run on the device for rendering vector data, so that the device of rendering vector data executes such as first aspect or first party The method of the rendering vector data of any one of the possible implementation in face.
The method of rendering vector data provided by the invention obtains target tile fragment packet by the number according to target tile fragment The two-dimensional coordinate of the shape point contained, and the two-dimensional coordinate for the shape point for including according to target tile fragment, draw mesh in target window The mark tile fragment shape point that includes, obtains texture picture, the three of required target shape point when fitting in spherical surface according to target tile fragment Coordinate is tieed up, target shape point is drawn on spherical surface, obtains being plotted in the target tile fragment on spherical surface, texture picture is filled in the ball In target tile fragment on face.In this way, the quantity of target shape point required when fitting in spherical surface due to target tile fragment is less than existing In technology when rendering vector data increased shape point quantity, subtract the calculating power of the three-dimensional coordinate of shape point It is few, and the consuming of the rendering capability of computer is reduced, to accelerate the speed of rendering vector data.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram for rendering vector data that the prior art provides;
Fig. 2 is that one kind provided in an embodiment of the present invention can simplify signal using the system architecture of the embodiment of the present invention Figure;
Fig. 3 is a kind of composition schematic diagram of device for rendering vector data provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart of method for rendering vector data provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram for rendering vector data provided in an embodiment of the present invention;
Fig. 6 is a kind of flow chart of method for rendering vector data provided in an embodiment of the present invention;
Fig. 7 is the composition schematic diagram of the device of another rendering vector data provided in an embodiment of the present invention;
Fig. 8 is the composition schematic diagram of the device of another rendering vector data provided in an embodiment of the present invention;
Fig. 9 is the composition schematic diagram of the device of another rendering vector data provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 2 is that one kind provided in an embodiment of the present invention can simplify signal using the system architecture of the embodiment of the present invention Figure, as shown in Fig. 2, the system architecture may include: the device 11 and server 12 for rendering vector data.
Wherein, the device 11 and server 12 that render vector data carry out the interaction of data.
The device 11 for rendering vector data can be computer in concrete implementation, for needing to check ground in user When figure, the number for the tile fragment that current screen includes is calculated according to the indication range of current screen, and from server 12, obtain every The two-dimensional coordinate for the shape point that a tile fragment includes, the shape point for including by tile fragment are plotted in target window, obtain texture picture, And required shape point is plotted on spherical surface when the tile fragment is fitted in spherical surface, and obtained texture picture is filled to watt of spherical surface In block.
Server 12, for storing the number of tile fragment and the two-dimensional coordinate of the tile fragment shape point that includes.
Fig. 3 is a kind of composition schematic diagram of device for rendering vector data provided in an embodiment of the present invention, as shown in figure 3, The device of the rendering vector data may include: at least one processor 21, memory 22, communication interface 23 and communication bus 24。
It is specifically introduced below with reference to each component parts of the Fig. 3 to the device of rendering vector data:
Wherein, processor 21 is the control centre for rendering the device of vector data, can be a processor, is also possible to The general designation of multiple processing elements.For example, processor 21 be a central processing unit (Central Processing Unit, CPU), it is also possible to specific integrated circuit (Application Specific Integrated Circuit, ASlC), or It is arranged to implement one or more integrated circuits of the embodiment of the present invention, such as: one or more digital signal processors (Digital Signal Processor, DSP), or, one or more field programmable gate array (Field Programmable Gate Array, FPGA).
In concrete implementation, as one embodiment, processor 21 may include one or more CPU, such as in Fig. 3 Shown in CPU0 and CPU1.And as one embodiment, the device for rendering vector data may include multiple processors, such as Processor 21 and processor 25 shown in Fig. 3.Each of these processors can be a single core processor (Single-CPU), it is also possible to a multi-core processor (Multi-CPU).Here processor can refer to that one or more is set Standby, circuit, and/or processing core for handling data (such as computer program instructions).
Memory 22 can be read-only memory (Read-Only Memory, ROM) or can store static information and instruction Other kinds of static storage device, random access memory (Random Access Memory, RAM) or letter can be stored The other kinds of dynamic memory of breath and instruction, is also possible to Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store to have referring to Enable or data structure form desired program code and can by any other medium of computer access, but not limited to this. Memory 22, which can be, to be individually present, and is connected by communication bus 24 with processor 21.Memory 22 can also and processor 21 integrate.
In concrete implementation, memory 22, for storing the data in the present invention and executing software program of the invention. Processor 21 can be by running or execute the software program being stored in memory 22, and calls and be stored in memory 22 Data, execute rendering vector data device various functions.
Communication interface 23, using the device of any transceiver one kind, for other equipment or communication, such as nothing Line access (Radio Access Network, RAN), WLAN (Wireless Local Area Networks, WLAN), server etc..Communication interface 23 may include that receiving unit realizes that receive capabilities and transmission unit realize transmission function Energy.
Communication bus 24 can be industry standard architecture (1ndustry Standard Architecture, lSA) Bus, external equipment interconnection (Peripheral Component Interconnect, PCI) bus or extension industrial standard body Architecture (Extended IndustrV Standard Architecture, EISA) bus etc..The bus can be divided into address Bus, data/address bus, control bus etc..Only to be indicated with a thick line in Fig. 3, it is not intended that only one convenient for indicating Bus or a type of bus.
In order to solve during rendering vector data, a large amount of calculating power, and the problem that rendering speed is slower are expended, originally Inventive embodiments provide a kind of method for rendering vector data, as shown in figure 4, this method may include:
301, the indication range of current screen is determined.
Wherein, when user needs to consult a map, the device for rendering vector data can be shown in response to the operation of user Corresponding interface, and determine according to the vertex of screen the indication range of current screen.
302, the number for the tile fragment that current screen includes is calculated according to indication range.
Wherein, map can be divided into multiple tile fragments according to rule, and multiple tile fragment is numbered, and swear in rendering It measures in the device of data and prestores the number of each tile fragment and the range of the corresponding tile fragment.
Render vector data device after determining the indication range of current screen, can according to the indication range, The number that the tile fragment that current screen is shown is calculated using preset algorithm, to know which tile fragment current screen shows.
303, according to the number of target tile fragment, the two-dimensional coordinate for the shape point that target tile fragment includes is obtained.
Wherein, target tile fragment be current screen include tile fragment in any one.
The device of vector data is rendered after the number for calculating the tile fragment that current screen includes, it can be according to any one The number of a tile fragment obtains the vector data that target tile fragment includes such as the number of target tile fragment.Specifically, rendering vector data Device can be sent to server include target tile fragment number request message, so that server is from the tile fragment of storage Number with it includes vector data corresponding relationship in, search corresponding with the number of target tile fragment vector data, and to wash with watercolours The device of dye vector data returns to the vector data.The device of rendering vector data can receive the target watt of server transmission The vector data that block includes, the vector data can be the two-dimensional coordinate for each shape point that target tile fragment includes.
It should be noted that in embodiments of the present invention, server determine the number of tile fragment with it includes vector data Corresponding relationship process are as follows: server after getting the vector data of certain geographical entity, the vector data include at least one At least one shape point can be carried out slicing treatment according to pre-set level, which to be known by the two-dimensional coordinate of a shape point Which tile fragment shape point is located in, so that the number of tile fragment is obtained and the two-dimensional coordinate of shape point that the tile fragment includes, by this Corresponding relationship saves in the server.Similarly, server can also handle the vector number of other geographical entities according to the method described above According to.
In addition, server at least one shape point carry out slicing treatment when, if at least one shape point be distributed In multiple tile fragments, then need to increase boundary shape point in the data that tile fragment includes.For example, it is assumed that the vector number of certain geographical entity According to the two-dimensional coordinate including two shape points, and after progress slicing treatment, the two shape points are located at two adjacent watts In block, then the two tile fragments are other than comprising a corresponding shape point, also the line comprising two shape points with watt The intersection point of block boundary, i.e. boundary shape point.
304, according to the number of target tile fragment, the three-dimensional that target tile fragment fits in target shape point required when spherical surface is obtained Coordinate.
Wherein, render vector data device calculate the number of the tile fragment that current screen includes in step 302 after, Can according to the number of any one tile fragment, such as the number of target tile fragment, obtain the target tile fragment fit in it is required when spherical surface The three-dimensional coordinate of target shape point.Specifically, the device of rendering vector data can judge using the number of target tile fragment as index Itself whether it is stored with the three-dimensional coordinate that target tile fragment fits in the target shape point of spherical surface.If not stored have, show head Secondary processing target tile fragment can calculate target tile fragment and fit in mesh required when spherical surface according to the number of target tile fragment at this time The three-dimensional coordinate of mark shape point shows to process the target tile fragment in the past, can search target shape at this time if be stored with Point.For example, as shown in figure 5, being the target shape point for fitting in spherical surface determined according to the tile fragment of rectangle.
It should be noted that in embodiments of the present invention, the device for rendering vector data can be in first treated target watt Block after the three-dimensional coordinate of target shape point needed for target tile fragment fits in spherical surface is calculated, saves the target shape point Three-dimensional coordinate, and be index storage with the number of target tile fragment, it repeats to call for subsequent, be calculated without re-starting.
305, the two-dimensional coordinate for the shape point for including according to target tile fragment, drawing target tile fragment in target window includes Shape point, the texture picture after being drawn.
Wherein, the device for rendering vector data gets the two-dimensional coordinate for the shape point that target tile fragment includes in step 303 Later, can according to the two-dimensional coordinate, call graphic plotting interface, as Web graph shape library (Web Graphics Library, WebGL) interface, open graphic library (Open Graphics Library, OpenGL) interface etc., in the target window determined The shape point that target tile fragment includes under middle drafting flat state, the texture picture after being drawn, and save the texture picture.
306, according to the three-dimensional coordinate of target shape point, target shape point is drawn on spherical surface, obtains being plotted on spherical surface Target tile fragment.
Wherein, the device for rendering vector data gets target required when target tile fragment fits in spherical surface in step 304 It, can be according to the three-dimensional coordinate, one by one by target shape point-rendering on sphere map, finally after the three-dimensional coordinate of shape point Obtain being plotted in the shape of the target tile fragment on spherical surface, as shown in figure 5, finally obtaining the rectangle tile fragment being plotted on spherical surface.
307, texture picture is filled in the target tile fragment on spherical surface.
Wherein, the device of vector data is rendered after obtaining being plotted in the target tile fragment on spherical surface, it can be by step 305 Obtained texture picture is filled in the target tile fragment on spherical surface, just completes vector data that target tile fragment includes in this way in ball Drafting on face.
It should be noted that being by taking the vector data that post-processing object tile fragment includes as an example to rendering in the embodiment of the present invention The method of vector data is illustrated, and can repeat step 303- step 307 to complete the vector that other tile fragments include The rendering of data.And when user drags map, when display area changes, the device for rendering vector data can empty display Region re-execute the steps 301- step 307.
It further, in embodiments of the present invention, can also include target window before executing above-mentioned steps 305 It determines and configures.Specifically, as shown in fig. 6, may comprise steps of 308- step 310:
308, target window is determined.
Wherein, when the device for rendering vector data needs to draw vector data in target window, mesh can be first determined Mark form.Specifically, the device of rendering vector data may determine that in current environment with the presence or absence of FBO, if it is present can be with Content in the FBO is emptied, and the FBO after emptying is determined as target window, if it does not exist, then can establish new FBO, and the FBO of foundation is determined as target window.After determining FBO, the device for rendering vector data can bind this FBO, to enter rendering state.
309, the resolution ratio for the shape point and current screen for including according to target tile fragment, determines configuration parameter.
Wherein, the device of vector data is rendered after determining target window, the shape that can include according to target tile fragment The resolution ratio of shape point and current screen determines the configuration parameter of configuration target window.For example, the configuration parameter can be with are as follows: square Shape region, size are 512 pixel *, 512 pixel.
310, target window is configured using configuration parameter.
Wherein, after having configured target window using configuration parameter, above-mentioned steps 305 can be executed.
The method of rendering vector data provided by the invention obtains target tile fragment packet by the number according to target tile fragment The two-dimensional coordinate of the shape point contained, and the two-dimensional coordinate for the shape point for including according to target tile fragment, draw mesh in target window The mark tile fragment shape point that includes, obtains texture picture, the three of required target shape point when fitting in spherical surface according to target tile fragment Coordinate is tieed up, target shape point is drawn on spherical surface, obtains being plotted in the target tile fragment on spherical surface, texture picture is filled in the ball In target tile fragment on face.In this way, the quantity of target shape point required when fitting in spherical surface due to target tile fragment is less than existing In technology when rendering vector data increased shape point quantity, subtract the calculating power of the three-dimensional coordinate of shape point It is few, and the consuming of the rendering capability of computer is reduced, to accelerate the speed of rendering vector data.
It is above-mentioned that mainly scheme provided in an embodiment of the present invention is described from the angle of the device of rendering vector data. It is understood that the device of rendering vector data is in order to realize the above functions, it comprises executing, each function is hard accordingly Part structure and/or software module.Those skilled in the art should be readily appreciated that, retouch in conjunction with the embodiments described herein Each exemplary algorithm steps for stating, the present invention can be realized with the combining form of hardware or hardware and computer software.Some Function is executed in a manner of hardware or computer software driving hardware actually, depending on technical solution specific application and set Count constraint condition.Professional technician can use different methods to achieve the described function each specific application, But such implementation should not be considered as beyond the scope of the present invention.
The embodiment of the present invention can carry out drawing for functional module according to device of the above method example to rendering vector data Point, for example, each functional module of each function division can be corresponded to, two or more functions can also be integrated in one In a processing module.Above-mentioned integrated module both can take the form of hardware realization, can also be using software function module Form is realized.It should be noted that being schematical, only a kind of logic function to the division of module in the embodiment of the present invention It divides, there may be another division manner in actual implementation.
In the case where each function division of use correspondence each functional module, Fig. 7 is shown involved in above-described embodiment Rendering vector data device alternatively possible composition schematic diagram, as shown in fig. 7, the device of the rendering vector data can To comprise determining that unit 41, computing unit 42, acquiring unit 43, drawing unit 44 and fills unit 45.
Wherein it is determined that unit 41, for supporting the device of rendering vector data to execute rendering vector data shown in Fig. 4 Step 301 in method, it is shown in fig. 6 rendering vector data method in step 308, step 309.
Computing unit 42, the method for supporting the device of rendering vector data to execute rendering vector data shown in Fig. 4 In step 302.
Acquiring unit 43, the method for supporting the device of rendering vector data to execute rendering vector data shown in Fig. 4 In step 303, step 304.
Drawing unit 44, the method for supporting the device of rendering vector data to execute rendering vector data shown in Fig. 4 In step 305, step 306.
Fills unit 45, the method for supporting the device of rendering vector data to execute rendering vector data shown in Fig. 4 In step 307.
Further, in embodiments of the present invention, as shown in figure 8, the device of rendering vector data can also include: configuration Unit 46 and storage unit 47.
Configuration unit 46, the method for supporting the device of rendering vector data to execute rendering vector data shown in fig. 6 In step 310.
Storage unit 47, the method for supporting the device of rendering vector data to execute rendering vector data shown in Fig. 4 In preservation target tile fragment fit in the three-dimensional coordinate of target shape point required when spherical surface.
It should be noted that all related contents for each step that above method embodiment is related to can quote correspondence The function of functional module describes, and details are not described herein.
The device of rendering vector data provided in an embodiment of the present invention, the method for executing above-mentioned rendering vector data, Therefore it can achieve effect identical with the method for above-mentioned rendering vector data.
Using integrated unit, Fig. 9 shows rendering vector data involved in above-described embodiment The alternatively possible composition schematic diagram of device.As shown in figure 9, the device of the rendering vector data includes: processing module 51, leads to Believe module 52 and memory module 53.
Processing module 51 is used to carry out control management to the movement of the device of rendering vector data, for example, processing module 51 For support the device of rendering vector data execute step 301 in Fig. 4, step 302, step 303, step 304, step 305, Step 306, step 307, step 308, step 309, step 310 in Fig. 6, and/or for techniques described herein its Its process.Communication module 52 is used to support the device and other network entities of rendering vector data, such as the communication of server.Storage Module 53, the program code and data of the device for storing rendering vector data.
Wherein, processing module 51 can be the processor in Fig. 3.It, which may be implemented or executes, combines the disclosure of invention Described various illustrative logic blocks, module and circuit.Processor is also possible to realize the combination of computing function, such as It is combined comprising one or more microprocessors, DSP and the combination of microprocessor etc..Communication module 52 can be logical in Fig. 3 Believe interface.Memory module 53 can be the memory in Fig. 3.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description It is convenienct and succinct, only the example of the division of the above functional modules, in practical application, can according to need and will be upper It states function distribution to be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete All or part of function described above.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the module or unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It may be combined or can be integrated into another device, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown can be a physical unit or multiple physical units, it can and it is in one place, or may be distributed over Multiple and different places.Some or all of unit therein can be selected to realize this embodiment scheme according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a read/write memory medium.Based on this understanding, the technical solution of the embodiment of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that an equipment (can be list Piece machine, chip etc.) or processor (processor) perform all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Change or replacement in the technical scope disclosed by the present invention, should be covered by the protection scope of the present invention.Therefore, this hair Bright protection scope should be based on the protection scope of the described claims.

Claims (12)

1. a kind of method for rendering vector data, which is characterized in that the described method includes:
It determines the indication range of current screen, and calculates the volume for the tile fragment that the current screen includes according to the indication range Number;
According to the number of target tile fragment, the two-dimensional coordinate for the shape point that the target tile fragment includes is obtained;The target tile fragment is Any one in the tile fragment that the current screen includes;
According to the number of the target tile fragment, the three-dimensional that the target tile fragment fits in target shape point required when spherical surface is obtained Coordinate;
According to the two-dimensional coordinate for the shape point that the target tile fragment includes, the target tile fragment is drawn in target window includes Shape point, the texture picture after being drawn;
According to the three-dimensional coordinate of the target shape point, the target shape point is drawn on the spherical surface, obtains being plotted in institute State the target tile fragment on spherical surface;
The texture picture is filled in the target tile fragment on the spherical surface.
2. the method for rendering vector data according to claim 1, which is characterized in that the volume according to target tile fragment Number, obtain the two-dimensional coordinate for the shape point that the target tile fragment includes, comprising:
Request message is sent to server, includes the number of the target tile fragment in the request message;
Receive the two-dimensional coordinate for the shape point that the target tile fragment that the server is sent includes.
3. the method for rendering vector data according to claim 1 or 2, which is characterized in that described according to the target The two-dimensional coordinate for the shape point that tile fragment includes is drawn the shape point that the target tile fragment includes in target window, is drawn Before texture picture afterwards, further includes:
Determine the target window;
The resolution ratio of the shape point and the current screen that include according to the target tile fragment, determines configuration parameter;
The target window is configured using the configuration parameter.
4. the method for rendering vector data according to claim 3, which is characterized in that the determination target window, Include:
If the content in the FBO emptied there are frame buffer zone object FBO in current environment, and by the FBO after emptying It is determined as the target window;
If FBO is not present in the current environment, the FBO is established, and the FBO is determined as the target window.
5. the method for rendering vector data according to claim 1, which is characterized in that the method also includes:
Save the three-dimensional coordinate that the target tile fragment fits in target shape point required when the spherical surface.
6. it is a kind of render vector data device, which is characterized in that it is described rendering vector data device comprise determining that unit, Computing unit, acquiring unit, drawing unit and fills unit;
The determination unit, for determining the indication range of current screen;
The computing unit, the indication range for being determined according to the determination unit calculate the current screen and include The number of tile fragment;
The acquiring unit, the number of the target tile fragment for being obtained according to the computing unit obtain the target tile fragment packet The two-dimensional coordinate of the shape point contained;The target tile fragment is any one in the tile fragment that the current screen includes;According to institute The number for stating target tile fragment obtains the three-dimensional coordinate that the target tile fragment fits in target shape point required when spherical surface;
The two dimension of the drawing unit, the shape point that the target tile fragment for being obtained according to the acquiring unit includes is sat Mark, draws the shape point that the target tile fragment includes, the texture picture after being drawn in target window;According to the calculating The three-dimensional coordinate for the target shape point that unit calculates, the target shape point is drawn on the spherical surface, is plotted in Target tile fragment on the spherical surface;
The fills unit, for being filled in the texture picture in the target tile fragment on the spherical surface.
7. the device of rendering vector data according to claim 6, which is characterized in that the acquiring unit is specifically used for:
Request message is sent to server, includes the number of the target tile fragment in the request message;
Receive the two-dimensional coordinate for the shape point that the target tile fragment that the server is sent includes.
8. the device of rendering vector data according to claim 6 or 7, which is characterized in that the rendering vector data Device further include: configuration unit;
The determination unit is also used to determine the target window;The shape point that includes according to the target tile fragment and described work as The resolution ratio of forth screen, determines configuration parameter;
The configuration unit, for configuring the target window using the configuration parameter.
9. the device of rendering vector data according to claim 8, which is characterized in that the determination unit is specifically used for:
If the content in the FBO emptied there are frame buffer zone object FBO in current environment, and by the FBO after emptying It is determined as the target window;
If FBO is not present in the current environment, the FBO is established, and the FBO is determined as the target window.
10. the device of rendering vector data according to claim 6, which is characterized in that the dress of the rendering vector data It sets further include: storage unit;
The storage unit, the three-dimensional of target shape point for saving required when the target tile fragment fits in the spherical surface are sat Mark.
11. a kind of device for rendering vector data, which is characterized in that the device of the rendering vector data includes: processor, deposits Reservoir, communication interface and communication bus;
The processor is connect with the memory, the communication interface by the communication bus, and the memory is for depositing Computer executed instructions are stored up, when the device operation of the rendering vector data, the processor executes the memory storage The computer executed instructions so that it is described rendering vector data device execute as described in any one of claim 1-5 Rendering vector data method.
12. a kind of computer storage medium, which is characterized in that the computer storage medium includes computer executed instructions, when The computer executed instructions on the device for rendering vector data when running, so that the device of the rendering vector data executes The method of rendering vector data according to any one of claims 1 to 5.
CN201811473089.8A 2018-12-04 2018-12-04 Method and device for rendering vector data Active CN109741436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811473089.8A CN109741436B (en) 2018-12-04 2018-12-04 Method and device for rendering vector data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811473089.8A CN109741436B (en) 2018-12-04 2018-12-04 Method and device for rendering vector data

Publications (2)

Publication Number Publication Date
CN109741436A true CN109741436A (en) 2019-05-10
CN109741436B CN109741436B (en) 2023-06-06

Family

ID=66359155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811473089.8A Active CN109741436B (en) 2018-12-04 2018-12-04 Method and device for rendering vector data

Country Status (1)

Country Link
CN (1) CN109741436B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110570491A (en) * 2019-09-06 2019-12-13 广东省城乡规划设计研究院 Thermodynamic diagram generation method and device
CN110597941A (en) * 2019-09-11 2019-12-20 广州力挚网络科技有限公司 Map display method and system
CN110990510A (en) * 2019-11-28 2020-04-10 北京世纪高通科技有限公司 Three-dimensional map generation method, terminal and server
CN111429542A (en) * 2020-02-27 2020-07-17 深圳震有科技股份有限公司 Vector contour line speckle pattern generation method and device and storage medium
CN112435335A (en) * 2020-11-06 2021-03-02 北京飞渡科技有限公司 Three-dimensional vector tile data generation method and system
CN112750190A (en) * 2021-01-28 2021-05-04 腾讯科技(深圳)有限公司 Three-dimensional thermodynamic diagram generation method, device, equipment and storage medium
CN116881384A (en) * 2023-09-06 2023-10-13 武汉大势智慧科技有限公司 Multi-time-phase three-dimensional model data storage method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887595A (en) * 2009-05-14 2010-11-17 武汉如临其境科技创意有限公司 Three-dimensional digital earth-space data organizing and rendering method based on quad-tree index
CN104318605A (en) * 2014-10-23 2015-01-28 南京大学 Parallel lamination rendering method of vector solid line and three-dimensional terrain
US20170116771A1 (en) * 2014-06-10 2017-04-27 Tencent Technology (Shenzhen) Company Limited 3d model rendering method and apparatus and terminal device
CN107895048A (en) * 2017-12-04 2018-04-10 南宁市勘察测绘地理信息院 It is a kind of that drawing method is quickly gone out based on outdoor scene three-dimensional
CN108665524A (en) * 2018-04-28 2018-10-16 武汉大学 A kind of a wide range of discrete flow field volume rendering method based on GPU

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887595A (en) * 2009-05-14 2010-11-17 武汉如临其境科技创意有限公司 Three-dimensional digital earth-space data organizing and rendering method based on quad-tree index
US20170116771A1 (en) * 2014-06-10 2017-04-27 Tencent Technology (Shenzhen) Company Limited 3d model rendering method and apparatus and terminal device
CN104318605A (en) * 2014-10-23 2015-01-28 南京大学 Parallel lamination rendering method of vector solid line and three-dimensional terrain
CN107895048A (en) * 2017-12-04 2018-04-10 南宁市勘察测绘地理信息院 It is a kind of that drawing method is quickly gone out based on outdoor scene three-dimensional
CN108665524A (en) * 2018-04-28 2018-10-16 武汉大学 A kind of a wide range of discrete flow field volume rendering method based on GPU

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
渠涧涛 等: "基于WPF的大规模地形可视化系统设计与实现", 《地理空间信息》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110570491A (en) * 2019-09-06 2019-12-13 广东省城乡规划设计研究院 Thermodynamic diagram generation method and device
CN110597941A (en) * 2019-09-11 2019-12-20 广州力挚网络科技有限公司 Map display method and system
CN110597941B (en) * 2019-09-11 2023-12-29 广州力挚网络科技有限公司 Map display method and system
CN110990510A (en) * 2019-11-28 2020-04-10 北京世纪高通科技有限公司 Three-dimensional map generation method, terminal and server
CN110990510B (en) * 2019-11-28 2024-04-09 北京世纪高通科技有限公司 Three-dimensional map generation method, terminal and server
CN111429542A (en) * 2020-02-27 2020-07-17 深圳震有科技股份有限公司 Vector contour line speckle pattern generation method and device and storage medium
CN112435335A (en) * 2020-11-06 2021-03-02 北京飞渡科技有限公司 Three-dimensional vector tile data generation method and system
CN112750190A (en) * 2021-01-28 2021-05-04 腾讯科技(深圳)有限公司 Three-dimensional thermodynamic diagram generation method, device, equipment and storage medium
CN116881384A (en) * 2023-09-06 2023-10-13 武汉大势智慧科技有限公司 Multi-time-phase three-dimensional model data storage method and device
CN116881384B (en) * 2023-09-06 2023-11-17 武汉大势智慧科技有限公司 Multi-time-phase three-dimensional model data storage method and device

Also Published As

Publication number Publication date
CN109741436B (en) 2023-06-06

Similar Documents

Publication Publication Date Title
CN109741436A (en) A kind of method and device rendering vector data
US11852499B2 (en) Map rendering method and apparatus, computer device, and storage medium
JP6901623B2 (en) Game rendering method, game resource file generation method, devices and devices that realize the method
KR101349171B1 (en) 3-dimensional graphics accelerator and method of distributing pixel thereof
CN104050626B (en) For the method, system and storage medium for rasterizing primitive
KR100956416B1 (en) 3 dimensional geographical information client apparatus, server apparatus and 3 dimensional geographical information system having the same
CN109684426A (en) A kind of map dicing method and device
CN108171804B (en) Method and device for determining three-dimensional model sectioning plane
CN111400024A (en) Resource calling method and device in rendering process and rendering engine
CN112169324A (en) Rendering method, device and equipment of game scene
CN109727070A (en) A kind of determination method and device of potential any active ues
CN109508212A (en) Method for rendering graph, equipment and computer readable storage medium
CN107705363A (en) A kind of road Visualization Modeling method and device
CN113495933A (en) Vector tile display method and system
JP2011529235A (en) Performance analysis in visual creation of graphics images
CN113034688B (en) Three-dimensional map model generation method and device
JP5242788B2 (en) Partition-based performance analysis for graphics imaging
CN114238544A (en) Map loading method, map loading device and storage medium
CN107038176B (en) Method, device and equipment for rendering web graph page
CN106846498A (en) Laser point cloud rendering intent and device
US7113184B2 (en) System and method for blending data sampling techniques
CN114328769A (en) WebGL-based Beidou grid drawing method and device
CN117917691A (en) Batch combination method and device for rendering instructions
Govori et al. A Comprehensive Performance Evaluation of Procedural Geometry Workloads on Resource-Constrained Devices
KR100762996B1 (en) Method of acceleration for process of 3d graphic of use program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant