Drawing processing method and device, equipment and storage medium

By using layer processing devices to convert and grid drawings, the problem of inconsistent management of drawings from different sources is solved, achieving unified management of drawings and saving resources, thus improving the user experience.

CN114782649BActive Publication Date: 2025-11-28ALIBABA (CHINA) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210476462.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2025-11-28
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

Existing technologies cannot achieve unified management of drawings from different sources, resulting in the need to use different software or graphics engines for operation in different usage scenarios, which wastes processing resources.

Method used

By using layer processing devices to convert and mesh drawings from different sources, the target mesh of the drawings is loaded and rendered for display on the terminal, avoiding global rendering and loading.

Benefits of technology

It enables unified management of drawings from different sources, saving processing resources and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114782649B_ABST
    Figure CN114782649B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a drawing processing method, device and equipment and a storage medium. The method comprises: determining a grid drawing according to drawings from other sources, the grid drawing comprising a plurality of grids; loading and rendering at least one target grid in the plurality of grids according to a display request of a terminal, and sending the at least one target grid after loading and rendering to the terminal, so that the terminal displays the at least one target grid after loading and rendering. The embodiments can realize unified management of drawings from different sources, while saving processing resources.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of drawing processing, and particularly relate to a drawing processing method, device, equipment and storage medium. BACKGROUND

[0002] In the construction of a construction project, there are often multiple construction participants. Since the software used on the terminals of the construction participants is not unified, different formats of drawings are output.

[0003] If a drawing in a certain file format needs to be opened, the drawing needs to be converted into a file format corresponding to different software respectively, so that different software or graphics engines need to be used for operation in different use scenarios.

[0004] Therefore, the prior art cannot realize unified management of drawings from different sources, and rendering and loading of the drawings are global, wasting processing resources. SUMMARY

[0005] Embodiments of the present application provide a drawing processing method, device, equipment and storage medium to realize unified management of drawings from different sources and save processing resources.

[0006] In a first aspect, embodiments of the present application provide a drawing processing method, which comprises:

[0007] determining a grid drawing according to drawings from other sources, the grid drawing comprising a plurality of grids;

[0008] loading and rendering at least one target grid in the plurality of grids according to a display request of a terminal, and sending the at least one target grid after loading and rendering to the terminal, so that the terminal displays the at least one target grid after loading and rendering.

[0009] Optionally, the determining the grid drawing according to the drawings from other sources comprises:

[0010] format converting the drawings from other sources to obtain a target drawing, the format of the target drawing being a target format;

[0011] grid processing the target drawing to obtain the grid drawing.

[0012] Optionally, the determining the grid drawing according to the drawings from other sources comprises:

[0013] grid processing the drawings from other sources to obtain the grid drawing.

[0014] Optionally, the determining the grid drawing according to the drawings from other sources comprises:

[0015] grid the other source drawing to obtain a divided drawing;

[0016] map the divided drawing to obtain description data corresponding to each grid;

[0017] obtain a grid drawing according to the divided drawing and the description data corresponding to each grid.

[0018] Optionally, the loading and rendering of at least one target grid in the plurality of grids according to the request of the terminal to make the terminal display the at least one target grid comprises:

[0019] receive the request sent by the terminal, the request including a target number of grids;

[0020] load and render the target number of target grids to obtain a target grid drawing to make the terminal display the target grid drawing, the target grid drawing being composed of the at least one target grid.

[0021] Optionally, the request further includes a target layer; and the loading and rendering of the target number of target grids to obtain the target grid drawing comprises:

[0022] load and render the target number of target grids in the target layer to obtain a target layer target grid drawing to make the terminal display the target layer target grid drawing, the target layer target grid drawing being composed of the at least one target grid.

[0023] Optionally, the method further comprises:

[0024] responding to a connection request initiated by a terminal;

[0025] according to the connection request, finding a previous request sent by the terminal and loading and rendering at least one target grid corresponding to the previous request to make the terminal display the at least one target grid.

[0026] In a second aspect, an embodiment of the present application provides a drawing processing device, the device comprising:

[0027] a first processing module configured to determine a grid drawing according to a drawing from another source, the grid drawing including a plurality of grids;

[0028] The second processing module is configured to load and render at least one target grid in the plurality of grids according to a display request of the terminal, and send the at least one target grid after being loaded and rendered to the terminal, so that the terminal displays the at least one target grid after being loaded and rendered.

[0029] In a third aspect, an electronic device is provided, including a processor and a memory connected with the processor;

[0030] The memory stores computer-executable instructions.

[0031] The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of the first aspect.

[0032] In a fourth aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the method according to any one of the first aspect is implemented.

[0033] The method and device for processing drawings provided by the embodiments of the present application first determine a grid drawing according to drawings from other sources, and the grid drawing includes a plurality of grids. Then, at least one target grid in the plurality of grids is loaded and rendered according to a display request of the terminal, and the at least one target grid after being loaded and rendered is sent to the terminal, so that the terminal displays the at least one target grid after being loaded and rendered. By performing grid processing on drawings from other sources to obtain a grid drawing, specific drawing data from different sources can be provided for the terminal, and unified management is achieved. When the terminal sends a display request, at least one target grid in the plurality of grids in the grid drawing can be loaded and rendered according to the display request. When the terminal requests to display specific drawing data, the user is provided with the entire drawing data, and then the entire drawing needs to be loaded and rendered, which wastes processing resources and occupies too much display space. Therefore, by using the grid drawing, at least one target grid requested to be displayed in the display request can be loaded, rendered and displayed for the terminal based on the display request of the terminal, resources are saved and the occupation of display space is reduced, irrelevant data is avoided to be provided for the terminal, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0035] Figure 1 An interactive schematic diagram of the drawing processing method provided by the embodiment of the present application is shown in FIG. 1;

[0036] Figure 2 A flow schematic diagram of the drawing processing method provided by the embodiment of the present application is shown in FIG. 2;

[0037] Figure 3 A scene schematic diagram of the drawing processing method provided by the embodiment of the present application is shown in FIG. 3;

[0038] Figure 4 A structure schematic diagram of the drawing processing device provided by the embodiment of the present application is shown in FIG. 4;

[0039] Figure 5 A hardware structure schematic diagram of the electronic device provided by the embodiment of the present application is shown in FIG. 5. DETAILED DESCRIPTION

[0040] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work belong to the scope of protection of the present application.

[0041] The terms "first", "second", "third", "fourth" and the like (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can also include other order instances in addition to those illustrated or described. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily limit to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0042] The existing drawing processing method needs to convert the drawing into the file format corresponding to different software respectively if it is necessary to open a drawing in a certain file format, resulting in the need to use different software or graphics engines for operation in different use scenarios. Therefore, the prior art cannot realize the unified management of drawings of different sources, and the rendering and loading of the drawings are global, wasting processing resources.

[0043] To solve the above problems, the application provides a technical scheme, which is that a layer processing device is used to process drawings of different sources, such as format unification and meshing, and the layer processing device can load and render the processed drawings, without the need of loading and rendering by a terminal, and the drawings can be directly displayed, thereby solving the problem that the drawings cannot be opened due to different formats caused by different sources. In addition, when a terminal sends a display request to the layer processing device, the layer processing device can load and render at least one target mesh requested to be displayed in the display request, without the need of loading and rendering the entire drawing, thereby saving processing resources, and the terminal can only display the drawing, without the need of being limited by formats and the like to cause the drawing of different sources to be unable to be opened. Therefore, the drawings of different sources are uniformly managed, processing resources are saved, and user experience is improved.

[0044] Figure 1 An interaction diagram of a drawing processing method provided by an embodiment of the application is shown in FIG. 1. Figure 1 The execution subject of the drawing processing method can be a layer processing device, which can be a layer gateway device. Specifically, the layer processing device can obtain drawings sent or uploaded by different software devices or suppliers (i.e., third-party devices), that is, the layer processing device receives drawings of other sources. When the drawings are from different suppliers or software, the formats are often not unified. The layer processing device can convert the drawings of different sources into a format that can be recognized by a terminal, and can also mesh the drawings. When the terminal applies to view data of a part of the drawings, the layer processing device only needs to load and render the part of the mesh (i.e., at least one target mesh) applied to be viewed by the terminal, and then sends the at least one target mesh loaded and rendered to the terminal. The terminal directly displays the at least one target mesh loaded and rendered, without being limited by formats and the like to cause the drawing of different sources to be unable to be opened. Therefore, the drawings of different sources are uniformly managed, processing resources are saved, and user experience is improved.

[0045] The technical scheme of the application is described in detail in the following specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes can not be described in some embodiments.

[0046] Figure 2 A flowchart of a drawing processing method provided by an embodiment of the application is shown in FIG. 2. The method of the embodiment can be executed by a drawing processing apparatus or a drawing processing device, such as a layer gateway. The drawing processing apparatus can be in the form of software and / or hardware and can be arranged in an electronic device. As shown in FIG. 2, the method of the embodiment can include the following steps. Figure 2

[0047] S201, determining a meshed drawing according to a drawing of other sources. ​

[0048] The grid paper includes a plurality of grids.

[0049] In this embodiment, the drawing paper is taken as an example of building drawing paper, and the building drawing paper is subjected to grid processing. The grid processing can include a preset scale, which at least includes a number of grids of the drawing paper when no scaling operation is performed and different grid sizes when scaling is performed. The building drawing paper is subjected to grid processing according to the preset scale to obtain grid paper.

[0050] S202. Loading and rendering at least one target grid in the plurality of grids according to a display request of a terminal, and sending the at least one target grid after loading and rendering to the terminal, so that the terminal displays the at least one target grid after loading and rendering.

[0051] The terminal can be a user device for viewing or editing the drawing paper.

[0052] In this embodiment, the layer gateway receives drawing paper provided by different suppliers or software. Then the drawing paper can be output in a unified format. The process can be achieved by selecting a common format provided by different suppliers or software. The drawing paper of different sources can also be subjected to grid processing. The purpose of the grid processing is to facilitate the user to view or edit the drawing paper. When the terminal sends a request, the entire drawing paper does not need to be loaded and rendered, and only the at least one target grid needs to be loaded and rendered, thereby saving resources. At the terminal, the at least one target grid after loading and rendering is displayed, and the terminal does not need to be loaded and rendered again, and can directly view or edit the drawing data.

[0053] The drawing processing method provided in the application first determines a gridded drawing according to drawings of other sources, the gridded drawing comprising a plurality of grids; then loads and renders at least one target grid in the plurality of grids according to a display request of a terminal, and sends the at least one target grid after loading and rendering to the terminal, so that the terminal displays the at least one target grid after loading and rendering. By performing grid processing on drawings of other sources to obtain a gridded drawing, specific drawing data of different sources can be provided for the terminal, and unified management is realized. When the terminal sends a display request, at least one target grid in the plurality of grids in the gridded drawing can be loaded and rendered according to the display request, so that when the terminal requests to display specific drawing data, the user is not provided with the entire drawing data, and then the entire drawing needs to be loaded and rendered, which wastes processing resources and occupies too much display space. Therefore, by using the gridded drawing, at least one target grid requested to be displayed in the display request can be loaded, rendered and displayed for the terminal based on the display request of the terminal, resources are saved and the occupation of display space is reduced, and irrelevant data is avoided to be provided for the terminal, thereby improving the user experience.

[0054] Based on the method, Figure 2 The embodiments of the application also provide some specific implementation solutions of the method, which are described below.

[0055] Optionally, the embodiments above are based on the detailed description of determining the gridded drawing. According to drawings of other sources, the gridded drawing can be determined by at least three ways as follows:

[0056] Way 1, first converting the formats of drawings of different sources, and then performing gridded processing. The conversion can be realized by the following steps:

[0057] Step a1, converting the format of the drawing of other sources to obtain a target drawing, the format of the target drawing being a target format;

[0058] Step a2, performing gridded processing on the target drawing to obtain a gridded drawing.

[0059] In the embodiments, the layer gateway can receive drawings sent or uploaded by different software devices or devices of different suppliers. The drawings here can be drawings of different formats. In order to realize unified management of drawings, drawings of other sources are converted into a predefined format.

[0060] After format conversion, the layer gateway can determine the unit grid size and the unit grid number according to the size of the drawing; then divide the drawing into a plurality of grids according to the grid size and the grid number to obtain a gridded drawing. This grid division method can realize that different grids are displayed under different display scales and the details of the corresponding drawing contents of the grids are different.

[0061] Way 2, direct meshing processing. The following steps can be implemented:

[0062] Meshing the other source drawings to obtain meshed drawings.

[0063] In this embodiment, meshing each drawing can be achieved by the execution process of way 1. In addition, the drawings can have layers. For drawings with layers, the number of layers of the drawings can be obtained first. Then, according to the preset scaling ratio and the number of layers, the mesh size and the corresponding number of meshes of each layer are determined. Then, according to the mesh size and the corresponding number of meshes of each layer, each layer is divided into multiple meshes to obtain meshed drawings.

[0064] Taking a certain scaling ratio as an example, different number of layers, different mesh size and number of meshes are displayed under the scaling ratio.

[0065] Way 3, meshing first and then filling details of the mesh. The following steps can be implemented:

[0066] Step b1, meshing the other source drawings to obtain divided drawings;

[0067] Step b2, mapping the divided drawings to obtain description data corresponding to each mesh;

[0068] Step b3, obtaining meshed drawings according to the divided drawings and the description data corresponding to each mesh.

[0069] In this embodiment, each drawing is first meshed, and then the divided drawings are filled with description data to generate meshed drawings. The meshed drawings here have description data corresponding to each mesh in addition to the drawings themselves.

[0070] The meshing method can be: determining the unit mesh size and the unit mesh number according to the size of the drawings; then dividing the drawings into multiple meshes according to the mesh size and the mesh number to obtain meshed drawings. Alternatively, the number of layers of the drawings can be obtained; then, according to the preset scaling ratio and the number of layers, the mesh size and the corresponding number of meshes of each layer are determined; then, according to the mesh size and the corresponding number of meshes of each layer, each layer is divided into multiple meshes to obtain meshed drawings.

[0071] Through the meshed drawings, at least one target mesh requested to be displayed in the display request can be loaded, rendered and displayed for the terminal based on the display request of the terminal, which saves resources and reduces the occupation of display space, avoids providing irrelevant data for the terminal, and improves user experience.

[0072] Optionally, the embodiment above is based on the detailed description of the loading and rendering of the grid. According to the request of the terminal, at least one target grid in the plurality of grids is loaded and rendered to enable the terminal to display the at least one target grid, which can be achieved by the following steps:

[0073] Step c1, receiving the request sent by the terminal, wherein the request includes a target number of grids;

[0074] Step c2, loading and rendering according to the target number of target grids to obtain a target grid drawing, so that the terminal displays the target grid drawing, and the target grid drawing is composed of the at least one target grid.

[0075] In the embodiment, the display request of the terminal can be used to determine the display ratio corresponding to the display request. Then, the display ratio is used to determine the associated data of at least one target grid from the plurality of grids, wherein the associated data includes the number of target grids displayed on the screen of the terminal and the size of the target grid. Then, the number of target grids and the size of the target grid are used to load and render at least one target grid and display the at least one target grid on the screen of the terminal.

[0076] Optionally, the embodiment above is based on the detailed description of the determination of the target grid drawing. The request further includes a target layer. The loading and rendering according to the target number of target grids to obtain the target grid drawing can be achieved by the following steps:

[0077] The target number of target grids of the target layer is loaded and rendered to obtain the target number of grid drawings of the target layer, so that the terminal displays the target number of grid drawings of the target layer, and the target number of grid drawings of the target layer is composed of the at least one target grid.

[0078] In the embodiment, the display request of the terminal can be used to determine the zoom ratio of the user. Then, according to the zoom ratio and the preset corresponding relationship between the zoom ratio and the display mode of each layer, the associated data of at least one target grid in each layer is determined, wherein the associated data includes the number of target grids displayed on the target layer (or target layer) on the screen of the terminal and the size of the target grid. The preset corresponding relationship is used to represent the relationship between the zoom ratio and the number of grids and the size of the grid displayed on the screen of the terminal. Then, according to the number of target grids and the size of the target grid, at least one target grid in the target layer is loaded and rendered, and at least one target grid in the target layer is displayed on the screen of the terminal.

[0079] Optionally, the embodiment is based on the above-mentioned embodiment, and the drawing processing method is described in detail. The drawing processing method can also be implemented through the following steps:

[0080] Step d1, responding to a connection request initiated by a terminal;

[0081] Step d2, according to the connection request, finding the last request sent by the terminal, and loading and rendering at least one target grid corresponding to the last request, so that the terminal displays the at least one target grid.

[0082] In the actual construction scene, the terminal used by the user may need to continuously view the drawing content of the corresponding construction progress within a certain period. For example, within a certain construction period, a building is completed, and during this period, the corresponding target grid may need to be repeatedly viewed. In order to quickly respond to user needs and improve user experience, when the terminal is powered on or the APP or webpage is opened, it is considered that the user may need to view the drawing data of the building, and the layer gateway loads and renders at least one target grid corresponding to the historical viewing record based on the triggering operation of the terminal, and sends the at least one target grid to the terminal, so that the user using the terminal can view the related drawing data in time.

[0083] Specifically, when the layer gateway receives a connection request initiated by a terminal, the layer gateway sends at least one target grid corresponding to the last request to the terminal. The connection request here can be a connection request of the terminal to the APP or webpage, to open the APP or webpage.

[0084] Exemplarily, referring to Figure 3 , as shown, Figure 3 The scene schematic diagram of the drawing processing method provided by the embodiment of the application is shown. When the terminal is powered on or the APP or webpage is opened, an operation for sending a connection request is triggered, and the connection request is sent to the layer gateway (or layer gateway device). Then, based on the connection request, the layer gateway automatically finds the last application record of the terminal, and then defaults that the terminal may view the at least one target grid again, and then sends the at least one target grid loaded and rendered to the terminal.

[0085] In the application, the layer gateway receives drawings provided by different suppliers or software from other sources; and outputs the drawings in a unified format, thereby realizing unified management of multiple suppliers and multiple software products, facilitating editing and viewing of users; through gridization of the construction drawings, the drawings are loaded and rendered according to the gridization, thereby avoiding global rendering and loading, and saving processing resources.

[0086] Based on the same idea, the embodiment of the specification also provides a device corresponding to the above-mentioned method, as shown in Figure 4 ,Figure 4 A structural schematic diagram of a drawing processing device provided in an embodiment of the present application is shown. The drawing processing device can include:

[0087] The first processing module 401 is configured to determine a grid drawing according to drawings from other sources, the grid drawing including a plurality of grids.

[0088] The second processing module 402 is configured to load and render at least one target grid in the plurality of grids according to a display request of a terminal, and send the at least one target grid after being loaded and rendered to the terminal, so that the terminal displays the at least one target grid after being loaded and rendered.

[0089] In the embodiment, the layer gateway receives drawings from other sources provided by different suppliers or software. Then the drawings can be output in a unified format; this process can be achieved by selecting a common format provided by different suppliers or software to output the drawings. The drawings from different sources can also be processed by griding. The purpose of griding is to facilitate user viewing or editing. When the terminal sends a request, it is not necessary to load and render the entire drawing, but only the at least one target grid requested needs to be loaded and rendered, thus saving resources. Meanwhile, the at least one target grid after being loaded and rendered is displayed at the terminal, so the terminal does not need to be loaded and rendered again, but can directly view or edit the drawing data.

[0090] In the embodiment, the first processing module 401 and the second processing module 402 are configured to determine a grid drawing according to drawings from other sources, the grid drawing including a plurality of grids; and then load and render at least one target grid in the plurality of grids according to a display request of a terminal, and send the at least one target grid after being loaded and rendered to the terminal, so that the terminal displays the at least one target grid after being loaded and rendered. By processing the drawings from other sources by griding, the grid drawing can provide specific drawing data from different sources for the terminal, thus achieving unified management. When the terminal sends a display request, at least one target grid in the plurality of grids in the grid drawing can be loaded and rendered according to the display request, thus avoiding the need to provide the user with the entire drawing data when the terminal requests to display specific drawing data, and then loading and rendering the entire drawing, which wastes processing resources and occupies too much display space. Therefore, by using the grid drawing, the terminal can be loaded, rendered and displayed with at least one target grid requested to be displayed in the display request based on the display request of the terminal, thus saving resources and reducing the occupation of display space, while avoiding providing irrelevant data for the terminal, thus improving user experience.

[0091] Optionally, the first processing module is specifically configured to:

[0092] The format of the target drawing is a target format.

[0093] The target drawing is subjected to a meshing process to obtain a meshed drawing.

[0094] In this embodiment, the layer gateway can receive drawings sent or uploaded by different software devices or devices of different suppliers. The drawings can be drawings in different formats. In order to realize unified management of the drawings, drawings from other sources are converted into a predefined format.

[0095] After format conversion, the layer gateway can determine the unit grid size and the number of unit grids according to the size of the drawing. Then, the drawing is divided into a plurality of grids according to the grid size and the number of grids to obtain a meshed drawing. This grid division method can realize different grid display and different detail levels of the corresponding drawing content under different display scales.

[0096] Optionally, the first processing module is specifically configured to:

[0097] The other source drawings are subjected to a meshing process to obtain a meshed drawing.

[0098] In this embodiment, the meshing process of each drawing can be realized by the execution process of the meshing in mode 1. In addition, the drawing can have layers. For the drawing with layers, the number of layers of the drawing can be obtained first. Then, according to the preset scaling ratio and the number of layers, the grid size of each layer and the corresponding number of grids are determined. Then, according to the grid size of each layer and the corresponding number of grids, each layer is divided into a plurality of grids to obtain a meshed drawing.

[0099] Taking a certain scaling ratio as an example, different numbers of layers result in different grid sizes and numbers of grids displayed under the scaling ratio.

[0100] Optionally, the first processing module is specifically configured to:

[0101] The other source drawings are subjected to a meshing process to obtain a meshed drawing.

[0102] The divided drawing is mapped to obtain description data corresponding to each grid.

[0103] According to the divided drawing and the description data corresponding to each grid, a meshed drawing is obtained.

[0104] First, the drawings are subjected to a meshing process, and then the divided drawings are subjected to a description data filling process to generate a meshed drawing. The meshed drawing has description data corresponding to each grid in addition to the drawing itself.

[0105] The grid method can be: determining a unit grid size and a unit grid quantity according to the size of the drawing; and then dividing the drawing into a plurality of grids according to the grid size and the grid quantity to obtain a grid drawing. Alternatively, obtaining a number of layers of the drawing; then determining a grid size and a corresponding grid quantity of each layer according to a preset scaling ratio and the number of layers; and then dividing each layer into a plurality of grids according to the grid size and the corresponding grid quantity of each layer to obtain the grid drawing.

[0106] By means of the grid drawing, at least one target grid requested to be displayed in the display request can be loaded, rendered and displayed for the terminal based on the display request of the terminal, resource is saved and the occupation of display space is reduced, irrelevant data is avoided to be provided for the terminal, and user experience is improved.

[0107] Optionally, the second processing module is specifically configured to:

[0108] receiving a request sent by the terminal, the request including a target quantity of grids;

[0109] loading and rendering the target quantity of target grids to obtain a target grid drawing, so that the terminal displays the target grid drawing, the target grid drawing being composed of the at least one target grid.

[0110] In this embodiment, the display request corresponding display ratio of the terminal can be determined according to the display request of the terminal; then the associated data of at least one target grid is determined from a plurality of grids according to the display ratio, the associated data including a target grid quantity and a target grid size displayed on the screen of the terminal; and then at least one target grid is loaded and rendered according to the target grid quantity and the target grid size, and the at least one target grid is displayed on the screen of the terminal.

[0111] Optionally, the second processing module is specifically configured to:

[0112] loading and rendering the target quantity of target grids of the target layer to obtain a grid drawing of the target quantity of target grids of the target layer, so that the terminal displays the grid drawing of the target quantity of target grids of the target layer, the grid drawing of the target quantity of target grids of the target layer being composed of the at least one target grid.

[0113] In this embodiment, the zoom scale of the user can be determined according to a display request of the terminal; then, according to the zoom scale and a preset corresponding relationship between the zoom scale and display modes of each layer, the associated data of at least one target grid in each layer is determined, the associated data including a target grid quantity and a target grid size on a target layer (or a target layer) displayed on the screen of the terminal; wherein, the preset corresponding relationship is used to represent the relationship between the zoom scale and the grid quantity and the grid size displayed on the screen of the terminal; and then, according to the target grid quantity and the target grid size, at least one target grid in the target layer is loaded and rendered, and the at least one target grid in the target layer is displayed on the screen of the terminal.

[0114] Optionally, the drawing processing apparatus can further include a third processing module; the third processing module is configured to:

[0115] in response to a connection request initiated by the terminal;

[0116] According to the connection request, the last request sent by the terminal is found, and at least one target grid corresponding to the last request is loaded and rendered, so that the terminal displays the at least one target grid.

[0117] In the actual building scene, the terminal used by the user can need to continuously view the drawing content of the corresponding building progress in a certain period. For example, in a certain construction period, a building is completed, and during this period, the corresponding target grid may need to be repeatedly viewed. In order to quickly respond to the user demand and improve the user experience, when the terminal is powered on or the APP or webpage is opened, it is considered that the user may need to view the drawing data of the building, and the layer gateway sends at least one target grid corresponding to the historical viewing record to the terminal after loading and rendering, so that the user using the terminal can view the related drawing data in time.

[0118] Specifically, in combination with Figure 3 As shown in the drawing, when the layer gateway receives a connection request initiated by the terminal, at least one target grid corresponding to the last request is sent to the terminal. The connection request here can be a connection request of the terminal to the APP or webpage, to open the APP or webpage.

[0119] The apparatus provided by the embodiments of the present application can implement the method of the embodiments as shown in Figures 1-3 The apparatus provided by the embodiments of the present application can implement the method of the embodiments as shown in

[0120] Figure 5 The hardware structure schematic diagram of the electronic device provided by the embodiments of the present application is shown in the drawing. Figure 5As shown, the electronic device provided in the embodiment includes a processor 501 and a memory in communication connection with the processor. The processor 501 and the memory 502 are connected through a bus 503.

[0121] In the implementation process, the processor 501 executes the computer execution instructions stored in the memory 502, so that the processor 501 executes the method in the above method embodiment.

[0122] The specific implementation process of the processor 501 can refer to the above method embodiment, which has similar implementation principles and technical effects, and will not be described here in detail.

[0123] In the above Figure 5 In the embodiment shown, it should be understood that the processor can be a central processing unit (English: Central Processing Unit, for short: CPU), and can also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, for short: DSP), application specific integrated circuits (English: Application Specific Integrated Circuit, for short: ASIC), etc. The general-purpose processor can be a microprocessor, or the processor can be any conventional processor, etc. The steps of the method disclosed in combination with the application can be directly embodied as execution completed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0124] The memory can contain a high-speed RAM memory, and can also include a non-volatile storage NVM, such as at least one disk memory.

[0125] The bus can be an industry standard architecture (Industry Standard Architecture, ISA) bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, the bus in the drawings of the present application does not limit only one bus or one type of bus.

[0126] The embodiment of the present application also provides a computer readable storage medium, the computer readable storage medium stores computer execution instructions, when the processor executes the computer execution instructions, the drawing processing method of the above method embodiment is realized.

[0127] The embodiment of the present application further provides a computer program product comprising a computer program, which, when executed by a processor, implements the drawing processing method as described above.

[0128] The computer readable storage medium described above can be implemented by any type of volatile or nonvolatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0129] An exemplary readable storage medium is coupled to the processor, so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in the device.

[0130] Those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware. The foregoing program can be stored in a computer readable storage medium. The program, when executed, executes steps including the above-mentioned method embodiments; and the foregoing storage medium includes ROM, RAM, magnetic disk or optical disk and various storage media that can store program codes.

[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement to part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A drawing processing method, characterized in that, The method includes: The format of drawings from other sources is converted to obtain target drawings, and the format of the target drawings is the target format; the unit grid size and the number of unit grids are determined according to the size of the target drawings; the target drawings are divided into multiple grids according to the unit grid size and the number of unit grids to obtain gridded drawings, and the gridded drawings include multiple grids; According to the display request of the terminal, based on the number and size of the target grids displayed on the terminal screen, at least one target grid among the plurality of grids is loaded and rendered, and the loaded and rendered at least one target grid is sent to the terminal so that the terminal displays the loaded and rendered at least one target grid.

2. The method according to claim 1, characterized in that, The step of loading and rendering at least one target grid from the plurality of grids according to the terminal's request, based on the number and size of the target grids displayed on the terminal's screen, so that the terminal displays the at least one target grid, includes: A request is sent by a receiving terminal, the request including a target number of grids; Based on the target number of target grids, load and render to obtain a target grid drawing, so that the terminal displays the target grid drawing, wherein the target grid drawing is composed of the at least one target grid.

3. The method according to claim 2, characterized in that, The request also includes a target layer; the loading and rendering of target meshes based on the target number to obtain target mesh drawings includes: Based on the target number of target meshes in the target layer, load and render to obtain a grid drawing of the target number of target meshes in the target layer, so that the terminal displays the grid drawing of the target number of target meshes in the target layer, wherein the grid drawing of the target number of target meshes in the target layer is composed of the at least one target mesh.

4. The method according to claim 3, characterized in that, The method further includes: Responding to a connection request initiated by the terminal; Based on the connection request, locate the previous request sent by the terminal, and load and render at least one target grid corresponding to the previous request so that the terminal displays the at least one target grid.

5. A drawing processing device, characterized in that, The device includes: The first processing module is used to convert the format of drawings from other sources to obtain a target drawing, wherein the format of the target drawing is a target format; determine the unit grid size and the number of unit grids according to the size of the target drawing; divide the target drawing into multiple grids according to the unit grid size and the number of unit grids to obtain a gridded drawing, wherein the gridded drawing includes multiple grids; The second processing module is configured to load and render at least one target grid from the plurality of grids according to the display request of the terminal, based on the number of target grids and the size of the target grids displayed on the terminal screen, and send the loaded and rendered at least one target grid to the terminal so that the terminal displays the loaded and rendered at least one target grid.

6. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the drawing processing method as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the drawing processing method as described in any one of claims 1 to 4.

8. A computer program product comprising a computer program that, when executed by a processor, implements the drawing processing method according to any one of claims 1-4.

Citation Information

Patent Citations

  • A building model effect generation method and device

    CN109685902A

  • Drawing display system and device

    CN114254230A