CN115168112B - Method, device, equipment and medium for restoring section data under dynamic section change - Google Patents

Method, device, equipment and medium for restoring section data under dynamic section change Download PDF

Info

Publication number
CN115168112B
CN115168112B CN202211089472.XA CN202211089472A CN115168112B CN 115168112 B CN115168112 B CN 115168112B CN 202211089472 A CN202211089472 A CN 202211089472A CN 115168112 B CN115168112 B CN 115168112B
Authority
CN
China
Prior art keywords
section
grid
segment
division
square
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
Application number
CN202211089472.XA
Other languages
Chinese (zh)
Other versions
CN115168112A (en
Inventor
刘思佳
张宏瑞
张皓天
田松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Third Engineering Bureau Information Technology Co ltd
Original Assignee
China Construction Third Engineering Bureau Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Third Engineering Bureau Information Technology Co ltd filed Critical China Construction Third Engineering Bureau Information Technology Co ltd
Priority to CN202211089472.XA priority Critical patent/CN115168112B/en
Publication of CN115168112A publication Critical patent/CN115168112A/en
Application granted granted Critical
Publication of CN115168112B publication Critical patent/CN115168112B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Graphics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method, a device, equipment and a medium for restoring section data under dynamic section change, wherein the method comprises the following steps: performing section division, wherein each section comprises a plurality of grids, each grid corresponds to a grid ID, each section corresponds to a section ID, and the section IDs and the grid IDs under the section IDs are associated; generating a segment division version ID, associating the segment ID with the segment division version ID; storing the section division version ID, the associated section ID and each grid ID associated with the section ID; when the target zone needs to be restored, inquiring the zone division version ID corresponding to the target zone, finding the zone ID associated with the zone division version ID, determining the zone ID of the target zone, acquiring the grid ID corresponding to the target zone, and restoring the data of the target zone according to each grid corresponding to the grid ID. The method solves the problem that the historical data of the existing section is difficult to restore or low in restoring efficiency.

Description

Method, apparatus, device and medium for restoring segment data under dynamic segment change
Technical Field
The invention relates to the field of dynamic division of a building construction site model, in particular to historical data restoration after model section change, and specifically relates to a method, a device, equipment and a medium for restoring section data under dynamic section change.
Background
The construction site visual work area division is generally drawn by adopting an editable drawing board, and when the drawing of a user is completed, a system generates a project area division schematic diagram.
Because uncertain factors such as construction content change and the like often occur in engineering construction, on-site work area section division needs to be adjusted frequently in the process, the editor needs to be re-entered for division in each adjustment, and when the number of sections changes, part of historical data of original sections loses hanging relation due to section modification.
The existing solution is not to process historical data, or stores the data before modification in a full amount during each modification, and when the historical data needs to be checked, the model is re-rendered at the front end according to the previous model parameters for displaying, so that the efficiency is extremely low, and the consumed time is long.
In the existing solution, after each division adjustment of the sections, all the section adjustment information is stored in full, and when the historical data needs to be reproduced, the section rendering is performed again according to the historical division condition of the sections. Since the division of the sections is likely to be frequent, more historical data needs to be stored, which results in more time spent in the reproduction of the historical data and lower efficiency.
Disclosure of Invention
To overcome the above-mentioned deficiencies of the prior art, the present invention provides a method, an apparatus, a device and a medium for restoring segment data under dynamic segment change, so as to solve at least one of the above-mentioned technical problems.
According to an aspect of the present disclosure, there is provided a method for restoring segment data under dynamic segment change, including:
performing section division, wherein each section comprises a plurality of grids, each grid corresponds to a grid ID, each section corresponds to a section ID, and the section IDs and the grid IDs under the section IDs are associated;
generating a segment division version ID, associating the segment ID with the segment division version ID;
storing the section division version ID, the associated section ID and each grid ID associated with the section ID;
when the target zone needs to be restored, inquiring the zone division version ID corresponding to the target zone, finding the zone ID associated with the zone division version ID, determining the zone ID of the target zone, acquiring the grid ID corresponding to the target zone, and restoring the data of the target zone according to each grid corresponding to the grid ID.
The technical scheme generates a corresponding section division version ID for each section division, associates the section division version ID with the current section ID, associates each section ID with the grid ID contained in the section ID, and stores the association relationship; when a certain section needs to be restored, the required square grids for restoration are found by calling the association relation, and the section restoration can be carried out by using the associated square grids, so that the problem that the historical data of the existing section is difficult to restore or the restoration efficiency is low is solved.
According to the technical scheme, only the section division version ID, the section ID, the grid ID and the incidence relation among the section division version ID, the section ID and the grid ID need to be stored, all data under each section division do not need to be stored, and the requirement on storage space is greatly reduced. Meanwhile, all the grids needed by reduction are found through incidence relation calling, the reduction of the target section is carried out based on the grids, all historical data do not need to be called, model loading and rendering do not need to be carried out on all stored data, and the section reduction efficiency is greatly improved.
Optionally, after obtaining the grid ID corresponding to the target segment, the service data corresponding to the grid ID is restored, and then the whole segment corresponding to the grid ID is restored.
As a further technical solution, the performing the section division further includes:
establishing a square grid by using an editor;
establishing a coordinate system based on the square grids to enable each square grid to correspond to a coordinate point;
globally and uniformly coding all the squares in the coordinate system to enable each square to correspond to a square ID;
stacking the square grids on the uploaded CAD drawing, and dividing work area sections on the square grids by using an editor, wherein each section corresponds to a section ID;
extracting the divided section outline, and storing the square ID of all squares in the section outline;
the grid ID within the section is associated with the section ID.
According to the technical scheme, the square grids are associated with the coordinate system, the position of each square grid is expressed through the numerical value of the coordinate points, and the boundary outline of the area is convenient to determine. Meanwhile, the range of the segment is expressed by the grid position, so that the extraction and reduction of the range of the segment are facilitated. In addition, different ID identities are respectively assigned to the sections and the grids in the sections for association, so that the corresponding sections can be restored by associating the grid IDs.
Optionally, after the CAD drawing is uploaded through the front end of the webpage, the front end parses the CAD drawing into json format, and then the front end page is used as a base drawing for displaying, so that an editor can divide the section.
The uploaded CAD drawing can be regarded as a picture which can be displayed through a webpage, and the picture is converted into a base drawing to be superposed on the bottom of the editor to serve as the base drawing copied by the editor, so that the drawing on the base drawing can be subjected to section drawing through the editor. The base graph herein may also be understood as a template used by the editor depiction.
As a further technical scheme, when establishing the square grid, the method further comprises the following steps: and determining the dividing granularity of the initial square grid, and automatically generating the square grid with the specified quantity according to the dividing granularity.
Optionally, the initial grid division granularity may be determined according to the project work area management complexity and input through the front end of the web page.
Alternatively, the degree of boundary fitting may be increased by increasing the square mesh partitioning granularity. I.e., the greater the square grid density, the higher the degree of fit of the segment boundaries to the square grid.
As a further technical solution, when extracting the divided section contour, the method further includes:
acquiring all coordinate points contained in the section;
traversing all coordinate points, and if the section identification of a certain coordinate point and at least one adjacent point is inconsistent, extracting the coordinate point as a boundary point;
and extracting the section contour according to the boundary points.
When a boundary point is found, if the segment identifier of a certain adjacent point of the point is inconsistent with the point, the point is the boundary point. In the field of image processing, adjacent points of a certain point can adopt different definitions such as four adjacent points, eight adjacent points and the like.
As a further technical solution, when all coordinate points included in a section are acquired, for a square lattice which does not completely fall into the section, an overlapping area of the square lattice and the section is determined, and when the overlapping area is greater than a preset value, a coordinate point corresponding to the square lattice falls into a section range.
Alternatively, a square can be dropped into a section when the overlapping area of the square with the section exceeds 50%.
As a further technical solution, the method further comprises: and acquiring a section division requirement, and executing section division according to the section division requirement.
Optionally, the sector division requirement includes a sector division number or a sector application record.
Optionally, the section application record is associated with the zone division version section ID, if the construction data of a work zone section in a certain time period is to be checked, the section division version ID corresponding to the section is queried, the section ID associated with the section division version ID is found, the section ID of the queried section is determined, the grid ID corresponding to the section is obtained, and then the data of the target section is restored according to the grids corresponding to the grid ID.
According to an aspect of the present specification, there is provided a section data reduction apparatus under a dynamic section change, including:
the system comprises a dividing module, a judging module and a judging module, wherein the dividing module is used for executing section division, each section comprises a plurality of grids, each grid corresponds to a grid ID, each section corresponds to a section ID, and the section IDs and the grid IDs under the section IDs are associated;
a generation module for generating a segment division version ID, associating the segment ID with the segment division version ID;
the storage module is used for storing the section division version ID, the associated section ID and each grid ID associated with the section ID;
the restoring module is used for inquiring the section division version ID corresponding to the target section when the target section needs to be restored, finding the section ID associated with the section division version ID, determining the section ID of the target section, acquiring the grid ID corresponding to the target section, and restoring the data of the target section according to the grids corresponding to the grid ID.
According to an aspect of the present specification, there is provided a computer device, the computer device including a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the section data restoring method under dynamic section change.
According to an aspect of the present specification, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method for restoring section data under dynamic section change.
Compared with the prior art, the invention has the beneficial effects that:
(1) The method generates a corresponding section division version ID for each section division, associates the section division version ID with the current section ID, associates each section ID with the grid ID contained in the section ID, and stores the association relationship; when a certain section needs to be restored, the grid required for restoration is found by calling the association relation, and the section restoration can be performed by using the associated grid, so that the problems that the existing section historical data is difficult to restore or the restoring efficiency is low are solved.
(2) The invention only needs to store the section division version ID, the section ID, the grid ID and the incidence relation among the sections, does not need to store all data under each section division, and greatly reduces the requirement on storage space. Meanwhile, all the grids needed by reduction are found through incidence relation calling, the reduction of the target section is carried out based on the grids, all historical data do not need to be called, model loading and rendering do not need to be carried out on all stored data, and the section reduction efficiency is greatly improved.
Drawings
Fig. 1 is a flowchart of a method for restoring section data under dynamic section change according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a relationship between a coordinate system and a square grid according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of segment division on a checkered net according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of dividing a square grid into segments according to an embodiment of the present invention.
Fig. 5 is an enlarged schematic view of a division section according to an embodiment of the present invention.
FIG. 6 is a schematic diagram of a computing device according to an embodiment of the invention.
Detailed Description
The technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings, and it is to be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without any inventive step, are within the scope of the present invention.
According to one aspect of the description of the invention, a method for restoring segment data under dynamic segment change is provided, and the method realizes the associated storage of each segment by performing bottom grid division on a CAD drawing and associating grids, segments and segment division versions aiming at the condition that the division of the construction project operation segment frequently changes, so that the segment change is ensured not to cause historical data loss, and the segment restoration loading is fast and the efficiency is high.
As shown in fig. 1, the method specifically includes:
step 1, performing section division, wherein each section comprises a plurality of grids, each grid corresponds to a grid ID, each section corresponds to a section ID, and the section IDs and the grid IDs under the section IDs are associated.
Optionally, performing the partition further comprises:
establishing a square grid by using an editor;
establishing a coordinate system based on the square grids to enable each square grid to correspond to a coordinate point;
globally and uniformly coding all the squares in the coordinate system to enable each square to correspond to a square ID;
stacking the square grids on the uploaded CAD drawing, and dividing work area sections on the square grids by using an editor, wherein each section corresponds to a section ID;
extracting the divided section outline, and storing the square ID of all squares in the section outline;
the grid ID within the section is associated with the section ID.
As shown in fig. 2, the square grid is associated with a coordinate system, and the position of each square is expressed by coordinate point values, so as to determine the boundary contour of the region. Meanwhile, the range of the segment is expressed by the grid position, so that the extraction and reduction of the range of the segment are facilitated. In addition, different ID identities are respectively assigned to the sections and the grids in the sections for association, so that the corresponding sections can be restored by associating the grid IDs.
Optionally, after the CAD drawing is uploaded through the front end of the webpage, the front end parses the CAD drawing into json format, and then the front end page is used as a base drawing for displaying, so that an editor can divide the section.
The uploaded CAD drawing can be regarded as a picture which can be displayed through a webpage, and the picture is converted into a base drawing to be superposed on the bottom of the editor to serve as the base drawing copied by the editor, so that the drawing on the base drawing can be subjected to section drawing through the editor. The base graph herein may also be understood as a template used by the editor depiction.
Optionally, when the square grid is established, the method further includes: and determining the dividing granularity of the initial square grid, and automatically generating the square grid with the specified quantity according to the dividing granularity.
Optionally, the initial grid division granularity may be determined according to the project work area management complexity and input through the front end of the web page.
Alternatively, the degree of boundary fitting may be increased by increasing the square grid partition granularity. I.e., the greater the square grid density, the higher the degree of fit of the segment boundaries to the square grid.
Optionally, when extracting the divided segment profile, the method further includes:
acquiring all coordinate points contained in the section;
traversing all coordinate points, and if the section identification of a certain coordinate point and at least one adjacent point is inconsistent, extracting the coordinate point as a boundary point;
and extracting the section contour according to the boundary points.
When a boundary point is found, if the segment identifier of a certain adjacent point of the point is inconsistent with the point, the point is the boundary point. In the field of image processing, the neighboring points of a certain point can adopt different definitions such as four neighboring points, eight neighboring points and the like.
Optionally, when all coordinate points included in the section are acquired, for a square which does not completely fall into the section, an overlapping area of the square and the section is determined, and when the overlapping area is greater than a preset value, a coordinate point corresponding to the square falls into the range of the section.
As shown in fig. 3, squares completely falling into a section or squares with an overlapping area larger than a preset value are recorded as squares contained in the section.
Alternatively, a square can be dropped into a section when the overlapping area of the square with the section exceeds 50%.
And 2, generating a section division version ID, and associating the section ID with the section division version ID.
Each section division corresponds to a section division version ID, and a new section division version ID is generated when each section division is changed, so that the times of section division change and the section division condition can be clearly known; by associating the section ID with the section division version ID, the corresponding section can be found through the section division version ID, and the quick query of the historical section is facilitated.
And 3, storing the section division version ID, the associated section ID and each grid ID associated with the section ID.
Each time of the section division, the section division version ID, the section ID, the corresponding grid ID and the incidence relation among the sections are correspondingly stored, so that when the historical data of a certain section needs to be inquired, the grid at the bottommost layer can be searched in time through the incidence relation, the business data of the incidence grids can be obtained, and the quick reduction of the section historical data can be realized.
And 4, when the target zone needs to be restored, inquiring the zone division version ID corresponding to the target zone, finding the zone ID associated with the zone division version ID, determining the zone ID of the target zone, acquiring the grid ID corresponding to the target zone, and restoring the data of the target zone according to the grids corresponding to the grid ID.
When the historical data of a certain section needs to be acquired, searching the section division version ID associated with the section ID to find the section corresponding to the section division version ID, wherein the number of the corresponding sections can be one or more; and then determining a target section from the association sections, finding all the squares corresponding to the target section according to the association relationship between the sections and the squares, and acquiring business data corresponding to the squares so as to restore the data of the target section.
Optionally, before performing the segment division, the method further includes acquiring a segment division requirement, and performing the segment division according to the segment division requirement. And determining the section division requirement according to the project construction condition.
Optionally, the segment division requirement is converted into the required number of segments, and is input through the equipment terminal. Or converting the section dividing requirement into a required section position and inputting the required section position through an equipment end. The required section position can be obtained through a section application record, for example, a record for applying for construction work in a certain work area in a certain time period.
For a work area with low complexity, the whole project work area may be divided into two sections, or divided into four sections in a cross form, or divided into six sections in a horizontal direction and two vertical directions, or divided in other manners, which is not limited in the present invention.
For a work area with higher complexity, more precise section division can be carried out, so that the divided sections are closer to the actual construction range, and data redundancy during storage is avoided.
Optionally, the section application record is associated with the zone division version section ID, if the construction data of a work zone section in a certain time period is to be checked, the section division version ID corresponding to the section is queried, the section ID associated with the section division version ID is found, the section ID of the queried section is determined, the grid ID corresponding to the section is obtained, and then the data of the target section is restored according to the grids corresponding to the grid ID.
As an embodiment, as shown in fig. 4-5, taking a subway project as an example, a 200 × 400 square grid is created according to the above-mentioned CAD drawings, where the CAD base drawing is shown in black, the square grid superimposed on the base drawing is shown in gray, and the divided segments are shown in fig. 4. An enlarged schematic view of this section is shown in fig. 5. In the construction process, business data are expressed through the grids, and section history data are stored in the form of storing the grid ID of the bottommost layer. For example, it is expected that the segments divided in the graph develop related business activities from day 7 month 1 to day 7 month 30, and no matter how the subsequent segment partitions are modified and divided, when the associated region of the business data is reproduced, the business data is reproduced according to the stored grid ID, all the segment data corresponding to the segment partitions do not need to be reproduced, and the efficiency of restoring the segment data is greatly improved.
According to an aspect of the present specification, there is also provided a section data reduction apparatus under dynamic section change, including:
the system comprises a dividing module, a judging module and a judging module, wherein the dividing module is used for executing section division, each section comprises a plurality of grids, each grid corresponds to a grid ID, each section corresponds to a section ID, and the section IDs and the grid IDs under the section IDs are associated;
a generation module for generating a segment division version ID, associating the segment ID with the segment division version ID;
the storage module is used for storing the section division version ID, the associated section ID and each grid ID associated with the section ID;
the restoring module is used for inquiring the section division version ID corresponding to the target section when the target section needs to be restored, finding the section ID associated with the section division version ID, determining the section ID of the target section, acquiring the grid ID corresponding to the target section, and restoring the data of the target section according to the grids corresponding to the grid ID.
Optionally, the apparatus further comprises: and the input module is used for acquiring the section application record so as to record the construction time period applied in the target section.
And the input module is also used for uploading the CAD drawing through the front end of the webpage and displaying the converted CA base map through the front end page.
The dividing module is further configured to:
establishing a square grid by using an editor;
establishing a coordinate system based on the square grids to enable each square grid to correspond to a coordinate point;
globally and uniformly coding all the grids in the coordinate system to enable each grid to correspond to a grid ID;
stacking the square grids on the uploaded CAD drawing, and dividing work area sections on the square grids by using an editor, wherein each section corresponds to a section ID;
extracting the divided section outline, and storing the square ID of all squares in the section outline;
the grid ID within the section is associated with the section ID.
The dividing module is further used for determining the dividing granularity of the initial square grids and automatically generating the square grids with the specified number according to the dividing granularity.
The dividing module is further configured to:
acquiring all coordinate points contained in the section;
traversing all coordinate points, and if the section identification of a certain coordinate point and at least one adjacent point is inconsistent, extracting the coordinate point as a boundary point;
and extracting the section outline according to the boundary point.
The dividing module is further used for judging the overlapping area of the square grids and the section when all coordinate points contained in the section are obtained and the square grids which do not fall into the section completely, and when the overlapping area is larger than a preset value, the coordinate points corresponding to the square grids fall into the range of the section.
The implementation of the device according to the invention can be carried out with reference to a method.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the apparatus and the modules and units described above may refer to the corresponding processes in the foregoing embodiments, and are not described herein again.
According to an aspect of the present specification, there is provided a computer apparatus, which may be an industrial personal computer, a server, or a computer terminal.
The computer device comprises a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the section data restoring method under dynamic section change.
The computer device includes a processor, a memory and a network interface connected by a system bus, where the memory may include a non-volatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any one of the methods for restoring segment data under dynamic segment change.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for running a computer program in the nonvolatile storage medium, and the computer program, when executed by the processor, can cause the processor to execute any method for restoring the section data under dynamic section change.
The network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
performing section division, wherein each section comprises a plurality of grids, each grid corresponds to a grid ID, each section corresponds to a section ID, and the section IDs and the grid IDs under the section IDs are associated;
generating a segment division version ID, associating the segment ID with the segment division version ID;
storing the section division version ID, the associated section ID and each grid ID associated with the section ID;
when the target zone needs to be restored, inquiring the zone division version ID corresponding to the target zone, finding the zone ID associated with the zone division version ID, determining the zone ID of the target zone, acquiring the grid ID corresponding to the target zone, and restoring the data of the target zone according to each grid corresponding to the grid ID.
According to an aspect of the present specification, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method for restoring section data under dynamic section change.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device.
In the description herein, references to the description of the terms "one embodiment," "certain embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for restoring segment data under dynamic segment change, comprising:
performing section division, wherein each section comprises a plurality of grids, each grid corresponds to a grid ID, each section corresponds to a section ID, and the section IDs and the grid IDs under the section IDs are associated; performing the section division further comprises: establishing a square grid by using an editor; establishing a coordinate system based on the square grids to enable each square grid to correspond to a coordinate point; globally and uniformly coding all the squares in the coordinate system to enable each square to correspond to a square ID; stacking the square grids on the uploaded CAD drawing, and dividing work area sections on the square grids by using an editor, wherein each section corresponds to a section ID; extracting the divided section outline, and storing the square ID of all squares in the section outline; associating the grid ID with the section ID within the section;
generating a segment division version ID, associating the segment ID with the segment division version ID;
storing the section division version ID, the associated section ID and each grid ID associated with the section ID;
when the target zone needs to be restored, inquiring the zone division version ID corresponding to the target zone, finding the zone ID associated with the zone division version ID, determining the zone ID of the target zone, acquiring the grid ID corresponding to the target zone, and restoring the data of the target zone according to each grid corresponding to the grid ID.
2. The method for restoring segment data under dynamic segment change according to claim 1, wherein when building a square grid, the method further comprises: and determining the dividing granularity of the initial square grid, and automatically generating the square grid with the specified quantity according to the dividing granularity.
3. The method for restoring segment data under dynamic segment change according to claim 1, further comprising, when extracting the segmented segment contour:
acquiring all coordinate points contained in the section;
traversing all coordinate points, and if the section identification of a certain coordinate point and at least one adjacent point is inconsistent, extracting the coordinate point as a boundary point;
and extracting the section outline according to the boundary point.
4. The method according to claim 3, wherein when all the coordinate points included in the segment are acquired, an overlapping area between the grid and the segment is determined for a grid which does not completely fall within the segment, and when the overlapping area is larger than a predetermined value, the coordinate point corresponding to the grid is within the range of the segment.
5. The method for restoring segment data under dynamic segment change according to claim 1, further comprising: and acquiring a section division requirement, and executing section division according to the section division requirement.
6. A section data restoration device under a dynamic section change, comprising:
the system comprises a dividing module, a judging module and a judging module, wherein the dividing module is used for executing section division, each section comprises a plurality of grids, each grid corresponds to a grid ID, each section corresponds to a section ID, and the section IDs and the grid IDs under the section IDs are associated;
the partitioning module is further configured to: establishing a square grid by using an editor; establishing a coordinate system based on the square grids to enable each square grid to correspond to a coordinate point; globally and uniformly coding all the squares in the coordinate system to enable each square to correspond to a square ID; stacking the square grids on the uploaded CAD drawing, and dividing work area sections on the square grids by using an editor, wherein each section corresponds to a section ID; extracting the divided section outline and storing the grid IDs of all grids in the section outline; associating the grid ID with the section ID within the section;
a generation module for generating a segment division version ID, associating the segment ID with the segment division version ID;
the storage module is used for storing the section division version ID, the associated section ID and each grid ID associated with the section ID;
the restoring module is used for inquiring the section division version ID corresponding to the target section when the target section needs to be restored, finding the section ID associated with the section division version ID, determining the section ID of the target section, acquiring the grid ID corresponding to the target section, and restoring the data of the target section according to the grids corresponding to the grid ID.
7. A computer device comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the method for restoring section data under dynamic section change according to any one of claims 1 to 5.
8. A computer-readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method for restoring section data under dynamic section change according to any one of claims 1 to 5.
CN202211089472.XA 2022-09-07 2022-09-07 Method, device, equipment and medium for restoring section data under dynamic section change Active CN115168112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211089472.XA CN115168112B (en) 2022-09-07 2022-09-07 Method, device, equipment and medium for restoring section data under dynamic section change

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211089472.XA CN115168112B (en) 2022-09-07 2022-09-07 Method, device, equipment and medium for restoring section data under dynamic section change

Publications (2)

Publication Number Publication Date
CN115168112A CN115168112A (en) 2022-10-11
CN115168112B true CN115168112B (en) 2022-12-27

Family

ID=83480353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211089472.XA Active CN115168112B (en) 2022-09-07 2022-09-07 Method, device, equipment and medium for restoring section data under dynamic section change

Country Status (1)

Country Link
CN (1) CN115168112B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104937949A (en) * 2012-11-26 2015-09-23 爱迪德技术有限公司 Obtaining a version of an item of content
CN113901550A (en) * 2021-09-30 2022-01-07 万翼科技有限公司 Assembly building BIM model generation method and related equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120039893A (en) * 2010-10-18 2012-04-26 현대모비스 주식회사 Method for real time map update in navigation system
US10191933B2 (en) * 2013-01-15 2019-01-29 Seokyoung Systems System for managing IFC version synchronized with BIM and method for managing IFC version thereof
CN104009979A (en) * 2014-05-12 2014-08-27 刘喆 Method for data transmission
US10002156B2 (en) * 2015-03-16 2018-06-19 Here Global B.V. Version management for incrementally compiled map data
CN109612475A (en) * 2018-10-31 2019-04-12 百度在线网络技术(北京)有限公司 Update method, device and the readable storage medium storing program for executing of high-precision electronic map
US11391595B2 (en) * 2019-10-25 2022-07-19 Here Global B.V. Method, apparatus, and computer program product for updating a map database
CN112933599B (en) * 2021-04-08 2022-07-26 腾讯科技(深圳)有限公司 Three-dimensional model rendering method, device, equipment and storage medium
CN113633981A (en) * 2021-08-12 2021-11-12 网易(杭州)网络有限公司 Method, device, equipment and storage medium for map data synchronization in game application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104937949A (en) * 2012-11-26 2015-09-23 爱迪德技术有限公司 Obtaining a version of an item of content
CN113901550A (en) * 2021-09-30 2022-01-07 万翼科技有限公司 Assembly building BIM model generation method and related equipment

Also Published As

Publication number Publication date
CN115168112A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
WO2021169274A1 (en) Historical map data processing method, apparatus and system
CN106960029B (en) Method for extracting framing raster data across map geographical range
CN112634452B (en) Railway BIM model light weight method and device
CN109683858B (en) Data processing method and device
CN105404472A (en) Method and apparatus for compressing storage space of log time data
CN114708391B (en) Three-dimensional modeling method, three-dimensional modeling device, computer equipment and storage medium
CN107423912A (en) A kind of method and system for becoming dynamic mesh dynamic division based on personnel
CN115168112B (en) Method, device, equipment and medium for restoring section data under dynamic section change
CN112149745B (en) Method, device, equipment and storage medium for determining difficult example sample
CN113255289A (en) Method and system for composing and distributing file
CN112632303A (en) Distributed storage method, analysis method and device for image data
CN111159985B (en) Data deriving method, apparatus, computer device and computer readable storage medium
CN117272855A (en) Object surface geometric model generation method and device, electronic equipment and storage medium
CN115908673A (en) Three-dimensional model display method and device, electronic equipment and storage medium
CN112927324B (en) Data processing method and device of boundary compensation mode of sample point self-adaptive compensation
CN115776568A (en) Video compression method, system, device and medium
JP2014099848A (en) Image division system and image division method
CN110580274B (en) GIS data rendering method
CN113609237A (en) Data processing method, device, equipment and medium for construction land change
CN115270530B (en) Method, system, device and medium for rapidly establishing progress visualization model
CN111652956B (en) Meta grid contour boundary optimization method, medium and terminal equipment
CN111080148A (en) Net value calculation method and device of ERP system, electronic equipment and storage medium
CN116527908B (en) Motion field estimation method, motion field estimation device, computer device and storage medium
CN118332147A (en) Multi-layer pattern spot data difference comparison method and device and electronic equipment

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