Map data display method and device, equipment and medium
By obtaining the local coordinate system graph cutting rules and slice row and column numbers, confirming the target data range, and obtaining the target map data through GPS, the problem of low display efficiency in the existing technology is solved, and efficient display of map data is achieved.
Patent Information
- Application Number
- CN202411444312.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-02-07
AI Technical Summary
The existing map data display methods have problems such as excessive data demand, high data redundancy and low display efficiency.
By obtaining the local coordinate system graph cutting rules and slice row and column numbers, confirm the target data range, and convert it into target rectangle data, obtain the matching target map data through GPS, and finally obtain the target vector slice based on the target map data, and according to the preset The rendering rules of the sequential map image is rendered and displayed.
It realizes efficient display of map data, reduces data demand and redundancy, and improves display efficiency.
Smart Images

Figure CN119397046A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data display, and in particular to a method, device, equipment and medium for displaying map data. Background Art
[0002] In today's digital age, the display of map data plays a vital role in many fields, such as navigation, geographic information systems, urban planning, etc. However, there are many significant problems with existing map data display technologies.
[0003] Traditional map image display methods usually rely on a large amount of data to construct and present map images. These data cover extremely detailed geographic information, including but not limited to topography, building outlines, road details, vegetation distribution, etc. In practical applications, in order to ensure the integrity and accuracy of map display, the system often needs to obtain and process massive amounts of data. This demand for excessive data directly leads to a substantial increase in data redundancy. A large amount of duplicate and unnecessary data is stored and transmitted, which not only takes up valuable storage space, but also causes serious resource waste in the process of data processing and transmission. From the perspective of computing power, processing such large and redundant data requires a lot of computing resources. This means that the system needs a more powerful processor and more memory to cope with data processing and rendering, which increases hardware costs and energy consumption. In addition, too much data will also lead to a longer response time for map display, reducing the user experience. In scenarios such as real-time navigation that require high response speed, this delay may cause great inconvenience to users and even safety hazards.
[0004] In summary, the existing map data display method has the problems of excessive data demand, high data redundancy and low display efficiency. Summary of the invention
[0005] The present invention provides a method, device, equipment and medium for displaying map data, which can solve the problems of excessive data demand, much data redundancy and low display efficiency in existing map data display methods.
[0006] In a first aspect, an embodiment of the present invention provides a method for displaying map data, the method comprising:
[0007] Obtaining local coordinate system slicing rules and slicing row and column numbers, and confirming the target data range according to the local coordinate system slicing rules and slicing row and column numbers;
[0008] After converting the target data range into target rectangular data, the target map data matching the target rectangular data is obtained through GPS;
[0009] Target vector slices are acquired based on the target map data, and the target vector slices are rendered according to preset rendering rules to obtain and display a target map image.
[0010] In a second aspect, an embodiment of the present invention provides a device for displaying map data, the device comprising:
[0011] A range confirmation module is used to obtain the local coordinate system cutting rules and the slice row and column numbers, and confirm the target data range according to the local coordinate system cutting rules and the slice row and column numbers;
[0012] A data acquisition module, used for converting the target data range into target rectangular data, and then acquiring target map data matching the target rectangular data through GPS;
[0013] The rendering module is used to obtain target vector slices based on the target map data, and render the target vector slices according to preset rendering rules to obtain and display a target map image.
[0014] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for displaying map data described in any embodiment of the present invention.
[0018] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a method for displaying map data described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention first obtains the local coordinate system cutting rules and slice row and column numbers, and confirms the target data range according to the local coordinate system cutting rules and slice row and column numbers, then converts the target data range into target rectangular data, obtains the target map data matching the target rectangular data through GPS, and finally obtains the target vector slice based on the target map data, and renders the target vector slice according to the preset rendering rules to obtain the target map image and display it, thereby solving the problems of excessive data demand, high data redundancy and low display efficiency in the existing map data display method, realizes the display of map data, improves the display efficiency of map data, and reduces the data demand and data redundancy generated during the map data display process.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flowchart of a method for displaying map data provided according to Embodiment 1 of the present invention;
[0023] Figure 2 is a flowchart of a method for displaying map data provided according to a second embodiment of the present invention;
[0024] Figure 3 is a schematic diagram of the structure of a device for displaying map data according to a third embodiment of the present invention;
[0025] Figure 4 The present invention is a schematic diagram of the structure of an electronic device for implementing a method for displaying map data according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, any variation of the terms "including" and "having" is intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1 A flowchart of a method for displaying map data provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of displaying map data. The method can be executed by a device for displaying map data. The device for displaying map data can be implemented in the form of hardware and / or software. The device for displaying map data can be configured in a terminal or server with a map data display function.
[0030] like Figure 1 As shown, the method includes:
[0031] S110, obtaining local coordinate system cutting rules and slice row and column numbers, and confirming the target data range according to the local coordinate system cutting rules and slice row and column numbers.
[0032] Among them, the local coordinate system cutting rules refer to a series of specifications and requirements formulated for cutting geographic spatial data into slices of specific size and shape in a specific local coordinate system; illustratively, in the local coordinate system of a certain city, the local coordinate system cutting rules are: the cutting scale is stipulated to be 1:5000, the slice size is 1024×1024 pixels, and the overlapping area between slices is 5%.
[0033] Furthermore, the slice row and column number refers to a unique identifier assigned to each slice when slicing geographic data, which is used to determine its position in the overall data.
[0034] S120 , after converting the target data range into target rectangular data, acquiring target map data matching the target rectangular data through GPS.
[0035] The target data range is a specific area that matches the row and column numbers of the slice and needs to be processed or related data is obtained; further, the target rectangular data refers to the data format in which the target data range is converted into a rectangular shape.
[0036] The step of converting the target data range into target rectangular data includes: processing the target range data using a preset function for creating a spatial range to obtain target rectangular data matching the target range data.
[0037] Specifically, the function for creating a spatial range can be: ST_MakeEnvelope(float xmin, floatymin, float xmax, float ymax, integer srid=unknown) function. It should be noted that since the function for creating a spatial range is a mature prior art and relevant personnel in this field should understand it, the use of the function for creating a spatial range will not be described in detail here; further, the function for creating a spatial range can be used to process the target range data into spatial geometric coordinates, that is, target rectangular data; for example, if there is a set of target range data (734958.6, 624841.4, 839829.5, 729712.3), the target range data is processed through ST_MakeEnvelope(float xmin, floatymin, float xmax, float ymax, integer srid=unknown) function, the target rectangle data matching the target range data can be obtained as 010300000001000000050000033333333DD6D2641CDCCCC.
[0038] Furthermore, target map data matching the target rectangular data is obtained through GPS, including: obtaining a target rectangular range based on the target rectangular data; collecting a target image matching the target rectangular range in real time through GPS; and using a pre-configured MVT geometric format conversion function to convert the target image into target map data for output.
[0039] In a specific implementation scenario of this embodiment, first, the target rectangular range is determined based on the target rectangular data. The target rectangular range is a specific geographical area clearly defined in a rectangular form. For example, in urban construction planning, the rectangular range corresponding to a specific block. Then, with the help of GPS, real-time acquisition is performed to obtain a target image that matches the target rectangular range. The target image here refers to image data that can reflect the geographic information within the specific rectangular range. For example, a real-time image containing geographic elements such as roads and buildings. Then, the pre-configured MVT (MapboxVector Tile) geometry format conversion function is used to convert the collected target image into target map data and output it. The MVT geometry format conversion function is a tool function specifically used to convert image data in a specific format into a map data format. For example, the ST_AsMVTGeom (geometry geom, box2d bounds, integer extent = 4096, integer buffer = 256, boolean clip_geom = true) function preset in the geographic information processing software.
[0040] S130: Acquire a target vector slice based on the target map data, and render the target vector slice according to a preset rendering rule to obtain a target map image and display it.
[0041] Wherein, acquiring the target vector slice based on the target map data includes: using a preset MVT format function to process the target map data to obtain the target vector slice.
[0042] Furthermore, the MVT format function is a function specifically used to convert map data in a specific format into a vector slice format, for example, the ST_AsMVT (anyelementrow, text name, integer extent, text geom_name) function configured in professional geographic information processing software.
[0043] Specifically, the rendering rules include at least one of icon configuration, text size, text color, transparency, graphic fill color and border color; wherein, icon configuration refers to the settings of the shape, style, detailed features and other aspects of various icons used in the map, such as icons identifying places, icons representing specific functional areas, etc.; for example, an icon for a shopping mall can be configured as a specific building appearance icon; text size refers to the size specification of the text displayed on the map, for example, the size of the place name text can be set differently according to its importance or the size of the display area; text color refers to the color presented by the text in the map, for example, the names of important places can be displayed in eye-catching red, and ordinary places can be displayed in black; transparency refers to the degree of transparency of certain elements in the map, for example, certain layers or marks can be set to a certain transparency to better display the underlying map information; graphic fill color is for the graphic area in the map, such as the internal fill color of a specific administrative area, functional area, etc., for example, a park area can be filled with green; border color is the color presented by the graphic border, for example, the outline border of a lake can be set to blue.
[0044] Optionally, after rendering the target vector slice according to preset rendering rules and obtaining and displaying the target map image, it also includes: starting timing after obtaining the target map image; when it is detected that the timing duration exceeds a preset time interval, returning to execute the operation of obtaining target map data matching the target rectangular data through GPS, so as to update the currently displayed target map image.
[0045] Among them, timing refers to the recording and measurement of the passage of time. For example, an electronic clock or a timing module in a computer program is used to accurately record the passage of time; further, when it is detected that the duration of the timing exceeds a preset time interval, the operation process of obtaining the target map data matching the target rectangular data through the global positioning system (GPS) is returned to execute; further, the preset time interval is a specific time period set in advance. For example, it can be set to 5 minutes, 10 minutes, etc. Through such operations, the currently displayed target map image is updated. Updating means replacing old data with newly acquired and processed data to ensure the timeliness and accuracy of the map image.
[0046] It should be noted that the ST_MakeEnvelope(float xmin,float ymin,float xmax,float ymax,integer srid=unknown) function, ST_AsMVTGeom(geometry geom,box2d bounds,integer extent=4096,integer buffer=256,boolean clip_geom=true) function mentioned in the above steps and
[0047] The ST_AsMVT (anyelement row, text name, integer extent, text geom_name) functions are all mature existing technologies, so this embodiment does not elaborate on the principles or uses of the above functions.
[0048] The technical solution of the embodiment of the present invention first obtains the local coordinate system cutting rules and slice row and column numbers, and confirms the target data range according to the local coordinate system cutting rules and slice row and column numbers, then converts the target data range into target rectangular data, obtains target map data matching the target rectangular data through GPS, and finally obtains target vector slices based on the target map data, and renders the target vector slices according to preset rendering rules to obtain and display the target map image, thereby realizing the display of map data, improving the display efficiency of map data, and reducing the data demand and data redundancy generated during the map data display process.
[0049] Embodiment 2
[0050] Figure 2 A flowchart of a method for displaying map data provided in the second embodiment of the present invention. This embodiment is refined based on the above embodiment. In this embodiment, specifically, a method for obtaining local coordinate system cutting rules and slice row and column numbers, and confirming the target data range based on the local coordinate system cutting rules and slice row and column numbers is refined.
[0051] like Figure 2 As shown, the method includes:
[0052] S210, obtaining a preset coordinate conversion function, and encapsulating the coordinate conversion function using a local coordinate system cutting rule to obtain a target function.
[0053] The coordinate conversion function refers to a functional function that can convert a coordinate value in one coordinate system into a corresponding coordinate value in another coordinate system, such as a Geospatial Data Abstraction Library function.
[0054] S220, processing the slice row and column numbers through the objective function to obtain a target data range.
[0055] S230 , after converting the target data range into target rectangular data, acquiring target map data matching the target rectangular data through GPS.
[0056] S240: Acquire a target vector slice based on the target map data, and render the target vector slice according to a preset rendering rule to obtain a target map image and display it.
[0057] The technical solution of the embodiment of the present invention first obtains a preset coordinate conversion function, encapsulates the coordinate conversion function using a local coordinate system cutting rule to obtain a target function, and processes the slice row and column numbers through the target function to obtain a target data range, then converts the target data range into target rectangular data, obtains target map data matching the target rectangular data through GPS, and finally obtains a target vector slice based on the target map data, and renders the target vector slice according to a preset rendering rule to obtain and display a target map image, thereby realizing the display of map data, improving the display efficiency of map data, and reducing the data demand and data redundancy generated during the map data display process.
[0058] Embodiment 3
[0059] Figure 3 This is a schematic diagram of the structure of a device for displaying map data provided in Embodiment 3 of the present invention.
[0060] like Figure 3 As shown, the device comprises:
[0061] The range confirmation module 310 is used to obtain the local coordinate system cutting rules and the slice row and column numbers, and confirm the target data range according to the local coordinate system cutting rules and the slice row and column numbers;
[0062] A data acquisition module 320 is used to convert the target data range into target rectangular data and then acquire target map data matching the target rectangular data through GPS;
[0063] The rendering module 330 is used to obtain target vector slices based on the target map data, and render the target vector slices according to preset rendering rules to obtain and display a target map image.
[0064] The technical solution of the embodiment of the present invention first obtains the local coordinate system cutting rules and slice row and column numbers, and confirms the target data range according to the local coordinate system cutting rules and slice row and column numbers, then converts the target data range into target rectangular data, obtains target map data matching the target rectangular data through GPS, and finally obtains target vector slices based on the target map data, and renders the target vector slices according to preset rendering rules to obtain and display the target map image, thereby realizing the display of map data, improving the display efficiency of map data, and reducing the data demand and data redundancy generated during the map data display process.
[0065] Based on the above embodiment, the range confirmation module 310 includes:
[0066] The encapsulation unit is used to obtain a preset coordinate conversion function, encapsulate the coordinate conversion function using a local coordinate system cutting rule, and obtain a target function;
[0067] The row and column number processing unit is used to process the slice row and column numbers through the objective function to obtain a target data range.
[0068] On the basis of the above embodiment, the data acquisition module 320 is further used to: process the target range data using a preset creation space range function to obtain target rectangle data matching the target range data.
[0069] Based on the above embodiment, the data acquisition module 320 includes:
[0070] A rectangle data processing unit, used for obtaining a target rectangle range based on the target rectangle data;
[0071] A target image matching unit, used for collecting target images matching the target rectangular range in real time through GPS;
[0072] The data output unit is used to convert the target image into target map data for output using a pre-configured MVT geometric format conversion function.
[0073] On the basis of the above embodiment, the rendering module 330 is further used to: process the target map data using a preset MVT format function to obtain a target vector slice.
[0074] Based on the above embodiment, the rendering module 330 is also used to: render the target vector slice according to a preset rendering rule, obtain the target map image and display it, and start timing after obtaining the target map image; when it is detected that the timing duration exceeds the preset time interval, return to execute the operation of obtaining the target map data matching the target rectangular data through GPS, so as to update the currently displayed target map image.
[0075] A map data display device provided in an embodiment of the present invention can execute a map data display method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0076] Embodiment 4
[0077] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0078] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0079] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0080] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for displaying map data.
[0081] Accordingly, the method comprises:
[0082] Obtaining local coordinate system slicing rules and slicing row and column numbers, and confirming the target data range according to the local coordinate system slicing rules and slicing row and column numbers;
[0083] After converting the target data range into target rectangular data, the target map data matching the target rectangular data is obtained through GPS;
[0084] Target vector slices are acquired based on the target map data, and the target vector slices are rendered according to preset rendering rules to obtain and display a target map image.
[0085] In some embodiments, a method for displaying map data may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for displaying map data described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a method for displaying map data in any other appropriate manner (e.g., by means of firmware).
[0086] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0087] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0088] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0089] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0090] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0091] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0092] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
Claims
1. A method for displaying map data, characterized in that: include: Obtaining local coordinate system slicing rules and slicing row and column numbers, and confirming the target data range according to the local coordinate system slicing rules and slicing row and column numbers; After converting the target data range into target rectangular data, the target map data matching the target rectangular data is obtained through GPS; Target vector slices are acquired based on the target map data, and the target vector slices are rendered according to preset rendering rules to obtain and display a target map image.
2. The method according to claim 1, characterized in that Obtaining the local coordinate system cutting rules and the slice row and column numbers, and confirming the target data range according to the local coordinate system cutting rules and the slice row and column numbers, including: Obtain a preset coordinate conversion function, encapsulate the coordinate conversion function using a local coordinate system cutting rule, and obtain a target function; The slice row and column numbers are processed by the objective function to obtain a target data range.
3. The method according to claim 1, characterized in that Convert the target data range to the target rectangular data, including: The target range data is processed using a preset spatial range creation function to obtain target rectangle data matching the target range data.
4. The method according to claim 1, characterized in that Obtain target map data matching the target rectangle data through GPS, including: Get the target rectangle range based on the target rectangle data; The target image matching the target rectangular range is collected in real time through GPS; The target image is converted into target map data for output using a pre-configured MVT geometric format conversion function.
5. The method according to claim 1, characterized in that Acquiring a target vector slice based on the target map data includes: The target map data is processed using a preset MVT format function to obtain a target vector slice.
6. The method according to claim 1, characterized in that The rendering rules include at least one of icon configuration, text size, text color, transparency, graphic fill color, and border color.
7. The method according to claim 1, characterized in that After rendering the target vector slice according to a preset rendering rule to obtain and display a target map image, the method further includes: Start timing after getting the target map image; When it is detected that the timing duration exceeds the preset time interval, the operation of acquiring the target map data matching the target rectangle data through GPS is returned to update the currently displayed target map image.
8. A map data display device, characterized in that: include: A range confirmation module is used to obtain the local coordinate system cutting rules and the slice row and column numbers, and confirm the target data range according to the local coordinate system cutting rules and the slice row and column numbers; A data acquisition module, used for converting the target data range into target rectangular data, and then acquiring target map data matching the target rectangular data through GPS; The rendering module is used to obtain target vector slices based on the target map data, and render the target vector slices according to preset rendering rules to obtain and display a target map image.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for displaying map data according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a method for displaying map data according to any one of claims 1 to 7 when executed.