CN113094035A - Method, system and equipment for realizing graphical editing of train database - Google Patents

Method, system and equipment for realizing graphical editing of train database Download PDF

Info

Publication number
CN113094035A
CN113094035A CN202110371283.0A CN202110371283A CN113094035A CN 113094035 A CN113094035 A CN 113094035A CN 202110371283 A CN202110371283 A CN 202110371283A CN 113094035 A CN113094035 A CN 113094035A
Authority
CN
China
Prior art keywords
train
information
database
information database
development tool
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.)
Granted
Application number
CN202110371283.0A
Other languages
Chinese (zh)
Other versions
CN113094035B (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.)
CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Original Assignee
CRRC Qingdao Sifang Rolling Stock Research Institute 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 CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd filed Critical CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Priority to CN202110371283.0A priority Critical patent/CN113094035B/en
Publication of CN113094035A publication Critical patent/CN113094035A/en
Application granted granted Critical
Publication of CN113094035B publication Critical patent/CN113094035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The invention discloses a method, a system and equipment for realizing graphical editing of a train database, wherein the method comprises the following steps: judging whether a train information database exists or not, and if not, establishing the train information database based on business requirements; reading the html file, referring to the API of the electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application development tool; monitoring user operation information based on a visual map interface, calling a QT application development tool based on an API of the electronic map if the user operation information is monitored, and carrying out information interaction with a train information database based on the QT application development tool to realize graphical editing of the train information database. The invention realizes the graphical display of the train information and the graphical editing of the train information database, facilitates the operation of users, improves the practicability, greatly reduces the workload of the staff of the railway bureau and reduces the output of labor cost.

Description

Method, system and equipment for realizing graphical editing of train database
Technical Field
The invention relates to the technical field of rail transit databases, in particular to a method, a system and equipment for realizing graphical editing of a train database.
Background
The high-speed rail industry in China has been developed rapidly, the high-speed rail has become an important travel tool for people, and the high-speed rail industry has become a huge market. In order to improve the service quality and ensure that passengers have better riding experience, each railway bureau compiles the information of each train line and the service information into a database through a database editing system and broadcasts the information to the passengers in real time according to the running state of the train so as to ensure that the passengers can obtain accurate train related information.
The database editing system is essentially database editing software, and can perform addition, deletion, modification and check operations on the database of the passenger information system through the database editing system, so that the functions of creating, inquiring, updating, deleting and the like of stations, train numbers and lines are realized, and information support is provided for train operation.
However, in the existing database editing system, when a line and a train number are newly built, all stations need to be manually added one by one in sequence by adopting character search, and information such as the line and the train number cannot be graphically edited; the mileage between adjacent stations cannot be automatically added; when the train number and the route are updated, the adjustment of the station sequence and the implementation mode of inserting a new station between two stations are complicated. The train routes of all railway bureaus are distributed all over the country, and the train numbers and the routes in the database are edited frequently, so that the workload of station workers is heavy, and the output of labor cost is increased.
Disclosure of Invention
The invention provides a method for realizing graphical editing of a train database, which aims to solve the technical problems of complex database editing operation and large labor cost output in the prior art.
The invention provides a method for realizing graphical editing of a train database, which comprises the following steps:
a train information database establishing step of judging whether a train information database exists or not, and if not, establishing the train information database based on business requirements;
a map interface construction step, reading an html file, referring to an API of an electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application development tool;
and a graphical editing step, namely monitoring user operation information based on the visual map interface, calling the QT application development tool based on the API of the electronic map if the user operation information is monitored, and carrying out information interaction with the train information database based on the QT application development tool to realize the graphical editing of the train information database.
The implementation method for graphically editing the train database further comprises the following steps:
a train station information sharing step of comparing target train station information to be imported into the train information database with the train station information in the train information database based on the QT application development tool and the train information database, and if the target train station information is the same as the train station information, covering the train station information with the target train station information; and if the target train station information is different from the train station information, importing the target train station information which does not exist in the train station information into the train information database.
The implementation method for graphically editing the train database further comprises the following steps:
a train number information sharing step, wherein target train number information needing to be imported into the train information database is compared with train number information in the train information database based on the QT application development tool and the train information database, and if the target train number information is the same as the train number information, the train number information is covered by the target train number information; and if the train number information of the target train is different from the train number information of the train, importing the train number information of the target train which does not exist in the train number information of the train into the train information database.
The implementation method for graphically editing the train database further comprises the following steps:
and a mileage adding step, wherein the mileage of a plurality of adjacent train stations is stored in the train information database, and after the graphical editing of the train information database is realized, the mileage of two adjacent train stations is automatically added.
The implementation method for graphically editing the train database includes the following specific steps:
reading an html file based on a QWebEngineView class in the QT application program development tool, referring to the API of the electronic map based on the html file, calling the API of the electronic map based on the QT application program development tool, and constructing the visual map interface.
In the implementation method for graphically editing the train database, the calling the QT application development tool based on the API of the electronic map in the graphically editing step specifically includes:
QWebChannel class will among the QT application development instrument user operation information transmits to QTbridge class, and pass through QWebEngineView class will with user operation information corresponding return value transmits to JS, realize based on the API of electronic map calls QT application development instrument.
In the implementation method for graphically editing the train database, the information interaction between the QT application development tool and the train information database in the graphically editing step specifically includes:
and carrying out information interaction between a QSqlDataBase class and a QSqlQuery class in the QT application development tool and the train information database.
The invention also provides a system for realizing graphical editing of the train database, which comprises the following steps:
the train information database establishing module is used for judging whether a train information database exists or not, and if the train information database does not exist, establishing the train information database based on business requirements;
the map interface construction module is used for reading the html file, quoting the API of the electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application program development tool;
and the graphical editing module is used for monitoring user operation information based on the visual map interface, calling the QT application development tool based on the API of the electronic map if the user operation information is monitored, and carrying out information interaction with the train information database based on the QT application development tool to realize graphical editing of the train information database.
The invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and is characterized in that the processor implements the implementation method for graphically editing the train database.
The present invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the implementation method for graphically editing a train database as described above.
The invention has the technical effects or advantages that:
the invention provides a method for realizing graphical editing of a train database, which comprises the following steps: when the train information database does not exist, establishing the train information database based on the service requirement; reading the html file, referring to the electronic map API based on the html file, and constructing a visual map interface according to the electronic map API and a QT application development tool; monitoring user operation information based on a visual map interface, calling a QT application development tool based on an API of the electronic map if the user operation information is monitored, and carrying out information interaction with a train information database based on the QT application development tool to realize graphical editing of the train information database. The method for realizing the graphical editing of the train database provided by the invention is based on the train information database and a QT application program development tool, realizes the graphical display of the train information and the graphical editing of the train information database, is convenient for user operation, improves the practicability, greatly reduces the workload of railway bureau workers and reduces the output of labor cost.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention.
FIG. 1 is a flow chart of a method for implementing a graphical editing train database according to an embodiment of the present invention;
FIG. 2 is a flow chart of another implementation method for graphically editing a train database according to an embodiment of the present invention;
fig. 3 is a schematic diagram of information sharing of a train station according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of train number information sharing provided by an embodiment of the present invention;
FIG. 5 is a block diagram of a system for implementing graphically editing a train database according to an embodiment of the present invention;
FIG. 6 is a block diagram of an electronic device according to an embodiment of the present invention;
in the above figures:
1. a train information database establishing module; 2. a map interface construction module; 3. a graphical editing module; 10. a bus; 11. a processor; 12. a memory; 13. a communication interface.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, the present invention will be further described in detail with reference to the accompanying drawings and the detailed description. Although embodiments of the invention are disclosed in the accompanying drawings, it should be understood that the invention can be embodied in any form and should not be construed as limited to the embodiments set forth herein.
In the description of the present invention, it is to be understood that the terms "inside", "outside", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are only for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention. The terms "first," "second," "third," and the like, herein are used to describe various elements, components, regions, layers and/or sections, but only to distinguish one element, component, region, layer or section from another element, component, region, layer or section. Terms such as "first," "second," "third," and other numerical terms when used herein do not imply a sequence or order unless clearly indicated by the context.
In the description of the present invention, it is to be noted that, unless otherwise explicitly specified or limited, the term "connected" is to be interpreted broadly, e.g. as a fixed connection, a detachable connection, or an integral connection; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In order to solve the technical problems of complex database editing operation and large labor cost output in the prior art, the invention provides a method for realizing graphical editing of a train database.
The technical solution of the present invention will be described in detail below with reference to the specific embodiments and the accompanying drawings.
The embodiment relates to a method for realizing graphical editing of a train database, which comprises the following steps:
a train information database establishing step S1 of determining whether a train information database exists, and if not, establishing the train information database based on a service requirement;
a map interface construction step S2, reading the html file, referring to the API of the electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application program development tool;
and an image editing step S3, monitoring user operation information based on a visual map interface, calling a QT application development tool based on an API of the electronic map if the user operation information is monitored, and carrying out information interaction with the train information database based on the QT application development tool to realize image editing of the train information database.
The method for realizing the graphical editing of the train database provided by the embodiment is based on the train information database and the QT application development tool, realizes the graphical display of train information and the graphical editing of the train information database, is convenient for user operation, improves the practicability, greatly reduces the workload of railway bureau staff, and reduces the output of labor cost.
Referring to fig. 1, fig. 1 is a flowchart of an implementation method for graphically editing a train database according to this embodiment. The implementation method for graphically editing the train database provided by the embodiment comprises the following steps:
a train information database establishing step S1 of determining whether a train information database exists, and if not, establishing the train information database based on the service requirement.
In the present embodiment, when there is a train information database, the map interface construction step S2 is performed.
In a specific application, the service requirement may include train station information, train number information, train route information, and the like, and may be specifically set according to an actual situation, which is not specifically limited in this embodiment.
And a map interface construction step S2, reading the html file, referring to the API of the electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application development tool.
In this embodiment, the map interface constructing step S2 specifically includes:
reading an html file based on a QWebEngineView class in a QT application program development tool, referring to an API of an electronic map based on the html file, calling the API of the electronic map based on the QT application program development tool, and constructing a visual map interface.
In specific application, interaction between the QT application development tool and html is realized through QWebEngineView classes in the QT application development tool, and meanwhile, the API of the electronic map is introduced into the html, so that the QT application development tool can call the Javascript API of the electronic map, and the construction of a visual map interface is realized. The electronic map in this embodiment may be a hundred-degree electronic map.
And an image editing step S3, monitoring user operation information based on a visual map interface, calling a QT application development tool based on an API of the electronic map if the user operation information is monitored, and carrying out information interaction with the train information database based on the QT application development tool to realize image editing of the train information database.
In this embodiment, the calling of the QT application development tool based on the API of the electronic map in the graphical editing step S3 specifically includes:
and transmitting the user operation information to a QTbridge class through a QebChaneview class in the QT application program development tool, transmitting a return value corresponding to the user operation information to the JS through the QebEngineView class, and calling the QT application program development tool through an API (application programming interface) based on the electronic map.
In this embodiment, the information interaction between the QT application development tool and the train information database in the graphical editing step S3 specifically includes:
QSqlDataBase class and QSqlQuery class in the QT application development tool carry out information interaction with the train information database.
In specific application, a C + + channel object is created through a QWebchannel class in the QT, a js object is created in the javascript, and calling of the electronic map javascript API to the QT can be realized. The user operation information includes, but is not limited to: station operation information, train number operation information, and route operation information, the operations including but not limited to: and the addition, deletion, modification and check are realized through dragging.
In specific application, if the user operation information is not monitored, the QWebchannel class in the QT application program development tool transmits other function command information to the QTbridge class, so that the corresponding function is realized.
In this embodiment, through the train information database establishing step S1, the map interface establishing step S2, and the graphical editing step S3, based on the train information database and the QT application development tool, the graphical display of the train information and the graphical editing of the train information database are realized, which facilitates the user operation, improves the practicability, and greatly reduces the workload of the staff of the railway administration and the output of labor cost.
Referring to fig. 2, as an example, the following describes an implementation process of graphically editing a train database, specifically as follows:
firstly, judging whether a train information database exists or not, if not, establishing the train information database based on service requirements, after establishing the train information database, reading a html file based on a QebEngineView class in a QT application program development tool, referring to an API of an electronic map based on the html file, calling the API of the electronic map based on the QT application program development tool, constructing a visual map interface, using the visual map interface, monitoring user operation information in real time based on the visual interface when using the visual map interface, transmitting the user operation information to a QTbridge class by the Qebchannel class in the QT application program development tool if monitoring the user operation information, transmitting a return value corresponding to the user operation information to JS through the QebEngineView class, realizing that the QT application program development tool is called based on the electronic map, and performing information interaction with the train information database based on the QSqlDatabase class and the QSqlQuery class in the QT application program development tool, therefore, graphical editing of the train information database is achieved, and if user operation information is not monitored, QWebchannel information in the QT application program development tool transmits other function command information to QTbridge information, so that corresponding functions are achieved.
In order to implement the sharing of train station information of different databases and reduce repetitive editing work, the implementation method for graphically editing the train database provided by this embodiment further includes: train station information sharing step S4. Specifically, referring to fig. 3, wherein the train station information sharing step S4 includes:
based on a QT application development tool and a train information database, comparing target train station information required to be imported into the train information database with train station information in the train information database, and if the target train station information is the same as the train station information, covering the train station information with the target train station information; and if the target train station information is different from the train station information, importing the target train station information which does not exist in the train station information into a train information database.
In this embodiment, information interaction is performed between QSqlDatabase class and QSqlQuery class in the QT application development tool and the train information database, so that train station sharing is realized. Wherein, the train station information includes but is not limited to: train station name information, longitude and latitude information and corresponding voice information.
In this embodiment, the specific step of covering the train station information with the target train station information means that the target train station information is completely imported into the train information database, so as to cover the train station information.
In a specific application, when the target train station information is imported into the train information database, the target train station information may be imported as needed, that is, all the target train station information may be imported or part of the target train station information may be imported, and a specific import mode is not specifically limited in this embodiment.
Similarly, in order to implement the sharing of train number information of different databases and reduce repetitive work, the implementation method for graphically editing the train database provided by this embodiment further includes: train number information sharing step S5. Specifically, referring to fig. 4, the train number information sharing step S5 includes:
based on a QT application development tool and a train information database, comparing the train number information of a target train needing to be imported into the train information database with the train number information in the train information database, and if the train number information of the target train is the same as the train number information, covering the train number information with the train number information of the target train; and if the train number information of the target train is different from the train number information of the train, importing the train number information of the target train which does not exist in the train number information of the train into a train information database.
In this embodiment, information interaction is performed between the QSqlDatabase class and the QSqlQuery class in the QT application development tool and the train information database, so that train number information sharing is realized. Wherein, train number information includes but is not limited to: the information of the name of the station in the number of vehicles, the information of the mileage between stations and the information of the number of running vehicles.
In this embodiment, the specific step of covering the train number information with the target train number information means that the target train number information is completely imported into the train information database, so as to cover the train number information.
In a specific application, when the train number information of the target train is imported into the train information database, the train number information can be imported as required, and the train number information can be imported completely or partially, and a specific import mode is not specifically limited in this embodiment.
In this embodiment, through the train station information sharing step S4 and the train number information sharing step S5, information sharing between different databases is realized, and the same train station information and train number information can be synchronously updated in the databases of different railways bureaus only through once editing, so that repetitive editing work is reduced, and the updating efficiency of database information is improved.
In order to further improve the convenience of operation, the implementation method for graphically editing the train database provided in this embodiment further includes: mileage adding step S6. Wherein the mileage adding step S6 includes:
the mileage of a plurality of adjacent train stations is stored in the train information database, and after the graphical editing of the train information database is realized, the mileage of two adjacent train stations is automatically added.
In this embodiment, the number of adjacent train stations may be set according to actual needs, and the specific number is not specifically limited in this embodiment, and preferably, in this embodiment, the number of adjacent train stations is 5.
The implementation method for graphically editing the train database provided by the embodiment further includes:
and a step S7 of train number forbidding, wherein according to preset forbidding rules, the QT application development tool carries out information interaction with the train information base to forbid the train number of the target train. In this embodiment, the train number disabling step S7 is performed to disable the target train number within the target time, and the requirement of the railway administration for this function is met. The preset disabling rule may be set according to actual needs, and the specific setting mode is not specifically limited in this embodiment.
And an audio fault detection step S8, before the target audio file is not played, performing information interaction with the train information base based on the QT application development tool, playing the target audio file, and if the target audio file has a fault, stopping playing the target audio file and notifying related personnel to repair the target audio file.
An information detection step S9, performing information interaction with a train information base based on a QT application development tool, detecting train number information, train station information and train line information to be displayed in real time, and if missing information occurs, supplementing the missing information; if the train number information, the train station information and the train line information have sensitive words, the sensitive words are removed.
The implementation method for graphically editing the train database provided by this embodiment is based on the train information database and the QT application development tool, and implements graphical display of train information and graphical editing of the train information database, thereby facilitating user operation, improving practicality, greatly reducing workload of railway bureau staff, reducing labor cost output, implementing sharing of train station information and train number information of different databases, and reducing repetitive editing work.
It should be noted that there is no inevitable order among the train station sharing step S4, the train number sharing step S5, the mileage adding step S6, the train number disabling step S7, the audio fault detecting step S8, and the information detecting step S9.
The embodiment further provides an implementation system for graphically editing a train database, and with reference to fig. 5, the implementation system includes: the system comprises a train information database establishing module 1, a map interface establishing module 2 and a graphical editing module 3, wherein the train information database establishing module 1 is connected with the map interface establishing module 2, and the map interface establishing module 2 is connected with the graphical editing module 3. Specifically, the method comprises the following steps:
the train information database establishing module 1 is used for judging whether a train information database exists or not, and if the train information database does not exist, establishing the train information database based on business requirements;
the map interface construction module 2 is used for reading the html file, quoting the API of the electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application program development tool;
and the graphical editing module 3 is used for monitoring user operation information based on a visual map interface, calling a QT application development tool based on the API of the electronic map if the user operation information is monitored, and carrying out information interaction with the train information database based on the QT application development tool to realize graphical editing of the train information database.
The implementation system for graphically editing the train database provided by the embodiment is based on the train information database and a QT application development tool, realizes graphical display of train information and graphical editing of the train information database, facilitates user operation, improves practicability, greatly reduces workload of railway bureau workers, reduces labor cost output, realizes sharing of train station information and train number information of different databases, and reduces repetitive editing work.
Referring to fig. 6, the present embodiment further provides a computer device, which includes a memory 12, a processor 11, and a computer program stored on the memory 12 and operable on the processor 11, and when the processor 11 executes the computer program, the implementation method for graphically editing the train database as described above is implemented.
The apparatus may comprise a processor 11 and a memory 12 in which computer program instructions are stored. Specifically, the processor 11 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 12 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 12 may include a Hard Disk Drive (Hard Disk Drive, abbreviated to HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 12 may include removable or non-removable (or fixed) media, where appropriate. The memory 12 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 12 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, Memory 12 includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), Electrically rewritable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
The memory 12 may be used to store or cache various data files that need to be processed and/or used for communication, as well as possible computer program instructions executed by the processor 11.
The processor 11 reads and executes the computer program instructions stored in the memory 12 to implement any one of the implementation methods for graphically editing the train database in the above embodiments.
In some of these embodiments, the computer device may also include a communication interface 13 and a bus 10. Referring to fig. 6, the processor 11, the memory 12, and the communication interface 13 are connected via the bus 10 to complete communication therebetween. The communication interface 13 is used for implementing communication between modules, devices, units and/or equipment in the embodiment of the present application. The communication port 13 may also be implemented with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
The bus 10 includes hardware, software, or both to couple the components of the electronic device to one another. Bus 10 includes, but is not limited to, at least one of the following: data Bus (Data Bus), Address Bus (Address Bus), Control Bus (Control Bus), Expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example, and not limitation, Bus 10 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a HyperTransport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a Microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (AGP) Bus, a Local Video Association (Video Electronics Bus), abbreviated VLB) bus or other suitable bus or a combination of two or more of these. Bus 10 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
In addition, in combination with the implementation method for graphically editing the train database in the above embodiment, an embodiment of the present application may provide a computer-readable storage medium for implementation. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by the processor, implement any one of the implementation methods for graphically editing the train database in the above embodiments.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for realizing graphical editing of a train database is characterized by comprising the following steps:
a train information database establishing step of judging whether a train information database exists or not, and if not, establishing the train information database based on business requirements;
a map interface construction step, reading an html file, referring to an API of an electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application development tool;
and a graphical editing step, namely monitoring user operation information based on the visual map interface, calling the QT application development tool based on the API of the electronic map if the user operation information is monitored, and carrying out information interaction with the train information database based on the QT application development tool to realize the graphical editing of the train information database.
2. The method for graphically editing the train database according to claim 1, further comprising:
a train station information sharing step of comparing target train station information to be imported into the train information database with the train station information in the train information database based on the QT application development tool and the train information database, and if the target train station information is the same as the train station information, covering the train station information with the target train station information; and if the target train station information is different from the train station information, importing the target train station information which does not exist in the train station information into the train information database.
3. The method for graphically editing the train database according to claim 1, further comprising:
a train number information sharing step, wherein target train number information needing to be imported into the train information database is compared with train number information in the train information database based on the QT application development tool and the train information database, and if the target train number information is the same as the train number information, the train number information is covered by the target train number information; and if the train number information of the target train is different from the train number information of the train, importing the train number information of the target train which does not exist in the train number information of the train into the train information database.
4. The method for graphically editing the train database according to claim 1, further comprising:
and a mileage adding step, wherein the mileage of a plurality of adjacent train stations is stored in the train information database, and after the graphical editing of the train information database is realized, the mileage of two adjacent train stations is automatically added.
5. The method for implementing graphical editing of a train database according to claim 1, wherein the map interface constructing step specifically includes:
reading an html file based on a QWebEngineView class in the QT application program development tool, referring to the API of the electronic map based on the html file, calling the API of the electronic map based on the QT application program development tool, and constructing the visual map interface.
6. The method for implementing graphical editing of the train database according to claim 1, wherein the API based on the electronic map calls the QT application development tool in the graphical editing step, and specifically includes:
QWebChannel class will among the QT application development instrument user operation information transmits to QTbridge class, and pass through QWebEngineView class will with user operation information corresponding return value transmits to JS, realize based on the API of electronic map calls QT application development instrument.
7. The method for implementing graphical editing of the train database according to any one of claims 1 or 6, wherein the information interaction between the QT application development tool and the train information database in the graphical editing step specifically includes:
and carrying out information interaction between a QSqlDataBase class and a QSqlQuery class in the QT application development tool and the train information database.
8. An implementation system for graphically editing a train database, comprising:
the train information database establishing module is used for judging whether a train information database exists or not, and if the train information database does not exist, establishing the train information database based on business requirements;
the map interface construction module is used for reading the html file, quoting the API of the electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application program development tool;
and the graphical editing module is used for monitoring user operation information based on the visual map interface, calling the QT application development tool based on the API of the electronic map if the user operation information is monitored, and carrying out information interaction with the train information database based on the QT application development tool to realize graphical editing of the train information database.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements a method of implementing a graphically edited train database as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements a method for graphically editing a train database according to any one of claims 1 to 7.
CN202110371283.0A 2021-04-07 2021-04-07 Method, system and equipment for realizing graphical editing of train database Active CN113094035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110371283.0A CN113094035B (en) 2021-04-07 2021-04-07 Method, system and equipment for realizing graphical editing of train database

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110371283.0A CN113094035B (en) 2021-04-07 2021-04-07 Method, system and equipment for realizing graphical editing of train database

Publications (2)

Publication Number Publication Date
CN113094035A true CN113094035A (en) 2021-07-09
CN113094035B CN113094035B (en) 2024-02-06

Family

ID=76675002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110371283.0A Active CN113094035B (en) 2021-04-07 2021-04-07 Method, system and equipment for realizing graphical editing of train database

Country Status (1)

Country Link
CN (1) CN113094035B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114044028A (en) * 2021-09-27 2022-02-15 交控科技股份有限公司 Engineering train control method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106184295A (en) * 2016-07-07 2016-12-07 王永桂 A kind of Train Dynamic information real time inquiry system and method
CN106855882A (en) * 2016-12-19 2017-06-16 交控科技股份有限公司 A kind of urban track traffic electronic map data generates system and method
US20200410044A1 (en) * 2019-06-28 2020-12-31 Baidu Online Network Technology (Beijing) Co., Ltd. Visualized edition method, device and apparatus, and storage medium
CN112416895A (en) * 2020-11-16 2021-02-26 杭州安恒信息技术股份有限公司 Database information processing method and device, readable storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106184295A (en) * 2016-07-07 2016-12-07 王永桂 A kind of Train Dynamic information real time inquiry system and method
CN106855882A (en) * 2016-12-19 2017-06-16 交控科技股份有限公司 A kind of urban track traffic electronic map data generates system and method
US20200410044A1 (en) * 2019-06-28 2020-12-31 Baidu Online Network Technology (Beijing) Co., Ltd. Visualized edition method, device and apparatus, and storage medium
CN112416895A (en) * 2020-11-16 2021-02-26 杭州安恒信息技术股份有限公司 Database information processing method and device, readable storage medium and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘庆磊;赵疆昀;曾小旭;王其才;: "地铁列车运行图编制系统的设计与实现", 铁路计算机应用, no. 05 *
樊亚红;王闽;江润东;姚金杰;: "基于Qt的图像与导航地图融合软件设计", 国外电子测量技术, no. 04 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114044028A (en) * 2021-09-27 2022-02-15 交控科技股份有限公司 Engineering train control method and device, electronic equipment and storage medium
CN114044028B (en) * 2021-09-27 2024-04-30 交控科技股份有限公司 Engineering train control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113094035B (en) 2024-02-06

Similar Documents

Publication Publication Date Title
CN111044060B (en) Multi-vehicle path planning method and multi-vehicle path planning system
CN110837539B (en) Railway electronic map construction method and electronic map position matching method
CN112863172B (en) Highway traffic running state judgment method, early warning method, device and terminal
CN109859505B (en) Early warning processing method, device, server and medium for high-speed station
CN113094035A (en) Method, system and equipment for realizing graphical editing of train database
CN107204124A (en) Bus recommends method and apparatus
CN107110655A (en) POI provides server, POI and provides device, the POI offer system and program
JP2022508433A (en) Attendance evaluation method for tunnel construction vehicles, computer equipment and computer-readable storage media
CN113177046B (en) Road network topological graph generation method, device, equipment and storage medium
CN115240423B (en) Internet-based intelligent urban traffic allocation method and system
KR102569890B1 (en) Method and navigation device for processing overlapping event
CN116321071A (en) Internet of vehicles communication method and equipment
Vorobyev et al. Providing Additional Situational Awareness with the Use of V2X Technology to Improve the Reliability of Highly Automated Vehicles
CN105183766A (en) Method and system for eliminating historical route redundant points of maps
CN109118759A (en) A kind of information processing method, block chain node device and relevant device
CN112362071B (en) Multi-destination route planning method, device and storage medium
US20210254987A1 (en) Route navigation device and computer readable storage medium
CN114435433A (en) Method and device for verifying automatic trigger route conflict
JP6467847B2 (en) Travel path output control program, travel path output control method, and information processing apparatus
CN103903457B (en) Navigation system is determined the method and system of region transit time
DE102010004292A1 (en) Method for determining route for motor vehicle, involves determining route from start position to target position based on navigation information and bandwidth information with respect to predetermined bandwidth criterion
CN113029179B (en) Route evaluation method and device, electronic equipment and storage medium
CN112188506B (en) Relay station address selection method and device, electronic equipment and storage medium
US20240132101A1 (en) Autonomous driving system in heterogeneous sd map and hd map environment and management method for the autonomous driving
CN112185106B (en) Unreasonable speed limit sign screening method and device, storage medium and terminal

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