The invention relates to the technical field of computer graphic
processing, and discloses a method for automatically drawing a DCS (
Distributed Control System) picture into a real-time
database picture, which comprises the following steps of: firstly, identifying a DCS source
file format, directly analyzing a public text format or intercepting a bottom layer rendering instruction for a private binary format, and extracting standardized discrete data; constructing an intermediate vector model, and performing coordinate normalization and
curve smoothing processing on the static primitives by using an affine
transformation matrix; meanwhile, syntactic analysis is conducted on the control script to construct an
abstract syntax tree, and dynamic logic is converted; then recombining a
composite object based on spatial
semantics, and repairing pipeline topology connection by utilizing automatic adsorption and an orthogonal
routing algorithm; and finally, calling a target
system interface to complete object instantiation and persistent storage. According to the invention, the automatic high-fidelity migration of the DCS picture to the real-time
database is realized, the labor cost is reduced, and the consistency and accuracy of the monitoring picture are ensured.