CN115292428A - Map element loading method and device, server and computer readable storage medium - Google Patents

Map element loading method and device, server and computer readable storage medium Download PDF

Info

Publication number
CN115292428A
CN115292428A CN202210769275.6A CN202210769275A CN115292428A CN 115292428 A CN115292428 A CN 115292428A CN 202210769275 A CN202210769275 A CN 202210769275A CN 115292428 A CN115292428 A CN 115292428A
Authority
CN
China
Prior art keywords
map
latitude
real
longitude
map element
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
CN202210769275.6A
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.)
Shanghai Xiantu Intelligent Technology Co Ltd
Original Assignee
Shanghai Xiantu Intelligent Technology 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 Shanghai Xiantu Intelligent Technology Co Ltd filed Critical Shanghai Xiantu Intelligent Technology Co Ltd
Priority to CN202210769275.6A priority Critical patent/CN115292428A/en
Publication of CN115292428A publication Critical patent/CN115292428A/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/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries

Abstract

The invention discloses a map element loading method and device, a server and a computer readable storage medium, wherein the map element loading method comprises the following steps: obtaining an element loading request, wherein the element loading request comprises a real-time scaling; selecting map elements containing the real-time scaling in display conditions, wherein each map element has display conditions which comprise scaling ranges; and loading the selected map elements to a preview interface. By using the technical scheme, the map elements can be selectively loaded so as to improve the efficiency of loading the map elements.

Description

Map element loading method and device, server and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for loading a ground primitive, a server, and a computer-readable storage medium.
Background
Since the unmanned vehicle highly depends on the high-precision map for trajectory planning during unmanned driving, it is important to ensure the map precision of the high-precision map. Operation and maintenance personnel need to preview and maintain the high-precision map so as to ensure that data in the high-precision map are normal, and meanwhile, elements in the high-precision map are updated so as to ensure that the high-precision map can be normally applied to an unmanned scene.
In the prior art, when a high-precision map is previewed, map elements in the high-precision map are generally loaded to a preview interface in a full-scale manner so that operation and maintenance personnel can view the map elements in the high-precision map.
However, in the prior art, when map elements are loaded in a full amount, if the number of the map elements is large, the memory resources occupied by loading the full amount of map elements will be very large, which causes a prolonged data processing time, seriously affects the work efficiency of maintaining a high-precision map by a user, and reduces the use experience of the user.
Disclosure of Invention
The invention solves the technical problem of selectively loading map elements in a high-precision map so as to improve the efficiency of loading the map elements.
In order to solve the above technical problem, an embodiment of the present invention provides a map element loading method, where the map element loading method includes: obtaining an element loading request, wherein the element loading request comprises a real-time scaling; selecting map elements with display conditions including the real-time scaling, wherein each map element has display conditions which include a scaling range; and loading the selected map elements to a preview interface.
Optionally, the element loading request includes a target longitude and latitude or an identifier of a map element, where the identifier of the map element is used to determine the target longitude and latitude.
Optionally, the selecting the map element including the real-time zoom ratio in the display condition includes: determining a preview area in the map according to the target longitude and latitude and the real-time zooming scale; and selecting a map element with a display condition containing the real-time scaling in the preview area.
Optionally, the determining a preview area in the map according to the target longitude and latitude and the real-time zoom scale includes: determining the longitude and latitude of each boundary point according to the target longitude and latitude and a preset position relationship, wherein the preset position relationship represents the position relationship between the longitude and latitude of each boundary point and the target longitude and latitude, and different target longitude and latitude and different real-time scaling correspond to different preset position relationships; and determining the latitude and longitude range of the preview area according to the latitude and longitude of each boundary point.
Optionally, the obtaining manner of the preset position relationship includes: obtaining a plurality of preset position relations according to the size of the preview interface, wherein the position relations between the longitude and latitude of each boundary point and the target longitude and latitude are different when the size of the preview interface is different; and determining the preset position relation according to the real-time scaling.
Optionally, the element loading request includes a target longitude and latitude, and the map element loading method further includes: acquiring a new element loading request, wherein the new element loading request comprises the changed target longitude and latitude; calculating the distance between the changed target longitude and latitude and the target longitude and latitude; when the distance is larger than a preset distance, determining a new preview area in the map according to the changed target longitude and latitude and the real-time zooming scale; and selecting a map element with a display condition containing the real-time zooming scale in the new preview area.
Optionally, the selecting the map element including the real-time zoom scale in the display condition includes: acquiring the number of all map elements, and selecting the map elements containing the real-time zooming ratio in the display condition when the number of all map elements is larger than the preset number; or when the number of all map elements is less than the preset number, all map elements are selected.
Optionally, the map element loading method further includes: and acquiring an editing request, and editing the map element according to the editing request.
The embodiment of the invention also discloses a map element loading device, which comprises: the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring an element loading request, and the element loading request comprises a real-time scaling; the selection module is used for selecting the map elements containing the real-time scaling in the display conditions, each map element has the display conditions, and the display conditions comprise the scaling range; and the loading module is used for loading the selected map elements to the preview interface.
The embodiment of the invention also discloses a server, which comprises a memory and a processor, wherein the memory is stored with a computer program capable of running on the processor, and the computer program is executed by the processor to execute any step of the map element loading method.
The embodiment of the invention also discloses a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, the computer-readable storage medium is a nonvolatile storage medium or a non-transient storage medium, and the computer program is executed by a processor to execute any one of the steps of the map element loading method.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
the invention provides a map element loading method, which obtains a real-time scaling through obtaining an element loading request, selects a map element with a display condition comprising the real-time scaling from a database according to the real-time scaling, and selects the map element meeting the display condition only when the real-time scaling is within the scaling range of the map element, thereby reducing the number of the map elements needing to be loaded and reducing the occupation of memory resources. After the map elements are selected, the selected map elements are loaded to a preview interface for a user to check, the loading speed of the map elements is increased due to the fact that the occupation of memory resources is reduced, and the use experience of the user when the map elements are previewed is improved.
Furthermore, the preview area in the map is determined according to the target longitude and latitude and the real-time zooming scale in the element loading request, and only map elements in the preview area are selected, so that the number of the map elements needing to be loaded can be further reduced, usable memory resources are increased when the requirement of a user for checking the map elements is met, and the loading efficiency of the map elements is improved.
Drawings
Fig. 1 is an overall flowchart of a method for loading map pixels according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an overall map element loading method according to another embodiment of the present invention;
fig. 3 is a specific flowchart of map element loading when the longitude and latitude of the target is changed according to the embodiment of the present invention;
FIG. 4 is a detailed flowchart for editing map elements according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a ground primitive loading apparatus according to an embodiment of the present invention.
Detailed Description
As described in the background art, it is important to ensure the map accuracy of a high-precision map in order to plan a trajectory when an unmanned vehicle is unmanned by highly relying on the high-precision map. Operation and maintenance personnel need to preview and maintain the high-precision map, and update elements in the high-precision map, so that the high-precision map can be normally applied to an unmanned scene. When the high-precision map is viewed, map elements in the high-precision map are generally loaded to a preview interface in a full-scale mode, but when the map elements are previewed, the map elements are loaded in a full-scale mode in the prior art. If the number of map elements is large, the memory resources occupied by loading the map elements in full will be very large, which results in prolonging the data processing time, seriously affecting the working efficiency of maintaining a high-precision map by a user, and reducing the user experience.
In the embodiment of the invention, the real-time zooming ratio is obtained by obtaining the element loading request, the map elements with the real-time zooming ratio in the display conditions are selected from the database according to the real-time zooming ratio, and the map elements meeting the display conditions are selected only when the real-time zooming ratio is within the zooming ratio range of the map elements, so that the number of the map elements needing to be loaded is reduced, and the occupation of memory resources is reduced. After the map elements are selected, the selected map elements are loaded to a preview interface for a user to check, the loading speed of the map elements is increased due to the fact that the occupation of memory resources is reduced, and the use experience of the user when the user checks the map elements is improved.
Furthermore, the preview area in the map is determined according to the longitude and latitude and the real-time scaling of the target in the element loading request, only the map elements in the preview area are selected, the number of the map elements needing to be loaded can be further reduced, available memory resources are increased when the requirement of a user for checking the map elements is met, and the loading efficiency of the map elements is improved.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is an overall flowchart of a method for loading a primitive according to an embodiment of the present invention.
In a specific implementation, the map element loading method described in the following steps 101 to 103 may be used in a server. The above steps may be executed by the server, or may be executed by a chip having a data processing function in the server, or may be executed by a chip module including a chip having a data processing function in the server. In a particular embodiment, the various steps of the map element loading method may be performed by a server.
Specifically, as shown in fig. 1, the map element loading method may include the following steps:
in step 101, an element loading request is obtained;
in step 102, selecting map elements with display conditions including the real-time scaling;
in step 103, the selected map element is loaded to the preview interface.
At this point, after the map elements are loaded, the user can view and edit the loaded map elements.
In a specific implementation of step 101, a server obtains an element loading request from a client, where the element loading request includes a real-time scaling. The real-time scaling is used for representing the proportion between the preview size of the map element in the preview interface and the actual size of the entity (such as a lane line, a traffic light and a building) on the map, and the larger the real-time scaling is, the larger the map element viewed in the preview interface is; the smaller the real-time zoom, the smaller the map elements viewed in the preview interface.
In an implementation of step 102, the server selects from the database map elements whose display conditions include real-time scaling. Each map element has a display condition that includes a zoom range, and the map element can be selected when the real-time zoom is within the zoom range of the map element. That is, the inclusion of the real-time zoom ratio in the display condition means that the real-time zoom ratio is within the zoom ratio range included in the display condition. In particular, the database may be stored locally at the server; alternatively, the database may be a peripheral database and communicate with the server.
In a non-limiting embodiment, the number of all map elements can be acquired before the map elements are selected, and when the number of all map elements is larger than the preset number, the map elements with real-time scaling in the display condition are selected; and when the number of all map elements is less than the preset number, selecting all map elements. And all map elements are loaded under the condition of enough memory resources, and the map elements do not need to be screened, so that the loading process of the map elements is smoother.
It should be noted that the preset number may be set by a user according to an actual situation, and the present application is not limited to this.
In an implementation of step 103, the selected map element is loaded to the preview interface. Specifically, the preview interface may be a display interface on the mobile terminal or the display, and the selected map element is loaded to the preview interface.
In one specific embodiment, the database stores map element a, map element B, and map element C. The zoom range in the display condition of the map element a is 1 to 1, the zoom range in the display condition of the map element B is 1 to 1. When the real-time zoom scale is 1.
In this embodiment, the map elements including the real-time scaling in the display condition are selected from the database according to the real-time scaling, and the map elements to be loaded are screened, so that the number of the map elements to be loaded is reduced, the occupation of memory resources is reduced, and the loading efficiency of the map elements is improved.
Fig. 2 is an overall flowchart of another map element loading method according to an embodiment of the present invention.
Unlike fig. 1, in step 202, a preview area in the map is determined based on the target longitude and latitude and the real-time zoom scale.
In a specific implementation, the element loading request may include a real-time scaling and a target latitude and longitude. Each map element has a longitude and a latitude, and when one map element is selected, the longitude and the latitude of the selected map element are used as a target longitude and latitude; or when the map element is not selected, taking the longitude and latitude of the point position in the map corresponding to the central point of the preview interface as the target longitude and latitude.
In specific implementation, a plurality of preset position relations are obtained according to the size of the preview interface, the preset position relations represent the position relations between the longitude and latitude of each boundary point and the longitude and latitude of the target, and the position relations between the longitude and latitude of each boundary point and the longitude and latitude of the target are different when the size of the preview interface is different. For example, when the size of the preview interface is 1920 × 1080 pixels, the boundary point a may be in a 60 ° direction of the target longitude and latitude, and the distance between the boundary point a and the target longitude and latitude is determined according to the real-time scaling; when the size of the preview interface is 1000 × 1000 pixels, the boundary point a may be in a 45 ° direction of the target longitude and latitude, and the distance between the boundary point and the target longitude and latitude is determined according to the real-time scaling.
Further, after a plurality of preset position relationships are obtained according to the size of the preview interface, the preset position relationships are determined according to the real-time scaling, and different real-time scaling corresponds to different preset position relationships. For example, when the real-time scaling is 1; when the real-time scaling is 1.
Furthermore, the longitude and latitude of each boundary point can be obtained according to the preset position relation between the target longitude and latitude and each boundary point. The latitude and longitude range of the preview area in the map can be determined according to the latitude and longitude of each boundary point. Specifically, an area formed by connecting each boundary point with an adjacent boundary point may be used as the preview area, or a distance from the latitude and longitude of the object to the boundary point may be used as a radius, and a circular area formed on the map may be used as the preset area.
It should be noted that the number of the boundary points and the dividing method of the preset area may be determined according to the actual situation, which is not limited in the present application.
In one non-limiting embodiment, the element loading request may also include real-time scaling and identifiers of map elements, each map element has a unique identifier, the longitude and latitude of the map element may be determined according to the identifier of the map element, the longitude and latitude of the map element may be used as the target longitude and latitude, and the preview area may be determined according to the target longitude and latitude and the real-time scaling. For the dividing step of the preview area, reference may be made to the foregoing description, and details are not repeated here.
With continued reference to FIG. 2, in step 203, a map element is selected in the preview area whose display condition includes real-time scaling.
In specific implementation, a preset area in the map has a target longitude and latitude range, and a map element which is within the target longitude and latitude range and has a display condition including a real-time zooming scale can be selected as a map element to be loaded.
In one specific embodiment, the target latitude and longitude is (10 ° E,10 ° N), and the real-time scaling is 1. According to the preset relation, the longitude and latitude of the boundary point A are (10.2 degrees E,10.2 degrees N), the longitude and latitude of the boundary point B are (10.2 degrees E,9.8 degrees N), the longitude and latitude of the boundary point C are (9.8 degrees E,9.8 degrees N), the longitude and latitude of the boundary point D are (9.8 degrees E,10.2 degrees N), and the longitude range of the preview area is 9.8 degrees E to 10.2 degrees E and the latitude range is 9.8 degrees N to 10.2 degrees N. Now, it is determined that the map elements in the preview area include a map element a, a map element B and a map element C according to the range of the preview area, the zoom range of the map element a is 1. And then selecting a map element A, a map element B and a map element C according to the real-time scaling ratio of 1.
In this embodiment, in addition to selecting the map elements by using the real-time scaling, the preview area is determined according to the relation between the longitude and latitude of the target and the preset position, and the map elements with the display conditions including the real-time scaling are selected from the preview area, so that the number of the map elements to be loaded is further reduced, the use of memory resources is reduced, and the loading of the map elements is faster.
Fig. 3 is a specific flowchart of map element loading when the longitude and latitude of the target is changed according to the embodiment of the present invention.
In step 301, when the longitude and latitude of the target change, a new element loading request is acquired;
in step 302, calculating the distance between the changed target longitude and latitude and the target longitude and latitude;
in step 303, determining whether the distance is greater than a preset distance, and if the distance is greater than the preset distance, executing step 304; otherwise, go to step 305, do not operate;
in step 304, determining a new preview area in the map according to the changed longitude and latitude of the target and the real-time zooming scale;
in step 306, a map element with real-time scaling included in the display condition is selected in the new preview area.
In specific implementation, when a user moves a cursor on a preview interface, the longitude and latitude of the target may be changed, and the distance between the changed longitude and latitude of the target and the longitude and latitude of the target is calculated. If the distance is greater than the preset distance, the situation that the map elements are not selected completely may occur, a new preview area in the map needs to be determined according to the changed longitude and latitude of the target and the real-time zoom scale, and the map elements with the real-time zoom scale included in the display conditions are selected in the new preview area in the map, so that the selected map elements are loaded to the preview interface. For the division of the preview area and the selection of the map elements, reference may be made to the related description in fig. 2, which is not described herein again.
In this embodiment, when the user moves the preview interface or selects a new map element, the longitude and latitude of the target are changed, and it is necessary to determine whether the distance of the change of the longitude and latitude of the target is greater than a preset distance. When the distance is greater than the preset distance, in order to ensure that the map elements can be completely loaded, a new preview area is determined in the map, and the map elements with real-time scaling are selected from the new preview area under the display condition, so that the map elements viewed by a user on a preview interface are complete, and the loading of the map elements is more scientific.
Fig. 4 is a specific flowchart for editing a map element according to an embodiment of the present invention.
In a specific implementation of step 401, the server obtains an edit request from the client. The server may edit the map element according to the edit request. Specifically, the specific operation of editing may include adding, deleting, or changing map elements.
In a specific implementation, the map element has a display condition and latitude and longitude information, the display condition includes a zoom scale range, and a user can change or delete the map element by searching for an identifier of the map element or selecting the map element from a preview interface. Specifically, the display condition or the latitude and longitude of the map element may be changed, or the map element may be deleted.
It should be noted that the map element may be an entity such as a lane line and a traffic light in the map, or may be any other entity that can be represented in the map, which is not limited in this application.
Furthermore, a map element can be newly added to the preview interface, the display condition of the newly added map element is determined, and the newly added map element also has longitude, latitude and identification.
In specific implementation, an editing zoom scale can be set, when the real-time zoom scale is smaller than the editing zoom scale, map elements in the map are not easy to observe, selection errors can be caused, and at the moment, a user can preview the map elements and cannot edit the map elements; when the real-time zoom scale is larger than the editing zoom scale, the map elements on the map can be observed more easily, and the user can preview and edit the map elements.
In step 402, the edited map elements are stored to a database.
In particular implementations, map elements may be edited simultaneously by multiple users. If the same map element is modified by a plurality of users, the map element with the most recent modification time can be selected when the map element is loaded.
In a specific implementation, multiple map elements edited by different users can be merged, so that the edited multiple map elements are merged and stored in the database.
In particular implementations, edited map elements may be automatically stored in the database periodically to prevent the edited map elements from being lost due to an accident. The user can also actively save the edited map elements so as to automatically store the edited map elements into the database.
In this embodiment, the user can edit the map elements to add, delete or change each map element, and periodically save the edited map elements to prevent accidental loss of the map elements. The map accuracy of the high-precision map can be further improved by editing the map elements, so that the high-precision map can be better used in actual unmanned driving.
As shown in fig. 5, an embodiment of the present invention further discloses a ground primitive loading apparatus. The map element loading device 50 includes:
an obtaining module 501, configured to obtain an element loading request, where the element loading request includes a real-time scaling;
a selecting module 502, configured to select a map element that includes the real-time scaling in a display condition, where each map element has a display condition, and the display condition includes a scaling range;
and a loading module 503, configured to load the selected map element to the preview interface.
In a specific implementation, the map element loading device may correspond to a Chip having a data processing function in the server, such as a System-On-a-Chip (SOC), a baseband Chip, or the like; or the server comprises a chip module with a data processing function; or to a chip module having a chip with a data processing function, or to a server.
More contents of the working principle and the working mode of the map element loading apparatus 50 may refer to the relevant descriptions in fig. 1 to fig. 4, and are not described herein again.
With regard to each module/unit included in each apparatus and product described in the above embodiments, it may be a software module/unit, or may also be a hardware module/unit, or may also be a part of a software module/unit and a part of a hardware module/unit. For example, for each device or product applied to or integrated into a chip, each module/unit included in the device or product may be implemented by hardware such as a circuit, or at least a part of the module/unit may be implemented by a software program running on a processor integrated within the chip, and the rest (if any) part of the module/unit may be implemented by hardware such as a circuit; for each device or product applied to or integrated with the chip module, each module/unit included in the device or product may be implemented by using hardware such as a circuit, and different modules/units may be located in the same component (e.g., a chip, a circuit module, etc.) or different components of the chip module, or at least some of the modules/units may be implemented by using a software program running on a processor integrated within the chip module, and the rest (if any) of the modules/units may be implemented by using hardware such as a circuit; for each device and product applied to or integrated in the terminal, each module/unit included in the device and product may be implemented by hardware such as a circuit, different modules/units may be located in the same component (e.g., a chip, a circuit module, etc.) or different components in the terminal, or at least part of the modules/units may be implemented by a software program running on a processor integrated in the terminal, and the rest (if any) part of the modules/units may be implemented by hardware such as a circuit.
The embodiment of the invention also discloses a storage medium, wherein the computer-readable storage medium is a nonvolatile storage medium or a non-transitory storage medium, the storage medium is a computer-readable storage medium, a computer program is stored on the storage medium, and the steps of the map element loading method in fig. 1 to 4 can be executed when the computer program runs. The storage medium may include ROM, RAM, magnetic or optical disks, etc. The storage medium may further include a non-volatile (non-volatile) memory or a non-transient (non-transient) memory, etc.
The embodiment of the invention also discloses a server, which may include a memory and a processor, where the memory stores a computer program that can be run on the processor, and the processor may execute the steps of the map element loading method in fig. 1 to 4 when running the computer program.
The "plurality" appearing in the embodiments of the present application means two or more.
The descriptions of the first, second, etc. appearing in the embodiments of the present application are only for illustrating and differentiating the objects, and do not represent the order or the particular limitation of the number of the devices in the embodiments of the present application, and do not constitute any limitation to the embodiments of the present application.
It should be understood that, in the embodiment of the present application, the processor may be a Central Processing Unit (CPU), and the processor may also be other general-purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will also be appreciated that the memory in the embodiments of the subject application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example and not limitation, many forms of Random Access Memory (RAM) are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (enhanced SDRAM), synchronous DRAM (SLDRAM), synchronous Link DRAM (SLDRAM), and direct bus RAM (DR RAM).
The above-described embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. The procedures or functions described in accordance with the embodiments of the present application are produced in whole or in part when the computer instructions or the computer program are loaded or executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire or wirelessly. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, data center, etc., that contains one or more collections of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus, and system may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative; for example, the division of the unit is only a logic function division, and there may be another division manner in actual implementation; for example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other media capable of storing program codes.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. A method for loading a ground primitive, comprising:
obtaining an element loading request, wherein the element loading request comprises a real-time scaling;
selecting map elements containing the real-time scaling in display conditions, wherein each map element has display conditions which comprise scaling ranges;
and loading the selected map elements to a preview interface.
2. The map element loading method of claim 1, wherein the element loading request comprises a target longitude and latitude or an identification of a map element, the identification of the map element being used to determine the target longitude and latitude.
3. The map element loading method according to claim 2, wherein the selecting the map element including the real-time zoom ratio in the display condition comprises:
determining a preview area in the map according to the target longitude and latitude and the real-time zooming scale;
and selecting a map element with a display condition containing the real-time scaling in the preview area.
4. The map element loading method of claim 3, wherein said determining a preview area in a map based on the target longitude and latitude and the real-time zoom scale comprises:
determining the longitude and latitude of each boundary point according to the target longitude and latitude and a preset position relationship, wherein the preset position relationship represents the position relationship between the longitude and latitude of each boundary point and the target longitude and latitude, and different real-time scaling ratios correspond to different preset position relationships;
and determining the latitude and longitude range of the preview area according to the latitude and longitude of each boundary point.
5. The map element loading method according to claim 4, wherein the obtaining manner of the preset positional relationship comprises:
obtaining a plurality of preset position relationships according to the size of the preview interface, wherein the position relationships between the longitude and latitude of each boundary point and the target longitude and latitude are different when the size of the preview interface is different;
and determining the preset position relation according to the real-time scaling.
6. The map element loading method of claim 1, wherein the element loading request comprises a target latitude and longitude, the method further comprising:
acquiring a new element loading request, wherein the new element loading request comprises the changed target longitude and latitude;
calculating the distance between the changed target longitude and latitude and the target longitude and latitude;
when the distance is larger than a preset distance, determining a new preview area in the map according to the changed longitude and latitude of the target and the real-time scaling;
and selecting the map elements with the real-time scaling included in the display conditions in the new preview area.
7. The map element loading method according to claim 1, wherein the selecting the map element including the real-time zoom ratio in the display condition comprises:
acquiring the number of all map elements, and selecting the map elements containing the real-time scaling in display conditions when the number of all map elements is larger than a preset number;
or when the number of all map elements is less than the preset number, all map elements are selected.
8. The map element loading method of claim 1, further comprising:
and acquiring an editing request, and editing the map element according to the editing request.
9. A ground element loading apparatus, comprising:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring an element loading request, and the element loading request comprises a real-time scaling;
the selection module is used for selecting the map elements containing the real-time scaling in the display conditions, each map element has the display conditions, and the display conditions comprise the scaling range;
and the loading module is used for loading the selected map elements to the preview interface.
10. A server comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, wherein the processor, when executing the computer program, performs the steps of the map element loading method of any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, the computer-readable storage medium being a non-volatile storage medium or a non-transitory storage medium, the computer program, when executed by a processor, performing the steps of the map element loading method of any one of claims 1 to 8.
CN202210769275.6A 2022-07-01 2022-07-01 Map element loading method and device, server and computer readable storage medium Pending CN115292428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210769275.6A CN115292428A (en) 2022-07-01 2022-07-01 Map element loading method and device, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210769275.6A CN115292428A (en) 2022-07-01 2022-07-01 Map element loading method and device, server and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115292428A true CN115292428A (en) 2022-11-04

Family

ID=83821780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210769275.6A Pending CN115292428A (en) 2022-07-01 2022-07-01 Map element loading method and device, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115292428A (en)

Similar Documents

Publication Publication Date Title
EP3605365A1 (en) Site selection method and device
CN111006682A (en) Navigation route planning method and device, electronic equipment and storage medium
US20200120171A1 (en) Node processing
CN111897493B (en) Storage space management method and device, electronic equipment and storage medium
CN102831169B (en) Plane figure relation determining method and system in geographical information system
CN116453371B (en) Method and device for identifying returning of shared vehicle, computer equipment and storage medium
CN111210134B (en) Service area division method, device, server and readable storage medium
CN110019538B (en) Data table switching method and device
CN115292428A (en) Map element loading method and device, server and computer readable storage medium
CN105677843A (en) Method for automatically obtaining attribute of four boundaries of parcel
CN113722415B (en) Point cloud data processing method and device, electronic equipment and storage medium
CN113139258B (en) Road data processing method, device, equipment and storage medium
CN113108806B (en) Path planning method, device, equipment and medium
CN115185458A (en) Data writing method and device, storage medium and computer equipment
CN109685751B (en) Distribution area merging method and device, electronic equipment and storage medium
RU2720073C2 (en) Method and electronic device for creating index of segments of polygons
CN112948517A (en) Area position calibration method and device and electronic equipment
CN112966041A (en) Data processing method, device, equipment and storage medium
CN112215523A (en) Method and device for analyzing capability dependency relationship in complex system architecture
CN115905342B (en) Method and device for thinning track of moving object on water and computer equipment
CN116659538B (en) Road diameter changing planning method and device and vehicle-mounted equipment
CN114996600B (en) Multi-temporal image management database data writing and reading method and device
CN111161351B (en) Target component coordinate acquisition method and system
CN114116650A (en) Tile image processing method, device, equipment and storage medium
US20240127310A1 (en) Systems and methods for using bounding box geosearching to identify service providers

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