[go: up one dir, main page]

CN107943987B - Method and system for quickly reading graph - Google Patents

Method and system for quickly reading graph Download PDF

Info

Publication number
CN107943987B
CN107943987B CN201711245317.1A CN201711245317A CN107943987B CN 107943987 B CN107943987 B CN 107943987B CN 201711245317 A CN201711245317 A CN 201711245317A CN 107943987 B CN107943987 B CN 107943987B
Authority
CN
China
Prior art keywords
framing
graphic data
file
files
graphic
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
CN201711245317.1A
Other languages
Chinese (zh)
Other versions
CN107943987A (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.)
Suzhou Unimap Software Co ltd
Original Assignee
Suzhou Unimap Software 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 Suzhou Unimap Software Co ltd filed Critical Suzhou Unimap Software Co ltd
Priority to CN201711245317.1A priority Critical patent/CN107943987B/en
Publication of CN107943987A publication Critical patent/CN107943987A/en
Application granted granted Critical
Publication of CN107943987B publication Critical patent/CN107943987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/48Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method and a system for rapidly retrieving graphs, which comprise the following steps: providing a graphic database, wherein a plurality of qualified graphic data are stored in the graphic database, dividing the graphic data into a plurality of framing files by a framing tool according to a set framing rule and storing the framing files in the graphic database, providing a thumbnail file database, establishing a link relation between each thumbnail file and the corresponding graphic data, receiving an access request of a specified graphic sent by a user terminal, providing a search editor, and retrieving and reading all thumbnail files meeting keyword information in the thumbnail file database according to the keyword information in the access request; and responding to the selection of any thumbnail file, and outputting the thumbnail file to the user side. By adopting the method and the system for quickly retrieving the graphs, the graphs can be quickly retrieved, and the use experience of a user is improved.

Description

Method and system for quickly reading graph
Technical Field
The invention relates to the technical field of computers, and belongs to a method and a system for rapidly retrieving and reading graphs.
Background
China is in the accelerating phase of urbanization, and the rapid development of cities brings greater pressure to planning. However, the phenomena of disordered planning result data, current data, examination and approval data and the like, complicated system structure and isolation of various planning data commonly exist, and a lot of adverse effects are caused to standard management and legal management. With the rapid development of urban construction and the continuous improvement of management level, the traditional manual management mode mainly based on paper media has the problems of dispersion of graphic data, difficulty in archiving and the like, is no longer suitable for the development of the times, and the graphic manager is produced at the right moment. Unified management of laws and regulations, planning achievements, current data, examination and approval data and the like is realized by building a planning graph, functions of data resource collection, arrangement, warehousing, management and the like are realized by developing a graph manager function, the problem that a planning manager is difficult to hold on a plurality of planning bases is solved, and the standardized and efficient development of planning management work is promoted.
Such drawings and images have a common feature: large volume and long retrieval time. When working, a worker often needs to spend a lot of time waiting for the opening of a file, and when the performance of a computer or a mobile phone is poor, the problem that pictures and images cannot be opened smoothly even occurs.
Disclosure of Invention
The invention aims to provide a method and a system for rapidly searching graphs, which are simple to operate, have quick response time and can rapidly update data.
In order to achieve the purpose, the invention provides the following technical scheme: a method of quickly paging through graphics, the method comprising:
providing a graphic database, wherein a plurality of qualified graphic data are stored in the graphic database, and the graphic data comprise picture data and image data;
dividing the graphic data into a plurality of framing files by a framing tool according to a set framing rule and storing the files in a graphic database, wherein the framing files comprise framing pictures of the graphic data and playing fragments of the image data;
providing a thumbnail file database, storing partial framing files of each graphic data into the thumbnail file database to be used as the thumbnail files of the graphic data, establishing a link relation between each thumbnail file and the corresponding graphic data, and storing a plurality of key word information corresponding to each thumbnail file and/or the graphic data in the thumbnail file database;
receiving an access request of a designated graph sent by a user side, wherein the access request comprises a plurality of keyword information of the designated graph;
providing a search editor, and searching and retrieving all the thumbnail files meeting the keyword information in the thumbnail file database according to the keyword information in the access request;
in response to any thumbnail file being selected, outputting the thumbnail file to a user terminal, and,
responding to the thumbnail file opened by the user terminal, calling the corresponding graphic data in the graphic database through the link, transmitting all the sub-files of the graphic data except the thumbnail file to the user terminal, and taking the thumbnail file as a base point to realize the complete calling and reading of the graphic data according to a preset merging rule.
Further, the method further comprises:
and in response to the thumbnail file being closed by the user side in the graphic data transmission process, stopping the transmission process of the graphic data framing file.
Further, the method further comprises:
all the framing files for transmitting the graphic data to the user side are stored according to the line numbers, and meanwhile, space data files corresponding to each stored framing file are generated;
providing a merging rule editor for editing and setting merging rules of the framing files;
and setting the thumbnail file as an origin, combining all the framing files by combining the spatial data files according to the combination rule of the combination rule editor, and generating the finished graphic data.
Furthermore, the spatial data files are merged by adopting single-line merging first, and the adjacent lines are merged after the single-line merging.
Furthermore, the merging of the spatial data files adopts multi-thread processing.
Furthermore, the merge rule editor is provided with a plurality of preset merge rules.
Further, the method further comprises:
when any graphic data in the graphic database is updated to a new version, a framing tool is adopted to perform framing processing on the graphic data of the new version according to the same framing rule, and the newly generated framing files are compared with the framing files of the original version in the graphic database one by one correspondingly,
1) in response to the newly generated framing file not being consistent with the framing file of the original version, enabling the newly generated framing file to cover the framing file of the original version and generating a new version number for the newly generated framing file;
2) responding to the newly generated framing file to be consistent with the framing file of the original version, and keeping the original version framing file unchanged;
and generating new version information, wherein the version number information of each framing file is recorded in the version information.
Further, the method further comprises:
receiving an update request of any stored appointed graphic data sent by a user side, wherein the update request comprises the version information of the appointed graphic data;
a lookup editor is employed to retrieve the graphic database, obtain version information for the specified graphic data,
and responding to the version information of the graphic data in the graphic database higher than the version information of the specified graphic data stored in the user side, transmitting the framing file which is recorded in the version information and higher than the version information of the specified graphic data stored in the user side to the user side, and replacing part of data corresponding to the specified graphic data by the set coverage rule.
Further, the set coverage rule means that,
and carrying out pixel fusion on the pixel points in the graph to be updated and the pixel points in the new version graph according to the position corresponding relation.
The invention also provides a system for rapidly retrieving the graph based on the method, which comprises the following steps:
the graphic database is used for storing a plurality of qualified graphic data, and the graphic data comprises picture data and image data;
the framing tool is set to divide the graphic data into a plurality of framing files according to set framing rules and store the files in a graphic database, wherein the framing files comprise framing pictures of the graphic data and playing fragments of the image data;
a database of thumbnail files;
a module for storing a part of the framing file of each graphic data into the thumbnail file database to be used as the thumbnail file of the graphic data, establishing a link relation between each thumbnail file and the corresponding graphic data, and storing a plurality of key word information corresponding to each thumbnail file and/or the graphic data in the thumbnail file database;
a module for receiving an access request of a designated graph sent by a user terminal, wherein the access request comprises a plurality of keyword information of the designated graph;
a search editor, configured to retrieve and recall all thumbnail files satisfying the keyword information in the thumbnail file database according to the keyword information in the access request;
a module for outputting any thumbnail file to a user terminal in response to the thumbnail file being selected;
and the processor is used for responding to the opening of the thumbnail file by the user side, transmitting all the framing files of the graphic data except the thumbnail file to the user side by linking and calling the corresponding graphic data in the graphic database, and taking the thumbnail file as a base point to realize the complete retrieval of the graphic data according to a preset merging rule.
The invention has the beneficial effects that: the method for rapidly retrieving the graph can rapidly realize the display of the thumbnail of the graph in the process of calling the related graph, and simultaneously provides the complete graph in the display process, thereby improving the speed of the graph display.
In response to the fact that the version information of the graphic data in the graphic database is higher than the version information of the designated graphic data stored in the user side, the framing file recorded in the version information and higher than the version information of the designated graphic data stored in the user side is transmitted to the user side, the set overlay rule replaces part of data corresponding to the designated graphic data, the version information of the designated graphic data in the user side can be recorded, the data recordability is improved, the data visualization can be reliably realized, and the data traceability can be realized.
The map merging efficiency is improved by adopting a multithreading merging mode, and the loading speed is high.
The method and the device can realize automatic updating of the graph, improve the accuracy of updating the graph by identifying the corresponding pixel points in the graph, perform fusion processing on the graph with large data volume, reduce the consumption of system resources and save the system resources.
The foregoing is a summary of the present invention, and in order to provide a clear understanding of the technical means of the present invention and to be implemented in accordance with the present specification, the following is a detailed description of the preferred embodiments of the present invention with reference to the accompanying drawings.
Drawings
FIG. 1 is a flow chart of a method for quick paging of graphics in accordance with the present invention.
FIG. 2 is a flowchart of a method for updating a graph according to the present invention.
FIG. 3 is a diagram of a device architecture of a graphics manager of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
At present, a planning related graph management system is generally realized based on an ARCGIS platform and an AutoCAD platform. The ARCGIS platform is high in data requirement and large in data storage workload, is suitable for publishing and displaying final result data, and is not suitable for planning graphic management which needs to be updated frequently. The graphic manager based on the AutoCAD platform is widely applied, but the graphic management (including vector graphics and grid graphics) is inconvenient in retrieval mode, the retrieval speed is slow, and the operation is complex.
The invention is based on a Bentley Microstation platform, on one hand, the platform types are enriched, and on the other hand, the Bentley Microstation platform supports the method for retrieving and reading the graphics and image files provided by the invention.
The graphics referred to in the present invention include, in addition to graphics files in the conventional sense (including dgn files and dwg files), video files (supporting a variety of video file formats).
As shown in fig. 1, a method of paging through graphics, the method comprising:
step 1, providing a graph database, wherein a plurality of qualified graph data are stored in the graph database, and the graph data comprise picture data and image data.
And dividing the graphic data into a plurality of framing files by a framing tool according to a set framing rule and storing the files in a graphic database, wherein the framing files comprise framing pictures of the graphic data and playing fragments of the image data.
Providing a thumbnail file database, storing partial framing files of each graphic data into the thumbnail file database to be used as the thumbnail files of the graphic data, establishing a link relation between each thumbnail file and the corresponding graphic data, and storing a plurality of key word information corresponding to each thumbnail file and/or the graphic data in the thumbnail file database.
The framing files of each graphic data can be stored in the same compression packet, the name of the compression packet is the name of the graphic file, and other framing files except the thumbnail file are stored in each compression packet. The adoption of the compression packet mode can reduce the volume of the graphic data, reduce the occupation of storage space and be more convenient and faster during subsequent transmission.
The framing method may be various, for example, dividing the picture data into several parts according to rows and columns, and further dividing the image data into several parts according to the playing time period, etc.
Each framing file has its own unique name for distinction.
Selection of thumbnail files is not limited to one way. Two examples of which are described below.
In a first example, a frame file most representative of picture data or image data is selected to facilitate a user to quickly understand the main contents of the graphic data.
As a second example, a relatively small frame file is selected to facilitate quick transfer and opening.
Furthermore, by combining the two examples, when framing, the most representative partial picture or partial image is divided as much as possible to generate a smaller-sized framing file as a thumbnail file of the graphic data.
In a third example, thumbnail files, such as the first ten seconds of a video file, are set according to the viewing habits of the user.
The establishment of the keyword information has two purposes, the first purpose is to facilitate subsequent retrieval, and the second purpose is to classify and archive the graphic data according to the keywords.
The keyword information can be named by a user according to needs, and the existing keyword information can be selected during the archiving of the graphic data, so that the classification and the archiving storage of the graphic database data are facilitated. Such as project a, district C, city B, underground pipe gallery projects, drainage pipe layout drawings, and so on.
It should be noted that the keyword information of the graphic data and its corresponding thumbnail file should be consistent, because in the present invention, one of the roles of the thumbnail file is that it is equivalent to a quick access link access port for the graphic data, in a sense that the thumbnail file is actually equivalent to the graphic data to which it corresponds.
And 2, receiving an access request of a specified graph sent by a user side, wherein the access request comprises a plurality of keyword information of the specified graph.
And providing a searching editor, and searching all the thumbnail files meeting the keyword information in the thumbnail file database according to the keyword information in the access request.
In the step, a user sends an access request containing a plurality of pieces of keyword information to enable a system to search all the thumbnail files which accord with the keyword information through a retrieval search editor, and all the thumbnail files which accord with the keyword information are displayed in front of the user.
The purpose of providing a search editor is to enable a user to retrieve a desired file based on a part of the keyword information without memorizing the name or the storage location of the document, and in fact, memorizing the name or the storage location of the document is a time-consuming and impractical task when the amount of the graphic data is large.
And 3, responding to the selection of any thumbnail file, outputting the thumbnail file to a user side, responding to the opening of the thumbnail file by the user side, calling the corresponding graphic data in the graphic database through a link, transmitting all the sub-files of the graphic data except the thumbnail file to the user side, and taking the thumbnail file as a base point to realize the complete calling and reading of the graphic data according to a preset merging rule.
The user selects one or more thumbnail files searched by the search editor, the selected thumbnail files are quickly transmitted to the user terminal, and a feedback request is sent to the user terminal along with the thumbnail files, so that the system can quickly know the next operation of the user on the thumbnail files, namely:
when the user selects one of the thumbnail files to open, the user terminal automatically sends a feedback request to the system to inform the system that the thumbnail file is open, the user is looking at the thumbnail file of the graphic data and requests to send the rest of the graphic data to the user terminal as soon as possible, so that the user can look at the graphic data completely.
After receiving the feedback request, the system will perform the following three steps:
firstly, the corresponding graphic data in the graphic database is quickly retrieved through the link between the thumbnail file established in advance and the corresponding graphic data.
Then, all the framing files of the graphic data except the thumbnail file are transmitted to the user side, and as mentioned above, it is assumed that the graphic data in step 1 is stored in the graphic database in the form of a compressed packet, and the compressed packet contains all other framing files except the thumbnail file, and then the compressed packet only needs to be sent to the user side.
And finally, decompressing the framing files sent to the user side, and combining the framing files together according to a preset combination rule to form complete graphic data.
Through the three steps, the graphic data file can be quickly retrieved, when a user requests to retrieve one graphic data, the user firstly observes the preset thumbnail file, for example, the first ten seconds of the image file, when the user views the ten-second image file, the rest parts of the image file are continuously transmitted to the user side, and are sequentially combined into a complete image file according to the playing time by taking the thumbnail file as a base point, so that the retrieval experience of the user is undoubtedly improved.
This is also true for image files of larger size, such as drainage pipe layouts for urban underground pipe corridors, which are often very bulky and cannot be quickly transferred to the user end or even opened in a short time.
However, by the method, the drainage pipeline layout of a part of the key regions can be retrieved first, and then the complete layout can be completed by sequentially splicing the part of the layout as a reference.
The method is described below as an example of transmission of specific picture data.
All the framing files for transmitting the graphic data to the user side are stored according to the line numbers, and meanwhile, the spatial data files corresponding to each stored framing file are generated.
And providing a merging rule editor for editing and setting merging rules of the framing files.
And setting an origin point for the thumbnail file, combining all the framing files by combining the spatial data files according to the combination rule of the combination rule editor, and generating the finished graphic data.
In this embodiment, there are many dividing methods for the area map, and different map software may have different dividing methods, and it is preferable to perform the dividing in a grid manner from the viewpoint of rapid merging.
The framing files are output in a grid mode, meanwhile, folders are set according to line numbers, the corresponding framing files in each line are numbered according to the sequence from left to right, and meanwhile, space data files are added for the framing files.
The spatial data files are mainly used for identifying the position of each framing file in the area map, so that the spatial data files of each framing file are different.
As an example, it is assumed that the frame files of a certain designated area are already arranged in a grid manner, that is, each frame file generated by dividing the designated area can find a corresponding unique position by combining rows and columns.
The spatial data merging rule has multiple modes, one of which is as follows:
the spatial data files are merged by adopting single-line merging firstly, and the adjacent lines are merged after the single-line merging. By adopting the mode, the data of each row can be merged firstly, and the merging efficiency is improved.
And the spatial data files are merged by adopting multithreading processing. The multithreading processing mode can improve the merging efficiency and shorten the merging time of waiting for each line.
In order to be more practical, the invention also provides a concept of the merging rule editor.
The setting of the merge rule is diverse and preferably good according to the actual needs of the user, and the rule is illustrated by two examples below.
First embodiment
The merging rule of the framing files is that the upper left corner of the selected map is used as an origin, the framing files of each row are merged in a grid mode, and the merging is carried out with the framing files of adjacent rows.
Second embodiment
The merging rule of the framing files can also be a mode of sequentially merging the areas adjacent to the area selected by the user in a row and column mode according to the area selected by the user as an origin.
When the user adopts the first merging rule, the display process of the framing files is carried out line by line, and the display process accords with the viewing habit of the user so as to sequentially view from top to bottom from left to right.
When the user adopts the second merging rule, the area selected by the user can be firstly displayed to the user, and then the detail of the framing files around the selected area is displayed successively, so that the user can firstly know the information of the selected area.
It should be understood that the merge rule editor may also set more merge rules, preferably, the view of the document is different due to different viewing habits of each user, and the merge rules are edited or selected by the user.
However, the mastery degree of each user on the software is different, so that for the convenience of the user, a plurality of preset merging rules are built in the merging rule editor, the user directly selects one merging rule according to actual needs to merge files, and one merging rule can be set as a default merging rule according to daily habits.
When a user opens one of the thumbnail files, the thumbnail file is found to be not the file to be searched, and at this time, if the transmission of the graphic data is still continued, a considerable part of the processing memory is occupied besides the storage space. To this end, the invention proposes a method:
and in response to the thumbnail file being closed by the user side in the graphic data transmission process, stopping the transmission process of the graphic data framing file. That is, when the thumbnail file is closed by the user side, the user side can feed back an instruction to the system to inform the system that the user does not need to continuously check the graphic data any more, and after receiving the instruction, the system stops the transmission of the graphic data and releases the processing memory.
For example, a user sends a designated image call command to the search editor, and the search editor calls a thumbnail meeting the conditions in the thumbnail database, and outputs and plays the thumbnail.
In the process of playing the image, the searching editor calls the image in the graphic database opposite to the thumbnail file database, outputs the image in the graphic database, stops outputting the thumbnail in the thumbnail file database or splices the image transmitted in the graphic data to the thumbnail file and then continues playing.
If the user stops playing the image in the playing process, the user stops sending the calling request to the graphic database, and simultaneously clears the called request to release the storage space.
In practical application, the graphic data in the graphic database can be continuously updated, and the invention provides a method which can quickly update the graphic data and also can quickly update and read the existing files on a user terminal. The method comprises the following specific steps:
when any graphic data in the graphic database is updated to a new version, a framing tool is adopted to perform framing processing on the graphic data of the new version according to the same framing rule, and newly generated framing files are compared with the framing files of the original version in the graphic database one by one correspondingly, and at the moment, two situations exist:
1) and in response to the newly generated framed file not being consistent with the original version of the framed file, enabling the newly generated framed file to cover the original version of the framed file, and generating a new version number for the newly generated framed file.
2) And in response to the newly generated framed file being consistent with the original version of the framed file, keeping the original version of the framed file unchanged.
And generating new version information, wherein the version number information of each framing file is recorded in the version information.
According to the method, only the changed part of the graphic data needs to be covered when the graphic data is updated, and the method is particularly suitable for updating the picture. For example, the drainpipe layout diagram may be that the new version only changes a small segment of the pipe, which is a time-consuming and long-lasting update process if the entire graphic data file is to be covered and then framed because of the change to the small segment of the pipe.
The main purpose of the updating method proposed by the present invention is still to enable the user to quickly retrieve the updated document.
And receiving an update request of any stored specified graphic data sent by a user side, wherein the update request comprises the version information of the specified graphic data.
And adopting a search editor to search the graphic database, acquiring the version information of the specified graphic data, responding to the version information of the graphic data in the graphic database higher than the version information of the specified graphic data stored in the user terminal, transmitting the framing file recorded in the version information and higher than the version information of the specified graphic data stored in the user terminal to the user terminal, and replacing part of data corresponding to the specified graphic data by a set covering rule.
Since the updating of the graphic data in the graphic database continues the previous framing rule, when a user calls the graphic data file, if the user side already has the old version of the graphic data, the user only needs to be directed to the updated part during the transmission of the graphic data.
For example, a drainage pipeline layout diagram v1.0 is already stored in a certain client, the drainage pipeline layout diagram in the graphic database is updated to v2.0, and the change is only the change of one of the framing files. At this moment, the user proposes a drainage pipeline layout diagram needing to be read, and then the system compares the contents in the two versions of information after respectively reading the versions of information in the user side and the graphic database, quickly analyzes the version of information to obtain an updated framing file, transmits the part of the framing file to the user side, and quickly covers the graphic part in the user side according to a set covering rule.
One set coverage rule is that pixel points in the graph to be updated and pixel points in the new version graph are subjected to pixel fusion according to the position corresponding relation.
Of course, the covering rule is not limited to this, and deletion and replacement of the whole framing file can be performed.
Assuming that the position of an image slice of an existing graph after slicing processing is row 3 and column 5, storing the slice under a folder with row number 3 and the file name being 5. jpg; the image slice position of the image after the image to be updated is sliced is row 3 and column 5, the slice is stored under a folder with row number 3, the file name is 5 'jpg, pixel points on the files of 5.jpg and 5' jpg are compared, wherein the comparison of the pixel points is carried out according to the principle of one-to-one correspondence, namely the pixel points of the corresponding files of each file are compared one by one, and the analogy is carried out in sequence, and the pixel points E '(x, y) in 5' jpg and the pixel points E (x, y) in 5.jpg are compared, wherein (x, y) is the space position of the pixel points.
The first method comprises the following steps: when the pixel point E (x, y) in the existing graph 5.jpg is an effective pixel value, and the pixel point E (x, y) in the graph 5 ' to be updated corresponding to the map image slice and corresponding to the pixel point position is an invalid pixel value, replacing the pixel value of the pixel point E ' (x, y) in the graph 5 ' to be updated corresponding to the existing graph 5.jpg and corresponding to the pixel point position (x, y) with the pixel point E (x, y) in the existing graph 5.
And the second method comprises the following steps: when the pixel point E (x, y) in the existing graph 5.jpg and the pixel point E ' (x, y) in the graph 5 ' jpg to be updated corresponding to the existing graph 5.jpg, which corresponds to the position of the pixel point E (x, y), are all valid pixel values, and the creation time of the existing graph 5.jpg is later than the modification time of the graph 5 ' jpg to be updated corresponding to the existing graph 5.jpg, the pixel value of the pixel point E ' (x, y) in the graph 5 ' jpg to be updated corresponding to the existing graph 5.jpg, which corresponds to the pixel point position (x, y), is replaced with the pixel value of the pixel point E (x, y) in the existing graph 5. jpg.
And the third is that: and if the comparison result is not the two conditions, keeping the pixel value of the pixel point corresponding to the pixel point position in the graph to be updated corresponding to the existing graph. The pixel point E (x, y) in the existing graph 5.jpg is a non-valid pixel value, and therefore, the pixel value of the pixel point E '(x, y) in 5' jpg is retained.
Thus, the fusion of one pixel point is completed. And according to the three conditions, fusing all pixel points in the existing graph 5.jpg and all pixel points in the graph 5 'jpg to be updated to obtain the updated map image slice 5' jpg.
In other examples, the framing files are usually named by using the row number and the column number where the framing files are located, and when the user end merges the framing files, the position of each framing file in the whole graphic data can be judged by the name of each framing file.
As shown in fig. 3, the present invention also provides a system for quick retrieval of graphics based on the method described above, which includes the following parts:
(1) the graphic database stores a plurality of qualified graphic data which comprise picture data and image data.
(2) And the framing tool is set to divide the graphic data into a plurality of framing files according to the set framing rules and store the files in the graphic database, wherein the framing files comprise the framing pictures of the graphic data and the playing segments of the image data.
(3) A thumbnail database.
And the module is used for storing partial framing files of each graphic data into the thumbnail file database to be used as the thumbnail files of the graphic data, establishing the link relation between each thumbnail file and the corresponding graphic data, and storing a plurality of key word information corresponding to each thumbnail file and/or the graphic data in the thumbnail file database.
(4) The module is used for receiving an access request of a specified graph sent by a user terminal, and the access request comprises a plurality of pieces of keyword information of the specified graph.
(5) And the search editor is set to retrieve and recall all the thumbnail files meeting the keyword information in the thumbnail file database according to the keyword information in the access request.
(6) And the module is used for responding to the selection of any thumbnail file and outputting the thumbnail file to the user side.
(7) And the processor is used for responding to the opening of the thumbnail file by the user side, transmitting all the sub-frame files of the graphic data except the thumbnail file to the user side by linking and calling the corresponding graphic data in the graphic database, and realizing the complete retrieval of the graphic data by taking the thumbnail file as a base point according to a preset merging rule.
The method for rapidly retrieving the graph can rapidly realize the display of the thumbnail of the graph in the process of calling the related graph, and simultaneously provides the complete graph in the display process, thereby improving the speed of the graph display.
Meanwhile, the method and the device can realize automatic updating of the graph, improve the accuracy of graph updating by identifying the corresponding pixel points in the graph, perform fusion processing on the graph with large data volume, reduce consumption of system resources and save the system resources.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for quickly reviewing graphics, the method comprising:
providing a graphic database, wherein a plurality of qualified graphic data are stored in the graphic database, and the graphic data comprise picture data and image data;
dividing the graphic data into a plurality of framing files by adopting a framing tool according to a set framing rule, and storing the files in a graphic database, wherein the framing files comprise framing pictures of the graphic data and playing fragments of the image data;
providing a thumbnail file database, storing partial framing files of each graphic data into the thumbnail file database to be used as the thumbnail files of the graphic data, establishing a link relation between each thumbnail file and the corresponding graphic data, and storing a plurality of key word information corresponding to each thumbnail file and/or the graphic data in the thumbnail file database;
receiving an access request of a designated graph sent by a user side, wherein the access request comprises a plurality of keyword information of the designated graph;
providing a search editor, and searching and retrieving all the thumbnail files meeting the keyword information in the thumbnail file database according to the keyword information in the access request;
in response to any thumbnail file being selected, outputting the thumbnail file to a user terminal, and,
responding to the thumbnail file opened by the user terminal, calling the corresponding graphic data in the graphic database through the link, transmitting all the sub-files of the graphic data except the thumbnail file to the user terminal, and taking the thumbnail file as a base point to realize the complete calling and reading of the graphic data according to a preset merging rule.
2. The method of claim 1, further comprising:
and in response to the fact that the thumbnail file is closed by the user side in the transmission process of the graphic data, stopping the transmission process of the graphic data framing file.
3. The method of claim 1, further comprising:
all the framing files for transmitting the graphic data to the user side are stored according to the line numbers, and meanwhile, space data files corresponding to each stored framing file one by one are generated;
providing a merging rule editor for editing and setting merging rules of the framing files;
and setting an origin point for the thumbnail file, combining all the framing files by combining the spatial data files according to the combination rule of the combination rule editor, and generating the finished graphic data.
4. The method for retrieving graphics quickly as set forth in claim 3, wherein the merging of the spatial data files is performed by merging a single line first and merging the lines adjacent to the single line after merging the single line.
5. The method for paging graphics as recited in claim 4, wherein the merging of the spatial data files employs multi-threaded processing.
6. The method for paging graphics in claim 3, wherein the merge rule editor has a number of preset merge rules built in.
7. The method of claim 1, further comprising:
when any graphic data in the graphic database is updated to a new version, a framing tool is adopted to perform framing processing on the graphic data of the new version according to the same framing rule, and the newly generated framing files are correspondingly compared with the framing files of the original version in the graphic database one by one,
1) in response to the newly generated framing file not being consistent with the framing file of the original version, enabling the newly generated framing file to cover the framing file of the original version and generating a new version number for the newly generated framing file;
2) responding to the newly generated framing file to be consistent with the framing file of the original version, and keeping the framing file of the original version unchanged;
and generating new version information, wherein the version number information of each framing file is recorded in the version information.
8. The method for paging through graphics as recited in claim 7, further comprising:
receiving an update request of any stored appointed graphic data sent by a user side, wherein the update request comprises the version information of the appointed graphic data;
a lookup editor is employed to retrieve the graphic database, obtain version information for the specified graphic data,
and responding to the version information of the graphic data in the graphic database higher than the version information of the specified graphic data stored in the user side, transmitting the framing file which is recorded in the version information and higher than the version information of the specified graphic data stored in the user side to the user side, and replacing part of data corresponding to the specified graphic data by the set coverage rule.
9. The method for retrieving graphics quickly as set forth in claim 8, wherein the set overlay rule is,
and carrying out pixel fusion on the pixel points in the graph to be updated and the pixel points in the new version graph according to the position corresponding relation.
10. A system for quick retrieval of graphics based on the method of claim 1, comprising:
the graphic database is used for storing a plurality of qualified graphic data, and the graphic data comprises picture data and image data;
the framing tool is set to divide the graphic data into a plurality of framing files according to set framing rules and store the files in a graphic database, wherein the framing files comprise framing pictures of the graphic data and playing fragments of the image data;
a database of thumbnail files;
a module for storing a part of the framing file of each graphic data into the thumbnail file database to be used as the thumbnail file of the graphic data, establishing a link relation between each thumbnail file and the corresponding graphic data, and storing a plurality of key word information corresponding to each thumbnail file and/or the graphic data in the thumbnail file database;
a module for receiving an access request of a designated graph sent by a user terminal, wherein the access request comprises a plurality of keyword information of the designated graph;
a search editor, configured to retrieve and recall all thumbnail files satisfying the keyword information in the thumbnail file database according to the keyword information in the access request;
a module for outputting the thumbnail file to a user terminal in response to any thumbnail file being selected;
and the processor is used for responding to the opening of the thumbnail file by the user terminal, calling the corresponding graphic data in the graphic database through the link, transmitting all the sub-frame files of the graphic data except the thumbnail file to the user terminal, setting a base point of the thumbnail file, and realizing the complete calling and reading of the graphic data according to a preset merging rule.
CN201711245317.1A 2017-12-01 2017-12-01 Method and system for quickly reading graph Active CN107943987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711245317.1A CN107943987B (en) 2017-12-01 2017-12-01 Method and system for quickly reading graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711245317.1A CN107943987B (en) 2017-12-01 2017-12-01 Method and system for quickly reading graph

Publications (2)

Publication Number Publication Date
CN107943987A CN107943987A (en) 2018-04-20
CN107943987B true CN107943987B (en) 2022-03-22

Family

ID=61947232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711245317.1A Active CN107943987B (en) 2017-12-01 2017-12-01 Method and system for quickly reading graph

Country Status (1)

Country Link
CN (1) CN107943987B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162401A (en) * 2019-05-24 2019-08-23 广州中望龙腾软件股份有限公司 The parallel read method of DWG file, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475929B (en) * 2013-09-06 2017-09-05 深圳Tcl新技术有限公司 Multimedia file thumbnail read method and system
KR20150090740A (en) * 2014-01-29 2015-08-06 엘지전자 주식회사 Mobile terminal and control method thereof
CN104793973B (en) * 2015-04-23 2018-09-18 惠州Tcl移动通信有限公司 A kind of loading method and system of mobile terminal picture file
CN106610770A (en) * 2016-12-29 2017-05-03 努比亚技术有限公司 Picture viewing method and device
CN107025059B (en) * 2017-04-20 2020-12-11 三星电子(中国)研发中心 Thumbnail viewing method and device
CN107205163A (en) * 2017-06-30 2017-09-26 努比亚技术有限公司 A kind of method and apparatus of picture processing

Also Published As

Publication number Publication date
CN107943987A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
US7877696B2 (en) Multi-frame display system with semantic image arrangement
US7882442B2 (en) Multi-frame display system with perspective based image arrangement
JPH0432427B2 (en)
US20080165082A1 (en) Function enhancing array for multi-frame display system
KR20060052116A (en) Content management system and content management method, computer program
KR20030059403A (en) Apparatus and method for searching of multimedia object based on server and client system
JP3922372B2 (en) Structured document processing apparatus and program
CN101515983A (en) Image processor and image processing method
US20240303414A1 (en) Electronic document processing method and apparatus, terminal, and storage medium
CN107943987B (en) Method and system for quickly reading graph
KR20090037704A (en) How to generate metadata for images for intuitive image retrieval
KR100853308B1 (en) Structured Search by Item Type
CN104135628A (en) Video editing method and terminal
CN113722518A (en) Storage method, retrieval method, equipment and medium based on remote sensing image metadata
JPH06162104A (en) Document element search device and search method
JP4745726B2 (en) File management apparatus, control method therefor, computer program, and computer-readable storage medium
CN115587084A (en) Comprehensive management system and method for geographic information data
JPH06251078A (en) Information processing equipment
JPH0322014A (en) Menu selecting method
JP4521669B2 (en) Video editing support system
KR100563085B1 (en) Composite display method of numerical map and photographic image
JPH09198392A (en) Data managing/output method and electronic filing system provided with the same
JP2004334530A (en) Website editing support system and method
KR20070112681A (en) Apparatus and method for retrieving multimedia files in mobile communication terminal
JPH0721075A (en) Multi-media filing system

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