CN114968414B - Resource mapping method, device, equipment and storage medium - Google Patents
Resource mapping method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114968414B CN114968414B CN202210709729.0A CN202210709729A CN114968414B CN 114968414 B CN114968414 B CN 114968414B CN 202210709729 A CN202210709729 A CN 202210709729A CN 114968414 B CN114968414 B CN 114968414B
- Authority
- CN
- China
- Prior art keywords
- resource
- mapped
- map
- resources
- mapping
- 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.)
- Active
Links
- 238000013507 mapping Methods 0.000 title claims abstract description 121
- 238000000034 method Methods 0.000 title claims abstract description 67
- 238000006243 chemical reaction Methods 0.000 claims description 16
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 238000012806 monitoring device Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a resource mapping method, a device, equipment and a storage medium, wherein the method comprises the following steps: when the first resource in the resource list to be mapped is detected to finish mapping on the target map, automatically determining a second resource to be mapped in the resource list to be mapped; and determining a target position of the second resource on the target map, and displaying an icon of the second resource on the target position. The application improves the efficiency of the resource mapping and solves the technical problem of low efficiency of the resource mapping in the prior art.
Description
Technical Field
The present application relates to the field of resource processing technologies, and in particular, to a resource mapping method, device, apparatus, and storage medium.
Background
In the existing resource mapping method, the resources in a resource tree or a resource list are manually dragged to the corresponding positions of the map to be mapped one by one, so that map position information is given to the resources, and the resources and the map to be mapped generate an association relation, so that when the number of the resources to be mapped is large, the dragging operation is time-consuming and labor-consuming, and the efficiency is low.
That is, the prior art has the technical problem of low efficiency of resource mapping.
Disclosure of Invention
In view of the above, embodiments of the present application provide a method, an apparatus, a device, and a storage medium for mapping a resource, which aim to improve mapping efficiency of the resource, and solve a technical problem of low mapping efficiency of the existing resource.
The embodiment of the application provides a resource mapping method, which comprises the following steps:
when the first resource in the resource list to be mapped is detected to finish mapping on the target map, automatically determining a second resource to be mapped in the resource list to be mapped;
And determining a target position of the second resource on the target map, and displaying an icon of the second resource on the target position.
In one possible embodiment of the application, the method comprises:
and displaying a corresponding type icon of the type to which the resource to be mapped currently belongs when the map is mapped.
In one possible implementation manner of the present application, before the step of automatically determining the second resource to be mapped in the resource list to be mapped when the first resource to be mapped in the resource list to be mapped is detected to be mapped on the target map, the method includes:
acquiring resources to be processed;
Determining a display fine granularity of the target map;
And selecting the resources to be mapped from the resources to be processed according to different resource attributes of the resources to be processed and the fine granularity, and obtaining a resource list to be mapped.
In a possible embodiment of the present application, after the step of automatically adding the second resource to the target location to complete the mapping of the second resource, the method includes:
If the preset graph-up cutoff condition is detected, stopping graph-up of the resources in the resource list to be graph-up;
The preset graph-loading cutoff condition comprises that all graph loading of resources in the resource list to be mapped is completed or an ending instruction for ending the continuous graph loading mode is detected.
In a possible embodiment of the present application, after the step of displaying the icon of the second resource on the target location, the method includes:
determining screen coordinates of the target position in a screen coordinate system;
acquiring a preset conversion relation between the screen coordinate system and a corresponding map coordinate system of the target map;
According to the screen coordinates and the conversion relation, determining map coordinates of the target position in the map coordinate system;
and determining and storing the mapping relation between the map coordinates of the target position and the second resource.
In a possible embodiment of the present application, the resource mapping method further includes:
determining whether the drawing mode is exited or not when an editing instruction for editing the drawing resource is detected;
if the graph-up mode is confirmed to be exited, editing the graph-up resource according to the editing instruction, and carrying out linkage editing on the target position of the graph-up resource and the graph-up resource list to be displayed.
The application also provides a resource mapping device, which comprises:
The first determining module is used for automatically determining second resources to be mapped in the resource list to be mapped when the fact that the mapping of the first resources in the resource list to be mapped on the target map is completed is detected;
And the second determining module is used for determining a target position of the second resource on the target map and displaying an icon of the second resource on the target position.
In one possible embodiment of the present application, the apparatus further comprises: the display module is used for displaying a corresponding type icon of the type to which the resource to be mapped currently belongs when the mapping is performed;
The apparatus further comprises: the first acquisition module is used for acquiring resources to be processed; the fine granularity determining module is used for determining the display fine granularity of the target map; the selection module is used for selecting resources to be mapped from the resources to be processed according to different resource attributes and the fine granularity of the resources to be processed to obtain a resource list to be mapped;
the apparatus further comprises: the stopping module is used for stopping mapping the resources in the resource list to be mapped if the preset mapping cut-off condition is detected; the preset graph-loading cutoff condition comprises that all graph loading of resources in the resource list to be mapped is completed or an ending instruction for ending a continuous graph loading mode is detected;
The resource mapping device further comprises: a third determining module, configured to determine a screen coordinate of the target position in a screen coordinate system; the second acquisition module is used for acquiring a preset conversion relation between the screen coordinate system and a corresponding map coordinate system of the target map; a fourth determining module, configured to determine, according to the screen coordinates and the conversion relationship, map coordinates of the target position in the map coordinate system; a fifth determining module, configured to determine and store a mapping relationship between the map coordinates of the target location and the second resource;
The apparatus further comprises: a sixth determining module, configured to determine, when an edit instruction for editing the mapped resource is detected, whether to exit the mapped mode; and the editing module is used for editing the mapped resource according to the editing instruction and carrying out linkage editing on the target position of the mapped resource and the to-be-mapped resource list if the mapped mode is determined to be exited.
The application also provides a resource mapping device, which is entity node device, comprising: the system comprises a memory, a processor and a program of the resource mapping method stored in the memory and capable of running on the processor, wherein the program of the resource mapping method can realize the steps of the resource mapping method when being executed by the processor.
In order to achieve the above object, there is also provided a storage medium having stored thereon a resource mapping program which, when executed by a processor, implements the steps of any of the resource mapping methods described above.
Compared with the prior art that when map position information is given to the resource, the user is required to manually drag the resource to the corresponding position of the map to be mapped, so that the efficiency of mapping the resource is low, when the first resource in the resource list to be mapped is detected to finish mapping on the target map, the second resource to be mapped in the resource list to be mapped is automatically determined, and after the target position of the second resource on the target map is determined, the icon of the second resource is directly displayed on the target position. That is, in the application, continuous drawing of the resource is automatically realized, the operation that a user repeatedly and manually drags the resource is avoided, and the manual operation flow is shortened, so that the efficiency of drawing the resource is improved, and the technical problem of low efficiency of drawing the resource in the prior art is solved.
Drawings
FIG. 1 is a flow chart of a first embodiment of the method of resource mapping according to the present application;
FIG. 2 is a schematic diagram of a refinement flow before step S10 in the first embodiment of the resource mapping method of the present application;
FIG. 3 is a schematic diagram of a device architecture of a hardware operating environment according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a first scenario involved in the on-resource mapping method of the present application;
FIG. 5 is a schematic diagram of a second scenario involved in the resource mapping method of the present application;
fig. 6 is a schematic diagram of a third scenario involved in the resource mapping method of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The embodiment of the application provides a resource mapping method, and in one embodiment of the resource mapping method, the method is applied to a resource mapping device, and referring to fig. 1, the method comprises the following steps:
Step S10, when the fact that the first resource in the resource list to be mapped is mapped on the target map is detected to be completed, automatically determining the second resource to be mapped in the resource list to be mapped;
and step S20, determining a target position of the second resource on the target map, and displaying an icon of the second resource on the target position.
The present embodiment aims at: and the efficiency of drawing on the resource is improved.
In the application, when the completion of the mapping of the first resource in the resource list to be mapped on the target map is detected, the second resource to be mapped in the resource list to be mapped is automatically determined, and after the target position of the second resource on the target map is determined, the icon of the second resource is directly and automatically displayed on the target position. That is, in the application, continuous drawing of the resource is automatically realized, the operation that a user repeatedly and manually drags the resource is avoided, and the manual operation flow is shortened, so that the efficiency of drawing the resource is improved, and the technical problem of low efficiency of drawing the resource in the prior art is solved.
In the application, when the picture is up, the corresponding type icon of the type of the resource to be mapped is also displayed, and when the picture is up, the corresponding type icon of the type of the resource to be mapped is also displayed, so that the picture mapping process of the current type of resource is clear, and the user can conveniently know the picture mapping progress and the picture mapping state of the current type of resource.
In the application, when a large number of resources are mapped, the resources to be processed of the corresponding resource attributes which can be displayed on the current map are determined according to different resource attributes of the resources to be processed and the display granularity of the map, and then the resources to be processed of the corresponding resource attributes which can be displayed on the current map are added into the resource list of the map to be mapped, so that the waste of resources caused by adding the resources to be processed which cannot be displayed is avoided. In addition, in the embodiment, the mapping processing (according to the attribute and the fine granularity division) is further performed on the resources to be processed which are not mapped in order, so that the mapping efficiency is further improved.
In the application, when all the mapping of the resources in the resource list to be mapped is completed or an ending instruction for ending the continuous mapping mode is detected, the continuous mapping is stopped so as to meet mapping requirements in different scenes.
In the application, the mapping relation between the map coordinates of the target position and the second resources can be automatically determined and stored according to the screen coordinates of the target position in the screen coordinate system, so that the map coordinates can be directly displayed when the resources after the map is displayed are needed again.
In the application, the resource on the graph can be edited, and after the resource on the graph is edited, the target position of the resource on the graph and the resource list to be on the graph are edited in a linkage way instead of manually editing the target position of the resource on the graph and the resource list to be on the graph by a user, so that the resource is saved and the efficiency is improved.
As an example, the resource mapping method may be applied to a resource mapping device, which belongs to a resource mapping apparatus.
As an example, the application scenario of the resource mapping method may specifically be: the resources are located at locations where GPS cannot be accurately located, but the corresponding resources need to be shown on a map for subsequent presentation or supervision.
As one example, resources located in an underground parking lot (GPS cannot be accurately located) need to be presented on a map.
As an example, resources located indoors (GPS cannot be accurately located) need to be presented on a map.
As an example, the resource may be a monitoring device, a fire protection device, a security protection device, and the like, which is not particularly limited.
As an example, after the resources such as the monitoring equipment, the fire-fighting device and the security device are mapped, a user can directly check the setting conditions of the monitoring equipment, the fire-fighting device and the security device in the corresponding area through the map, namely, whether the setting conditions of the monitoring equipment, the fire-fighting device and the security device in the corresponding area meet the requirements or not is judged.
As an example, after the resources such as the monitoring device, the fire protection device and the security protection device are mapped, whether the currently mapped resources need to be added or maintained can be determined based on the deployment situation of the resources determined by the map.
As an example, after the resources such as the monitoring device, the fire protection device and the security protection device are mapped, when a crisis situation occurs, the callable resources can be simply and rapidly judged.
As an example, a query icon is also set on the target map, based on which a required resource can be queried on the target map.
As an example, as shown in fig. 4, the map is a GIS map, supporting scrolling a mouse wheel zoom in and out.
As one example, a map has its own map coordinate system, and when the mouse wheel enlarges and reduces the map, the conversion relationship between the map coordinate system and the screen coordinate system is changed.
The method comprises the following specific steps:
Step S10, when the fact that the first resource in the resource list to be mapped is mapped on the target map is detected to be completed, automatically determining the second resource to be mapped in the resource list to be mapped;
In this embodiment, fig. 4 and fig. 5 are schematic diagrams of a map configuration page on a resource, in both the two schematic diagrams, the left side is a list of resources to be mapped, the right side is a target map, and the target map supports zooming in and zooming out of a scroll mouse wheel.
As an example, the resource list to be mapped specifically includes at least 2 resources.
As an example, the resource list to be mapped may include a plurality of sub-lists, and when the resource list to be mapped includes the plurality of sub-lists, mapping of the resources of the second sub-list is triggered after mapping of the resources of the first sub-list.
As an example, to automatically determine the second resource to be mapped in the resource list to be mapped when the first resource in the resource list to be mapped is detected to be mapped on the target map, a preset program section needs to be set in the resource mapping device, and processing logic is set in the preset program section and is used for automatically executing the step of determining the second resource to be mapped in the resource list to be mapped when the event that the first resource in the resource list to be mapped is detected to be mapped on the target map is completed.
As an example, when it is detected that the first resource in the resource list to be mapped is mapped on the target map, determining that the resource of the next resource to be mapped in the resource list to be mapped is the second resource according to the list display order.
Wherein, referring to fig. 2, before the step of automatically determining the second resource to be mapped in the resource list to be mapped when the first resource to be mapped in the resource list to be mapped is detected to be mapped on the target map, the method comprises:
Step S01, obtaining resources to be processed;
Step S02, determining the display granularity of the target map;
and S03, selecting the resources to be mapped from the resources to be processed according to different resource attributes and the fine granularity of the resources to be processed, and obtaining a resource list to be mapped.
In this embodiment, it is explained how to obtain the resource list to be mapped.
Specifically, the resource to be processed may be a resource to be mapped with a resource amount larger than a preset data amount, that is, only the resource to be mapped with a resource amount larger than the preset data amount needs to be divided into different resource lists to be mapped according to the resource attribute and the fine granularity, and further mapping is performed in multiple times, and for the resource to be mapped with a small number, mapping can be performed in one resource list to be mapped at one time directly.
In this embodiment, the manner of acquiring the resource to be processed may be:
mode one: acquiring imported resources to be processed;
Mode two: and directly butting the resource to be processed from a system in communication connection with the resource mapping device.
After the resources to be processed are obtained, different resource lists to be mapped are correspondingly generated according to different resource attributes of the resources to be processed. The resource attribute includes a type attribute, a name attribute, a scene attribute, or the like, which is not particularly limited.
In the embodiment, when a large number of resources are mapped, different resource lists to be mapped are correspondingly generated according to different resource attributes of the resources to be mapped, and further mapping processing is sequentially performed on the resources to be mapped which are not mapped, so that mapping efficiency is further improved.
In the embodiment, when a large number of resources are mapped, different resource lists to be mapped are correspondingly generated according to different resource attributes of the resources to be processed, so that visual query can be performed according to the resource attributes during subsequent query, and query efficiency is improved.
As an example, the resource attribute is a type attribute, and if the deployment situation of a certain type of monitoring device in a certain area is to be queried in the visual map, the deployment situation is directly queried according to the corresponding attribute as a keyword.
In this embodiment, the larger the display fine granularity is, the more accurate or more accurate the display is, and since the larger the display fine granularity is, the fewer resources to be processed that can be displayed on a map configuration page on one resource are caused, thus, in this embodiment, the further according to the display fine granularity of the map, the determination of the resources to be processed that can display the corresponding resource attribute on the current map may be, for example: the actual area displayed by one pixel of the current map is 100m 2, 10 resources with certain attributes can be displayed on the resource map configuration page (10 resources with certain attributes are configured in the resource map resource list, such as 10 fire protection devices with the same production model are configured), the actual area displayed by one pixel of the current map is 1000m 2, and 100 resources with certain attributes can be configured in the resource map configuration page (100 resources with certain attributes can be configured in the resource map resource list, such as security devices with the same production manufacturer are configured).
In this embodiment, the to-be-processed resources with the corresponding resource attributes that can be displayed on the current map are added to the to-be-processed map resource list, so that resource waste caused by adding the to-be-processed resources that cannot be displayed is avoided.
The method for determining the display granularity of the target map may be: directly read from the configuration information.
In this embodiment, the method includes:
And step A1, displaying a corresponding type icon of the type to which the resource to be mapped currently belongs when mapping is performed.
In this embodiment, when the resource is mapped, the icon of the type corresponding to the type to which the resource to be mapped belongs is displayed, so that the mapping process of the current mapping various types of resources is clear, and the user can conveniently know the mapping progress and mapping state of the current various types of resources.
In the application, it is to be noted that resource types and icons of each type are managed in a unified manner, and each resource type corresponds to one icon.
Specifically, as shown in fig. 5, the user clicks the resource a (the first resource) with a mouse, and at this time, the button of the resource a in the resource list to be mapped is in a selected state, and at the same time, the mouse cursor is displayed as the icon a (or the type of the resource to which the user is queried based on the unique identifier (id) of the resource a, and the icon corresponding to the type, and the mouse cursor is displayed as the type icon a). After the mouse cursor is displayed as an icon A, if the position of a user clicking on a target map is detected, adding the resource A at the clicked position, automatically inquiring a resource list to be mapped after the addition of the resource A is completed, obtaining a resource B which is not mapped next to the resource A, and simultaneously, displaying the mouse cursor as the icon B (or inquiring the type of the resource based on the unique identification (id) of the resource B and the icon corresponding to the type, and displaying the mouse cursor as a type icon B).
Step S20, determining a target position of the second resource on the target map, and displaying an icon of the second resource on the target position;
In this embodiment, determining the target location of the second resource on the target map may be:
if a certain position on the target map is detected to be clicked and confirmed by the user, the certain position is the target position.
In this embodiment, an icon of the second resource is also displayed on the target location.
In this embodiment, when the icon of the second resource is displayed on the target position, the drawing is completed.
After the step of automatically adding the second resource at the target location to complete the mapping of the second resource, the method includes:
If the preset graph-up cutoff condition is detected, stopping graph-up of the resources in the resource list to be graph-up;
The preset graph-loading cutoff condition comprises that all graph loading of resources in the resource list to be mapped is completed or an ending instruction for ending the continuous graph loading mode is detected.
In this embodiment, when all the mapping of the resources in the mapping resource list is completed, the mapping is completed automatically, and when an end instruction for ending the continuous mapping mode is received, the continuous mapping is exited.
Compared with the prior art that when map position information is given to the resource, the user is required to manually drag the resource to the corresponding position of the map to be mapped, so that the efficiency of mapping the resource is low, when the first resource in the resource list to be mapped is detected to finish mapping on the target map, the second resource to be mapped in the resource list to be mapped is automatically determined, and after the target position of the second resource on the target map is determined, the icon of the second resource is directly displayed on the target position. That is, in the application, continuous drawing of the resource is automatically realized, the operation that a user repeatedly and manually drags the resource is avoided, and the manual operation flow is shortened, so that the efficiency of drawing the resource is improved, and the technical problem of low efficiency of drawing the resource in the prior art is solved.
Further, based on the first embodiment of the present application, there is provided another embodiment of the present application, in which, after the step of displaying the icon of the second resource on the target location, the method includes:
step B1, determining screen coordinates of the target position in a screen coordinate system;
Step B2, obtaining a preset conversion relation between the screen coordinate system and a corresponding map coordinate system of the target map;
Step B3, determining map coordinates of the target position in the map coordinate system according to the screen coordinates and the conversion relation;
and B4, determining and storing the mapping relation between the map coordinates of the target position and the second resource.
In this embodiment, the mapping relationship between the map coordinates of the target location and the second resources is specifically determined and stored, specifically, as shown in fig. 6, the screen location coordinates (x ', y') of the target location are determined, and according to the conversion formula of the screen coordinates and the map coordinates, the map coordinates (x, y) of the target location are obtained and stored, and at the same time, the resources a are added to the map coordinate location. At this time, the state of the resource a button in the list is changed to the disabled state.
The conversion formulas of the screen coordinates and the map coordinates are shown as (1) and (2) (specifically, the conversion formulas of the map coordinates and the screen coordinates are obtained by using the similarity ratio of the transverse direction and the longitudinal direction):
W/W'=(X-X0)/X'; (1)
H/H'=(Y-Y0)/Y'; (2)
In the application, the mapping relation between the map coordinates of the target position and the second resources can be automatically determined and stored according to the screen coordinates of the target position in the screen coordinate system, so that the map coordinates can be directly displayed when the resources after the map is displayed are needed again.
Further, according to the first embodiment of the present application, another embodiment of the present application is provided, in which the resource mapping method further includes:
step S40, when an editing instruction for editing the mapped resource is detected, determining whether the mapped resource is exited;
and S50, if the fact that the drawing mode is exited is determined, editing the drawing resource according to the editing instruction, and carrying out linkage editing on the target position of the drawing resource and the to-be-drawn resource list.
In this embodiment, when an edit instruction (an adjustment instruction or a delete instruction) for editing a mapped resource is detected, it is determined whether the mapped mode has been exited, that is, if in the continuous mapped mode, the mapped resource location (e.g., resource a) is to be edited, the mapped mode is to be exited first, specifically, if it is detected that the user clicks the right button, the continuous mapped mode is ended.
If the graph-up mode is confirmed to be exited, editing the graph-up resource according to the editing instruction, and carrying out linkage editing on the target position of the graph-up resource and the graph-up resource list to be displayed.
In this embodiment, since the target position of the resource a (the resource on which the map is already formed) is deleted at the same time, the error storage of the map data is avoided, and the resource waste caused by manually updating the resource list on which the map is to be formed is saved because the linked editing is performed on the resource list on which the map is to be formed.
In the application, the resource on the graph can be edited, and after the resource on the graph is edited, the target position of the resource on the graph and the resource list to be on the graph are edited in a linkage way instead of manually editing the target position of the resource on the graph and the resource list to be on the graph by a user, so that the resource is saved and the efficiency is improved.
Referring to fig. 3, fig. 3 is a schematic device structure diagram of a hardware running environment according to an embodiment of the present application.
As shown in fig. 3, the resource mapping device may include: a processor 1001, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to enable connected communication between the processor 1001 and the memory 1005.
Optionally, the on-resource graphics device may also include a user interface, a network interface, a camera, RF (Radio Frequency) circuitry, sensors, wiFi modules, and the like. The user interface may include a Display, an input sub-module such as a Keyboard (Keyboard), and the optional user interface may also include a standard wired interface, a wireless interface. The network interface may include a standard wired interface, a wireless interface (e.g., WI-FI interface).
It will be appreciated by those skilled in the art that the on-resource mapping device structure shown in FIG. 3 is not limiting and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 3, an operating system, a network communication module, and a map-on-resource program may be included in the memory 1005 as one type of storage medium. An operating system is a program that manages and controls the hardware and software resources of a graphics-on-resource device, supporting the execution of graphics-on-resource programs and other software and/or programs. The network communication module is used to enable communication between components within the memory 1005 and other hardware and software in the system on the resource.
In the resource mapping device shown in fig. 3, a processor 1001 is configured to execute a resource mapping program stored in a memory 1005, to implement the steps of the resource mapping method described in any one of the foregoing.
The specific implementation of the resource mapping device is basically the same as that of each embodiment of the resource mapping method, and is not repeated here.
The application also provides a resource mapping device, which comprises:
The first determining module is used for automatically determining second resources to be mapped in the resource list to be mapped when the fact that the mapping of the first resources in the resource list to be mapped on the target map is completed is detected;
And the second determining module is used for determining a target position of the second resource on the target map and displaying an icon of the second resource on the target position.
In one possible embodiment of the present application, the apparatus further comprises:
the display module is used for displaying a corresponding type icon of the type to which the resource to be mapped currently belongs when the mapping is performed;
And/or the device further comprises: the first acquisition module is used for acquiring resources to be processed; the fine granularity determining module is used for determining the display fine granularity of the target map; and the selection module is used for selecting the resources to be mapped from the resources to be processed according to different resource attributes and the fine granularity of the resources to be processed, and obtaining a resource list to be mapped.
And/or the device further comprises: the stopping module is used for stopping mapping the resources in the resource list to be mapped if the preset mapping cut-off condition is detected; the preset graph-loading cutoff condition comprises that all graph loading of resources in the resource list to be mapped is completed or an ending instruction for ending a continuous graph loading mode is detected;
And/or the resource mapping device further comprises: a third determining module, configured to determine a screen coordinate of the target position in a screen coordinate system; the second acquisition module is used for acquiring a preset conversion relation between the screen coordinate system and a corresponding map coordinate system of the target map; a fourth determining module, configured to determine, according to the screen coordinates and the conversion relationship, map coordinates of the target position in the map coordinate system; a fifth determining module, configured to determine and store a mapping relationship between the map coordinates of the target location and the second resource;
and/or the device further comprises: a sixth determining module, configured to determine, when an edit instruction for editing the mapped resource is detected, whether to exit the mapped mode; and the editing module is used for editing the mapped resource according to the editing instruction and carrying out linkage editing on the target position of the mapped resource and the to-be-mapped resource list if the mapped mode is determined to be exited.
The specific implementation manner of the resource mapping device of the present application is basically the same as that of each embodiment of the resource mapping method, and will not be described herein.
Embodiments of the present application provide a storage medium, where one or more programs are stored, where the one or more programs are further executable by one or more processors to implement the steps of the method for mapping resources described in any of the above.
The specific implementation manner of the storage medium of the present application is basically the same as that of each embodiment of the resource mapping method, and will not be repeated here.
The embodiment of the application provides a resource mapping system, which comprises: camera, radar, resource mapping device according to any of the preceding claims.
The specific implementation of the resource mapping system of the present application is basically the same as the embodiments of the resource mapping method described above, and will not be described herein again.
The application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the resource mapping method described above.
The specific implementation manner of the computer program product of the present application is basically the same as the above embodiments of the resource mapping method, and will not be repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be apparent to those skilled in the art that the above embodiment method may be implemented by means of a software-and-hardware platform, or may be implemented by hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (9)
1. The resource mapping method is characterized by being applied to a scene that a resource is positioned at a position which cannot be accurately positioned by a GPS (global positioning system) but a corresponding resource is required to be displayed on a map, and the method comprises the following steps:
when the first resource in the resource list to be mapped is detected to finish mapping on the target map, automatically determining a second resource to be mapped in the resource list to be mapped;
determining a target position of the second resource on the target map, and displaying an icon of the second resource on the target position;
Before the step of automatically determining the second resource to be mapped in the resource list to be mapped when the first resource to be mapped in the resource list to be mapped is detected to be mapped on the target map, the method comprises the following steps:
acquiring resources to be processed;
Determining a presentation fine granularity of the target map, the presentation fine granularity being used to determine resources to be processed that can present corresponding resource attributes on a current map;
And selecting the resources to be mapped from the resources to be processed according to different resource attributes of the resources to be processed and the display granularity, and obtaining a resource list to be mapped.
2. The resource mapping method of claim 1, wherein the method further comprises:
and displaying a corresponding type icon of the type to which the resource to be mapped currently belongs when the map is mapped.
3. The resource mapping method according to claim 1, wherein after the step of automatically determining the second resource to be mapped in the resource list to be mapped, the method includes:
If the preset graph-up cutoff condition is detected, stopping graph-up of the resources in the resource list to be graph-up;
The preset graph-loading cutoff condition comprises that all graph loading of resources in the resource list to be mapped is completed or an ending instruction for ending the continuous graph loading mode is detected.
4. The resource mapping method of claim 1, wherein after the step of displaying the icon of the second resource at the target location, the method comprises:
determining screen coordinates of the target position in a screen coordinate system;
acquiring a preset conversion relation between the screen coordinate system and a corresponding map coordinate system of the target map;
According to the screen coordinates and the conversion relation, determining map coordinates of the target position in the map coordinate system;
and determining and storing the mapping relation between the map coordinates of the target position and the second resource.
5. The resource mapping method of claim 1, wherein the resource mapping method further comprises:
determining whether the drawing mode is exited or not when an editing instruction for editing the drawing resource is detected;
if the graph-up mode is confirmed to be exited, editing the graph-up resource according to the editing instruction, and carrying out linkage editing on the target position of the graph-up resource and the graph-up resource list to be displayed.
6. A resource mapping device, which is applied to a scene where a resource is located at a position where GPS cannot be accurately located, but a corresponding resource needs to be displayed on a map, the device comprising:
The first determining module is used for automatically determining second resources to be mapped in the resource list to be mapped when the fact that the mapping of the first resources in the resource list to be mapped on the target map is completed is detected;
A second determining module, configured to determine a target position of the second resource on the target map, and display an icon of the second resource on the target position;
The apparatus further comprises: the first acquisition module is used for acquiring resources to be processed; a fine granularity determination module for determining a presentation fine granularity of the target map, the presentation fine granularity being used to determine resources to be processed that can present corresponding resource attributes on a current map; and the selection module is used for selecting the resources to be mapped from the resources to be processed according to different resource attributes of the resources to be processed and the display fine granularity, and obtaining a resource list to be mapped.
7. The resource mapping apparatus of claim 6, wherein the apparatus further comprises:
the display module is used for displaying a corresponding type icon of the type to which the resource to be mapped currently belongs when the mapping is performed;
the apparatus further comprises: the stopping module is used for stopping mapping the resources in the resource list to be mapped if the preset mapping cut-off condition is detected; the preset graph-loading cutoff condition comprises that all graph loading of resources in the resource list to be mapped is completed or an ending instruction for ending a continuous graph loading mode is detected;
The resource mapping device further comprises: a third determining module, configured to determine a screen coordinate of the target position in a screen coordinate system; the second acquisition module is used for acquiring a preset conversion relation between the screen coordinate system and a corresponding map coordinate system of the target map; a fourth determining module, configured to determine, according to the screen coordinates and the conversion relationship, map coordinates of the target position in the map coordinate system; a fifth determining module, configured to determine and store a mapping relationship between the map coordinates of the target location and the second resource;
The apparatus further comprises: a sixth determining module, configured to determine, when an edit instruction for editing the mapped resource is detected, whether to exit the mapped mode; and the editing module is used for editing the mapped resource according to the editing instruction and carrying out linkage editing on the target position of the mapped resource and the to-be-mapped resource list if the mapped mode is determined to be exited.
8. A resource mapping device comprising a memory, a processor and a resource mapping program stored on the memory and executable on the processor, the processor implementing the steps of the resource mapping method of any of claims 1 to 5 when the resource mapping program is executed.
9. A storage medium having stored thereon a resource mapping program which when executed by a processor performs the steps of the resource mapping method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210709729.0A CN114968414B (en) | 2022-06-21 | 2022-06-21 | Resource mapping method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210709729.0A CN114968414B (en) | 2022-06-21 | 2022-06-21 | Resource mapping method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114968414A CN114968414A (en) | 2022-08-30 |
CN114968414B true CN114968414B (en) | 2024-08-27 |
Family
ID=82965129
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210709729.0A Active CN114968414B (en) | 2022-06-21 | 2022-06-21 | Resource mapping method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114968414B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109215486A (en) * | 2018-07-18 | 2019-01-15 | 平安科技(深圳)有限公司 | Electronic map mark and display methods, device, terminal device and storage medium |
CN111695045A (en) * | 2019-03-14 | 2020-09-22 | 北京嘀嘀无限科技发展有限公司 | Thermodynamic diagram display and thermodynamic data notification method and device |
CN113986546A (en) * | 2021-10-29 | 2022-01-28 | 苏州易德龙科技股份有限公司 | Centralized LabVIEW processing method for appointed software and hardware resources |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105812643A (en) * | 2014-12-30 | 2016-07-27 | 中兴通讯股份有限公司 | Puzzle processing method and device |
CN110069591A (en) * | 2019-04-16 | 2019-07-30 | 湖北地信科技集团股份有限公司 | Map label method, user equipment, storage medium and device |
-
2022
- 2022-06-21 CN CN202210709729.0A patent/CN114968414B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109215486A (en) * | 2018-07-18 | 2019-01-15 | 平安科技(深圳)有限公司 | Electronic map mark and display methods, device, terminal device and storage medium |
CN111695045A (en) * | 2019-03-14 | 2020-09-22 | 北京嘀嘀无限科技发展有限公司 | Thermodynamic diagram display and thermodynamic data notification method and device |
CN113986546A (en) * | 2021-10-29 | 2022-01-28 | 苏州易德龙科技股份有限公司 | Centralized LabVIEW processing method for appointed software and hardware resources |
Also Published As
Publication number | Publication date |
---|---|
CN114968414A (en) | 2022-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022022700A1 (en) | Application icon display method and apparatus, and electronic device | |
CN109215486B (en) | Electronic map marking and displaying method and device, terminal equipment and storage medium | |
CN110413161B (en) | Component configuration method and device and electronic equipment | |
CN110807161A (en) | Page framework rendering method, device, equipment and medium | |
CN112395381A (en) | Equipment state display method and device, electronic equipment and storage medium | |
CN105760458A (en) | Picture processing method and electronic equipment | |
CN112560422A (en) | Chart processing method, device, equipment and medium | |
CN114968414B (en) | Resource mapping method, device, equipment and storage medium | |
CN106710272B (en) | Method and device for providing real-time road condition information | |
CN110672102A (en) | Visual auxiliary robot initialization positioning method, robot and readable storage medium | |
CN117671177A (en) | Large-scale three-dimensional scene construction method and system based on digital twin technology | |
KR102282284B1 (en) | Method, apparatus, device, and storage medium for providing visual representation of set of objects | |
CN112344935A (en) | Robot map management method, device, equipment and storage medium | |
CN109783748B (en) | Display method, device and equipment for display field and readable storage medium | |
CN109919706B (en) | Application quotation data processing method, device, equipment and readable storage medium | |
CN110648402A (en) | Method, device and equipment for placing virtual object along curve | |
CN117149889A (en) | Graph data processing method and related device | |
CN111489295B (en) | Image processing method, electronic device, and storage medium | |
CN114820940A (en) | Park model construction method and device, electronic equipment and storage medium | |
CN114154208A (en) | Method and device for moving primitives across drawings, computer equipment and storage medium | |
CN111338741B (en) | Task progress display method and device and storage medium | |
CN114564268A (en) | Equipment management method and device, electronic equipment and storage medium | |
CN112395384A (en) | Map configuration method and device, intelligent robot and storage medium | |
CN114461960A (en) | Page generation method, page display method and device | |
CN110751417A (en) | Storage model establishing 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |