CN115984409A - Method and device for drawing vector data of geographic information system and electronic equipment - Google Patents

Method and device for drawing vector data of geographic information system and electronic equipment Download PDF

Info

Publication number
CN115984409A
CN115984409A CN202211571602.3A CN202211571602A CN115984409A CN 115984409 A CN115984409 A CN 115984409A CN 202211571602 A CN202211571602 A CN 202211571602A CN 115984409 A CN115984409 A CN 115984409A
Authority
CN
China
Prior art keywords
vector data
buffer layer
buffer
data
layer
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.)
Pending
Application number
CN202211571602.3A
Other languages
Chinese (zh)
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.)
North Star Space Information Technology Research Institute Nanjing Co ltd
Original Assignee
North Star Space Information Technology Research Institute Nanjing 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 North Star Space Information Technology Research Institute Nanjing Co ltd filed Critical North Star Space Information Technology Research Institute Nanjing Co ltd
Priority to CN202211571602.3A priority Critical patent/CN115984409A/en
Priority to PCT/CN2022/143260 priority patent/WO2024119565A1/en
Publication of CN115984409A publication Critical patent/CN115984409A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • 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
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Remote Sensing (AREA)
  • Software Systems (AREA)

Abstract

The application provides a method and a device for drawing vector data of a geographic information system and electronic equipment, wherein the method comprises the following steps: setting the size of a canvas as the size of a display area, and performing double-buffer drawing on vector data in the canvas; establishing a buffer layer, and carrying out region division on the buffer layer; and responding to the amplification operation of the vector data, screening the vector data by dividing the region of the cache map layer, and drawing and displaying the screened vector data. And screening the data in the buffer map layer by dividing the buffer map layer, and finally realizing the quick drawing and display of the partial region of the vector data.

Description

Method and device for drawing vector data of geographic information system and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for drawing vector data of a geographic information system and electronic equipment.
Background
At present, a double-buffer mechanism is provided by mainstream graphics interfaces such as OpenGL and the like for fast drawing of a large amount of graphics, and the graphics image is mostly rendered in such a manner, and the principle is that the graphics image is firstly drawn in a buffer memory when the graphics interface is drawn for the first time, and then is rendered at a display interface once.
After vector data of the geographic information system is rendered, interactive operation is very frequent and complex, a cached result (picture) is only amplified or reduced in a vector data scaling process by using double-buffer drawing, and the topological relation between the vector data and vectors cannot be accurately drawn, so that the rendering quality and accuracy of the vector data of the geographic information system are influenced.
Disclosure of Invention
The application aims to provide a method and a device for drawing vector data of a geographic information system and electronic equipment, which screen data in a buffer map layer by dividing the buffer map layer, and finally realize rapid drawing and display of partial areas of the vector data.
According to an aspect of the present application, a method for mapping vector data of a geographic information system is provided, including:
setting the size of a canvas as the size of a display area, and performing double-buffer drawing on vector data in the canvas;
establishing a buffer layer, and carrying out region division on the buffer layer;
and responding to the amplification operation of the vector data, screening the vector data by dividing the area of the cache layer, and drawing and displaying the screened vector data.
According to some embodiments, the method comprises:
the establishing of the buffer layer and the area division of the buffer layer comprise:
and dividing the buffer image layer into N grids and numbering the grids, wherein N is a natural number greater than 1.
According to some embodiments, the method comprises:
the response to the amplification operation on the vector data, the vector data is screened by dividing the region of the cache map layer, and the screened vector data is drawn and displayed, including:
and responding to the amplification operation of the vector data, and acquiring a selected area of the amplification operation, wherein the selected area is rectangular.
According to some embodiments, the method comprises:
the response to the amplification operation on the vector data, the vector data is screened by dividing the region of the cache map layer, and the screened vector data is drawn and displayed, further comprising:
determining the amplification ratio as a smaller value in the ratio of the length and the width of the cache layer to the length and the width of the selected area;
and recording a first central coordinate of the selected area and a second central coordinate of the canvas.
According to some embodiments, the method comprises:
the response to the amplification operation on the vector data, the vector data is screened by dividing the region of the cache map layer, and the screened vector data is drawn and displayed, further comprising:
and screening the vector data of the selected area through a high-efficiency data retrieval algorithm according to the grids divided by the buffer layer, and drawing the screened vector data on the buffer layer.
According to some embodiments, the method comprises:
the response to the amplification operation on the vector data, the vector data is screened by dividing the region of the cache map layer, and the screened vector data is drawn and displayed, further comprising:
amplifying the screened vector data according to the amplification ratio;
and moving the region of the buffer layer after being amplified to the central position of the canvas for displaying according to the relative position of the first central coordinate and the second central coordinate after being amplified and a translation formula.
According to some embodiments, the method comprises:
the efficient data retrieval algorithm comprises a spatial point index algorithm.
According to another aspect of the present application, there is provided an apparatus for vector data rendering of a geographic information system, comprising:
the device comprises a vector data initial drawing module, a vector data initial drawing module and a vector data buffer module, wherein the vector data initial drawing module is used for setting the size of a canvas as the size of a display area and carrying out double-buffer drawing on vector data in the canvas;
the buffer layer establishing module is used for establishing a buffer layer and carrying out region division on the buffer layer;
and the screening and drawing module is used for responding to the amplification operation of the vector data, screening the vector data by dividing the region of the cache map layer, and drawing and displaying the screened vector data.
According to another aspect of the present application, there is provided an electronic device including:
a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method of any of the above methods when executing the computer program.
According to another aspect of the application, there is provided a computer program product comprising a computer program or instructions which, when executed by a processor, implements the method of any one of the above methods.
According to the embodiment of the application, the data in the buffer map layer is screened through the division of the buffer map layer, and finally the quick drawing display of the vector data partial area is realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below.
Fig. 1 shows a flowchart of a geographic information system vector data rendering method according to an example embodiment of the present application.
Fig. 2 shows a buffer layer division diagram according to an example embodiment of the present application.
Fig. 3 shows a schematic diagram of a geographic information system vector data rendering method according to an example embodiment of the present application.
Fig. 4 shows a flowchart of vector data scaling and rendering display processing according to an example embodiment of the present application.
Fig. 5 shows a block diagram of a geographic information system vector data rendering device according to an example embodiment of the present application.
FIG. 6 shows a block diagram of an electronic device according to an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another. Thus, a first component discussed below may be termed a second component without departing from the teachings of the present concepts. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It will be appreciated by those skilled in the art that the drawings are merely schematic representations of exemplary embodiments, and that the blocks or processes shown in the drawings are not necessarily required to practice the present application and are, therefore, not intended to limit the scope of the present application.
After vector data of a Geographic Information System (GIS) are rendered, interactive operation is very frequent and complex, cache results (pictures) are only amplified or reduced in the vector data scaling process by using double-buffer drawing, the topological relation between the vector data and vectors cannot be accurately drawn, and the rendering quality and accuracy of the GIS vector data are further influenced.
The currently adopted main flow is to firstly perform fuzzy scaling on the cache result, then redraw all data of the vector data in a buffer layer according to the scaling proportion, and finally perform difference according to the central point of the selection frame and the amplified data central point, translate the buffer layer to a display area for redrawing.
In order to correctly draw the topological relation of the vector data, all the vector data cached in the cache are redrawn, so that when a large amount of vector data is drawn, a cached image is directly amplified to form a blurred image lasting for a certain time.
In view of the above problems, the present invention has been made to provide a GIS data vector scaling method that overcomes the above problems. The method is characterized in that a screening step before image drawing is added, vector data needing to be drawn is subjected to rapid screening and preferential drawing on the data needing to be displayed in a screen area when double-buffer drawing is triggered, and therefore the problem that the retention time of a cache blurred image is too long after interactive operation is solved.
The terms to which the present invention relates are as follows.
Double-buffer rendering: in the graphic image processing programming process, double buffering is a basic technology, can realize the quick rendering of graphic images, and can eliminate the picture flicker problem generated in the refreshing process.
Buffering the image layer: and the buffer canvas existing in the double-buffer rendering process is used for temporarily bearing the drawing process and the result layer, when the rendering is finished, the result of the buffer layer is displayed on a screen or the canvas as a final result, and the buffer layer releases resources and eliminates the resources.
And GIS: the Geographic Information System (GIS) is a comprehensive discipline combining geography with cartography and remote sensing input, and computer discipline, and is a computer System for storing, querying, analyzing, and displaying Geographic data.
Vector scaling: the vector data is one of the GIS basic data types, and is data for representing the positions of map graphs or geographic entities by using X, Y and Z coordinates, and the common vector data comprises the following components: dot, line, plane, etc.
Topological relation: the topological relation refers to the mutual relation among all spatial data meeting the topological geometry principle. I.e., adjacency, association, containment and connectivity relationships between entities represented by nodes, arc segments and polygons. Such as: the relationship of the dots to the adjacent dots, the relationship of the dots to the surface, the relationship of the lines to the surface, the relationship of the surfaces to the surface, and the like.
Exemplary embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 shows a flowchart of a geographic information system vector data rendering method according to an example embodiment of the present application.
Referring to fig. 1, in S101, the size of the canvas is set to the size of the display area, and double-buffer rendering of vector data is performed in the canvas.
According to some embodiments, when GIS vector data enters the drawing interface for the first time in a data structure of points, lines, faces, a double-buffer drawing display of the data will be performed with the display screen size as the initial canvas.
In S103, a buffer layer is established, and the buffer layer is divided into regions.
According to some embodiments, a buffer layer is established during a double-buffer rendering process, and the buffer layer is divided into N grids (N is a natural number greater than 1, for example, 16) and numbered for filtering and re-rendering vector data to be rendered. A schematic diagram of buffer layer division is shown in fig. 2.
In S105, in response to the enlargement operation on the vector data, the vector data is screened by dividing the region of the cache map layer, and the screened vector data is rendered and displayed.
According to some embodiments, in response to performing the enlarging operation on the vector data, a selected area of the enlarging operation is obtained, the selected area being rectangular. Determining the amplification ratio as a smaller value in the ratio of the length and the width of the cache layer to the length and the width of the selected area; and recording a first central coordinate of the selection area and a second central coordinate of the canvas.
According to some embodiments, vector data of a selected area is screened through an efficient data retrieval algorithm according to a grid divided by a buffer layer, and the screened vector data is drawn in the buffer layer. Amplifying the screened vector data according to an amplification ratio; and moving the region of the buffer layer after being amplified to the central position of the canvas for displaying according to the relative position of the first central coordinate and the second central coordinate after being amplified and a translation formula. The efficient data retrieval algorithm comprises a spatial point index algorithm.
The vector scaling described in the invention refers to an operation mode of vectorization scaling for GIS vector data. In the vector data structure, the point data can be directly described by coordinate values; the line data may be described by a chain of sequential coordinates that are evenly or unevenly spaced; the area data (or polygon data) can be described by a boundary line.
The method of the invention rapidly screens and preferentially draws the vector data to be drawn when double-buffer drawing is triggered by adding the screening step before drawing the image, so as to solve the problem of overlong retention time of the cached blurred image after interactive operation.
Fig. 3 shows a schematic diagram of a geographic information system vector data rendering method according to an example embodiment of the present application.
Firstly, when GIS vector data enters a drawing interface for the first time in a point, line and plane data structure, double-buffer drawing display of the data is carried out by taking the size of a display screen as an initial canvas, a buffer layer is established in the double-buffer drawing process, and the buffer layer is divided into sixteen grids and numbered for screening and redrawing the vector data to be drawn.
When the appropriate amount of data displayed on the screen is amplified, a display area on the screen selected by a mouse left key or right key on a click-and-drag frame on the display screen is used as a selection area, the selection area is a rectangle, the length (a ') and the width (b ') of the cache layer are compared with the length (a) and the width (b) of the rectangle, namely the values of a '/a and b '/b are smaller, the amplification ratio m is determined, and meanwhile, the geometric center coordinates O (coordinates: centerX, cnterY) and the center coordinates O ' (coordinates: X, Y) of the selection area, namely the rectangle are recorded.
The vector data is amplified according to an amplification scale m, an area is divided according to the buffer layer, and the relative positions of the amplified central coordinates CenterX ' = m CenterX, cnetreY ' = m CenterY and O ' are combined according to a translation formula:
x translation = CenterX' -X;
y translation = CenterY' -Y;
and moving the enlarged area of the buffer layer to the corresponding central position of the display screen.
The method comprises the steps of using a high-efficiency data retrieval algorithm (for example, a space point index algorithm Geohash algorithm) in the GIS, screening vector data (namely, vector data finally displayed on a screen) in a selected area, drawing the vector data on a buffer layer, displaying the buffer layer on the screen after drawing is finished, and releasing the buffer layer in the double-buffer drawing process.
According to the scheme, when double-buffer rendering of GIS vector data is improved, the rendering speed of double-buffer rendering after GIS vector data is scaled is optimized, the retention time of the cached blurred images is shortened, and the display efficiency is improved.
According to the scheme, vector data screening rules are simulated through partitioning of the buffer layer, so that the data volume of all redraws in the double-buffer drawing process is reduced. The scheme can completely solve the problem of too long residence time of the blurred image by only utilizing a basic data retrieval mechanism.
Fig. 4 shows a vector data scaling and rendering display process flow diagram according to an example embodiment of the present application.
Referring to fig. 4, the process of scaling and rendering the display for the vector data includes the following steps.
Setting the size of the canvas as the size of a display area, and performing double-buffering drawing on vector data in the canvas.
Double-buffering rendering display of data will be performed with the display screen size as the initial canvas.
And establishing a buffer layer, and carrying out region division on the buffer layer. And establishing a buffer layer in the double-buffer drawing process, dividing the buffer layer into N grids and numbering the grids for screening and redrawing the vector data to be drawn.
And amplifying the vector data, screening the vector data by dividing the region of the cache map layer, and drawing and displaying the screened vector data.
According to the scheme, the cache map layer is divided, data in the cache map layer are screened, and finally, the rapid drawing and displaying of the partial region of the vector data are achieved. And realizing the partitioned pretreatment of the buffer layer to meet the conditions that data redrawing occurs for multiple times during double-buffer drawing, so that the retention time of the buffer layer is too long, and the display is slow after large-volume data operation.
It should be clearly understood that this application describes how to make and use particular examples, but the application is not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments are implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, the program for executing the above-mentioned functions defined by the above-mentioned methods provided in the present application may be stored in a computer-readable storage medium, which may be a read-only memory, a magnetic or optical disk, or the like.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the method according to exemplary embodiments of the present application and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed, for example, synchronously or asynchronously in multiple modules.
Having described exemplary embodiments, those skilled in the art will readily appreciate that the geographic information system vector data rendering methods according to embodiments of the present application may have at least one or more of the following advantages.
According to the embodiment, the data in the buffer map layer is screened through the division of the buffer map layer, and finally the quick drawing display of the vector data partial area is realized.
According to the embodiment, buffer layer partitioning preprocessing is adopted to meet the condition that data redrawing occurs multiple times during double-buffer drawing, so that the buffer layer stays too long and is slow to display after large-volume data operation.
Embodiments of apparatus of the present application are described below that may be used to perform embodiments of the methods of the present application. For details not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 5 shows a block diagram of a geographic information system vector data rendering device according to an example embodiment. The device shown in fig. 5 can execute the aforementioned method for mapping vector data of the geographic information system according to the embodiment of the present application.
As shown in fig. 5, the geographic information system vector data drawing device may include: vector data initial drawing module 510, buffer layer establishing module 520, and filtering and drawing module 530.
Referring to fig. 5 and in view of the foregoing description, a vector data initial rendering module 510 is configured to set the size of a canvas in which double-buffering rendering of vector data is performed as a display area size.
The buffer layer establishing module 520 is configured to establish a buffer layer and perform area division on the buffer layer.
And a screening and drawing module 530, configured to screen the vector data by dividing an area of the cache map layer in response to performing an amplification operation on the vector data, and draw and display the screened vector data.
The device performs functions similar to those of the method provided above, and other functions can be referred to above, and will not be described again here.
FIG. 6 shows a block diagram of an electronic device according to an example embodiment.
An electronic device 200 according to this embodiment of the present application is described below with reference to fig. 6. The electronic device 200 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the electronic device 200 is embodied in the form of a general purpose computing device. The components of the electronic device 200 may include, but are not limited to: at least one processing unit 210, at least one memory unit 220, a bus 230 connecting different system components (including the memory unit 220 and the processing unit 210), a display unit 240, and the like.
Wherein the storage unit stores program code that can be executed by the processing unit 210 such that the processing unit 210 performs the methods according to various exemplary embodiments of the present application described herein.
The storage unit 220 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM) 2201 and/or a cache memory unit 2202, and may further include a read only memory unit (ROM) 2203.
The storage unit 220 can also include a program/utility 2204 having a set (at least one) of program modules 2205, such program modules 2205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment.
Bus 230 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 200 may also communicate with one or more external devices 300 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 200, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 200 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 250. Also, the electronic device 200 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 260. The network adapter 260 may communicate with other modules of the electronic device 200 via the bus 230. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. The technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above method according to the embodiments of the present application.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computing devices (e.g., through the internet using an internet service provider).
Those skilled in the art will appreciate that the modules described above may be distributed in the apparatus according to the description of the embodiments, or may be modified accordingly in one or more apparatuses unique from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Exemplary embodiments of the present application are specifically illustrated and described above. It is to be understood that the application is not limited to the details of construction, arrangement, or method of implementation described herein; on the contrary, the application is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (10)

1. A method for vector data rendering in a geographic information system, comprising:
setting the size of a canvas as the size of a display area, and performing double-buffer drawing on vector data in the canvas;
establishing a buffer layer, and carrying out region division on the buffer layer;
and responding to the amplification operation of the vector data, screening the vector data by dividing the area of the cache layer, and drawing and displaying the screened vector data.
2. The method according to claim 1, wherein the establishing a buffer layer and performing area division on the buffer layer comprises:
and dividing the buffer image layer into N grids and numbering the grids, wherein N is a natural number greater than 1.
3. The method according to claim 2, wherein the step of filtering the vector data by dividing the area of the buffer layer in response to performing the enlarging operation on the vector data, and rendering and displaying the filtered vector data comprises:
and responding to the amplification operation of the vector data, and acquiring a selected area of the amplification operation, wherein the selected area is rectangular.
4. The method according to claim 3, wherein the vector data is filtered by dividing the region of the buffer layer in response to the enlarging operation performed on the vector data, and the filtered vector data is rendered and displayed, further comprising:
determining the amplification ratio as a smaller value in the ratio of the length and the width of the cache layer to the length and the width of the selected area;
and recording a first central coordinate of the selection area and a second central coordinate of the canvas.
5. The method according to claim 4, wherein the vector data is filtered by dividing the region of the buffer layer in response to the vector data being enlarged, and the filtered vector data is rendered and displayed, further comprising:
and screening the vector data of the selected area through an efficient data retrieval algorithm according to the grids divided by the buffer layer, and drawing the screened vector data on the buffer layer.
6. The method according to claim 5, wherein in response to performing the enlarging operation on the vector data, the vector data is filtered through area division of the cache map layer, and the filtered vector data is rendered and displayed, further comprising:
amplifying the screened vector data according to the amplification ratio;
and moving the region of the buffer layer after being amplified to the central position of the canvas for displaying according to the relative position of the first central coordinate and the second central coordinate after being amplified and a translation formula.
7. The method of claim 5, wherein the efficient data retrieval algorithm comprises a spatial point indexing algorithm.
8. An apparatus for geographic information system vector data rendering, comprising:
the device comprises a vector data initial drawing module, a vector data initial drawing module and a vector data buffer module, wherein the vector data initial drawing module is used for setting the size of a canvas as the size of a display area and carrying out double-buffer drawing on vector data in the canvas;
the buffer layer establishing module is used for establishing a buffer layer and carrying out region division on the buffer layer;
and the screening and drawing module is used for responding to the amplification operation of the vector data, screening the vector data by dividing the region of the cache map layer, and drawing and displaying the screened vector data.
9. An electronic device, comprising:
memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method of any of the preceding claims 1-7 when executing the computer program.
10. A non-transitory computer readable storage medium having stored thereon computer readable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1-7.
CN202211571602.3A 2022-12-08 2022-12-08 Method and device for drawing vector data of geographic information system and electronic equipment Pending CN115984409A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211571602.3A CN115984409A (en) 2022-12-08 2022-12-08 Method and device for drawing vector data of geographic information system and electronic equipment
PCT/CN2022/143260 WO2024119565A1 (en) 2022-12-08 2022-12-29 Geographic information system vector data drawing method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211571602.3A CN115984409A (en) 2022-12-08 2022-12-08 Method and device for drawing vector data of geographic information system and electronic equipment

Publications (1)

Publication Number Publication Date
CN115984409A true CN115984409A (en) 2023-04-18

Family

ID=85971411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211571602.3A Pending CN115984409A (en) 2022-12-08 2022-12-08 Method and device for drawing vector data of geographic information system and electronic equipment

Country Status (2)

Country Link
CN (1) CN115984409A (en)
WO (1) WO2024119565A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1939837A3 (en) * 2006-12-20 2010-04-28 AT&T Corp. Lossless real-time compression of geographic data
CN103927169A (en) * 2014-04-10 2014-07-16 南京信息工程大学 Method for realizing scaling of electronic map drawn by GDI (graphic device interface)+
CN104537701A (en) * 2015-01-22 2015-04-22 江苏中威科技软件系统有限公司 Operation method of vector lines
CN104898947B (en) * 2015-05-26 2017-09-12 中国民航大学 A kind of method that GDI electronics map vector scaling and translation are realized based on mouse position

Also Published As

Publication number Publication date
WO2024119565A1 (en) 2024-06-13

Similar Documents

Publication Publication Date Title
US8379025B1 (en) Methods and apparatus for rendering vector art on graphics hardware
US20110084967A1 (en) Visualization of Datasets
Wu et al. ViSizer: a visualization resizing framework
WO2021248705A1 (en) Image rendering method and apparatus, computer program and readable medium
CN111209721A (en) Bitmap font realization method and device, electronic equipment and storage medium
CN109448137B (en) Interaction method, interaction device, electronic equipment and storage medium
Qu et al. Focus+ context route zooming and information overlay in 3D urban environments
US11561637B2 (en) Method and device of drawing handwriting track, electronic apparatus, medium, and program product
CN112272109A (en) Network topological graph generation method, equipment and system
US11398065B2 (en) Graphic object modifications
JP3110837B2 (en) Map figure data management method
US10403040B2 (en) Vector graphics rendering techniques
CN114862999A (en) Dotting rendering method, dotting rendering device, dotting rendering equipment and storage medium
CN113495933A (en) Vector tile display method and system
KR20040021563A (en) Screen display processing apparatus, screen display processing method and computer program
CN112598687B (en) Image segmentation method and device, storage medium and electronic equipment
Kittivorawong et al. Fast and flexible overlap detection for chart labeling with occupancy bitmap
CN110782504A (en) Curve determination method, device, computer readable storage medium and equipment
CN115984409A (en) Method and device for drawing vector data of geographic information system and electronic equipment
US11645793B2 (en) Curve antialiasing based on curve-pixel intersection
CN107452046B (en) Texture processing method, device and equipment of three-dimensional city model and readable medium
US20200020139A1 (en) Rendering of Graphic Objects With Pattern Paint Using A Graphics Processing Unit
JP7352032B2 (en) Video generation method, apparatus, electronic device and computer readable storage medium
CN111932689B (en) Three-dimensional object quick selection method adopting ID pixel graph
CN114222317A (en) Data processing method and device, electronic equipment and storage medium

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