Disclosure of Invention
The invention aims to solve the problems and provide an automatic reusable geospatial information processing rapid modeling method.
The invention realizes the purpose through the following technical scheme:
the invention comprises the following steps:
the method comprises the following steps: firstly, converging original execution operators, wherein the model comprises four major operator accessible models: the GP tool takes the processing tools accumulated by the original platforms such as ArcGIS and the like as operators to be all brought in; second, Python processing tool which accords with GP standard that other third party develops; thirdly, a functional operator is self-customized and developed based on the system of the method; fourthly, processing operators formed by various historical accumulated executable programs through parameter stripping and transformation;
step two: and compiling a model sequence through a modeler, wherein the model sequence is a set capable of sequentially executing processing operators according to certain logic, and an XML file is used as a sequence carrier. The modeling device browses and selects all available operators in the operator library in a visual mode, automatically prompts to select parameter transmission, interactively edits to form a model sequence, the model sequence comprises execution logics such as sequence, nesting and circulation, and the modeling process is similar to simple interactive program building development;
step three: in the modeling process, the correctness of model parameters can be automatically checked through a model editor at any time, a model sequence is compiled, and the structure of the model sequence is adjusted in real time according to requirements;
step IV: after the model sequence is built, filling test parameters through a model tester, and performing automatic model test, wherein if the model fails to operate or does not accord with a preset target, the model editor is returned to modify the model;
step five: the model sequence meeting the requirements can be tested to derive a localized file, and the model sequence can be loaded to run repeatedly later and can also be embedded into other system multiplexing models together with the model execution engine.
The invention is oriented to the geospatial information processing modeling achievement, and under a multi-environment, the invention is automatic, rapid and reusable in model, and adopts the following technical scheme:
the established model in the first process is quickly and simply reused in other environments, other application scenes are embedded through secondary development of the model engine, and the execution model is called through the model engine in other scenes, so that other application systems obtain the multiplexing capability of the model:
step 1: filling a model operator, a model sequence and input parameters (including exchange selection or intervention parameters) into a model engine;
step 2: the model engine depends on the model framework to define a minimum contract interface, realizes corresponding operators of different types, classifies and calls specific engine entities, and realizes a GP engine, a Python engine, a self-customizing engine and an executive program engine;
and step 3: the model engine calls a model interpreter to forward analyze the model sequence, check form parameters and actual parameters and materialize operator objects;
and 4, step 4: the model operator orderly calls model operators according to the interpretation result of the interpreter and the model sequence logic to carry out actual model operation and carry out parameter transmission among different operators;
and 5: in the running process of the model sequence, the model engine reports the monitoring log to a subscription terminal (including error information and normal execution process progress) in real time through an observer mode, and if the model is executed successfully, a result and model parameters are output.
The invention has the beneficial effects that:
the invention relates to an automatic reusable geographical space information processing rapid modeling method, which has the following advantages compared with the prior art:
the function is improved. By the main technical scheme, aiming at the processing of geographic space information, various existing processing capacities can be widely converged together to form a maximum function union under different platform environments, except for completely integrating the existing GP function of ArcGIS, Python operator functions developed by other parties based on a GP model, operator functions developed by each topic application according to the requirement in a self-customized manner and a large number of historically accumulated executable program functions are integrally incorporated into the model.
② the effect is improved. Through the secondary technical scheme, the reusable effect of the model is exerted to the maximum, the model formed by the primary technical scheme can be quickly accessed into various application environments through simple secondary development and calling, the application effect and the application range of the model are greatly improved, and the quick reuse difficulty of the model is reduced.
And social benefits. The technical method has stronger social benefit, can effectively combine academic modeling and industrial application, enables the geographic space information professionals to concentrate on model optimization, enables the industrial engineering technicians to concentrate on the model for quick reuse, can effectively bridge the existing academic and industrial gaps, and has better social application benefit.
Fourthly, economic benefit. The related software formed by the technical method has been partially applied to various production and engineering projects: in the geographic information node service integration, by the technical method, service chain aggregation is realized at a WEB end, and geological disaster rapid spatial analysis is performed; in the construction of database building software of a digital city database and in the construction of database building software of a national and local three-tone database, the application system can be quickly built by the technical method, and the development period of geographic information software is greatly shortened. In conclusion, by the technical method, economic cost can be saved and better economic benefit can be obtained due to reusable rapid modeling.