Design and application of an open geographic information collection template language supporting complex multi-task definition

By designing an open geographic information acquisition template language that supports complex multi-task definitions, the problem of limited functionality in existing systems has been solved. This language enables database consistency and multi-task acquisition support, making it suitable for various field information acquisition scenarios.

CN114118042BActive Publication Date: 2024-11-22WUHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111337908.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-10
Publication Date
2024-11-22
Estimated Expiration
2041-11-10

AI Technical Summary

Technical Problem

Existing general-purpose field information collection systems have limited functionality and cannot meet the needs of collecting diverse attributes and complex tasks. They also cannot guarantee the consistency between server and mobile databases, nor can they meet the diverse needs of different collection tasks.

Method used

An open geographic information acquisition template language supporting complex multi-task definitions was designed, including drawing tools, positioning methods, base map configuration, data table configuration, and acquisition item configuration. Through XML format template language and application methods, database consistency and multi-task acquisition support were achieved.

Benefits of technology

It achieves consistency between offline and online databases, meets the needs of different data collection scenarios, reduces the cost of customized system development, supports simultaneous data collection for multiple tasks, and is suitable for scenarios such as regional surveys, data verification, and data auditing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114118042B_ABST
    Figure CN114118042B_ABST
Patent Text Reader

Abstract

The present invention provides an open geographic information collection template language design and application method that supports complex multi-task definitions. In the template language design, the definitions of base map data, drawing tools, positioning tools, database fields, table associations, interactive control types, and field script operations of a field information collection system are included, which can meet the requirements of spatial element types, geographic base map configurations, attribute field definitions, complex table associations, and the like in different field information collection tasks, thereby achieving consistency between offline and online databases and meeting data requirements in different collection scenarios; in the application method, the editing, generation, and parsing of XML templates, a database engine based on XML templates, and rendering and logic control of components on the end are included, thereby achieving the versatility of the software and breaking through the problems of the existing system, such as single controls, fixed processes, no support for complex table associations, and inability to meet the problems of offline and online integrated collection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software template language design and application technology, and in particular to an open geographic information collection template language design and application method that supports complex multi-task definitions. Background Art

[0002] As the digital level of field information collection continues to improve, a customized field information collection system can greatly reduce the difficulty of field personnel, improve the efficiency and accuracy of information collection, speed up data transmission, and ensure data security. Due to the high cost of software customization and the different requirements of different collection tasks, an open geographic information collection system that supports complex multi-task definitions is particularly important.

[0003] At present, the general field information collection system has relatively simple collection controls, mostly text input boxes, which cannot meet the requirements of multi-attribute collection and the requirements of collecting multiple complex tasks at the same time. It can be seen that the methods in the prior art have the technical problem of single function and cannot meet different collection requirements. Summary of the invention

[0004] The purpose of the present invention is to provide an open geographic information collection template language design method and application method that supports complex multi-task definitions. Through a set of XML format template languages ​​and a template application method, it is used to solve or at least partially solve the technical problem that the methods in the prior art have a single function and cannot meet different collection needs, thereby being suitable for different collection needs in most current field information collection scenarios.

[0005] The first aspect of the present invention discloses an open geographic information collection template language design method supporting complex multi-task definition, including:

[0006] S1: Drawing tool configuration, which defines the drawing tools that can be used for spatial feature collection, including the configuration of points, lines, surfaces, rectangles, circles, location points, and sketches;

[0007] S2: Positioning mode configuration, defines the positioning mode used for spatial positioning, including network positioning, GPS positioning, Baidu positioning, and Bluetooth positioning;

[0008] S3: Base map configuration, including the definition of the map to be displayed, the properties of the overlay layer, the service address, and the service group. The maps include Tiandi Map, Google Map, Amap, Baidu Map, Tencent Map, OSM base map, and other custom services. The properties of the overlay layer include the layer name and layer type.

[0009] S4: Data table configuration, including configuration table name, Chinese description and table type. Table types are divided into root tables and associated tables. Root tables are tables with spatial elements. Associated tables are tables directly or indirectly associated with root tables. Associated tables contain attribute information of collection element objects but do not contain spatial elements.

[0010] S5: Collection item configuration, including library table field definition, collection page configuration, option configuration, script configuration, and associated table configuration.

[0011] In one implementation, configuring the service grouping in step S3 includes:

[0012] In the map service, vector layer grouping and image layer grouping are distinguished for the control and switching of geographic basemaps on mobile terminals.

[0013] In one implementation, the library table field definition in S5 includes:

[0014] For each table, set the "Is it a primary key" field and the "Is it a self-incrementing primary key" field. For the root table, set the "Is it a spatial element" field. For the associated table, set the "Is it an associated primary key" field to indicate the association between the associated table and the root table.

[0015] For fields that need to record dates, set the "Whether automatic date", "Whether to record insertion", and "Time format" fields.

[0016] In one embodiment, the acquisition page configuration in S5 includes setting a control type for a field used for interaction, and the control type includes a text label, a text input box, a number input box, a voice input box, a drop-down box, a radio button, a multiple-choice box, a photo module, an audio module, a multimedia module, a time selector, and an area selector;

[0017] The acquisition page configuration also includes specifying the display order of controls and corresponding settings.

[0018] In one implementation, the option configuration in S5 includes:

[0019] For a drop-down box, multiple-select box, or radio button, specify specific options. The options include the key, value, and return value type.

[0020] In one implementation, the script configuration in S5 includes:

[0021] Define script operations between fields. Script operations include value scripts, visible scripts, and grouping scripts.

[0022] In one implementation, the association table configuration in S5 includes:

[0023] Configure the association relationship between the root table and the associated table and between different associated tables. The association relationship includes 1 to 1 and 1 to n association relationships. For the table that initiates the association, the configuration field is used to record the object value after the association. For the associated table, the association field is configured to record the primary key value in the table that initiates the association.

[0024] Based on the same inventive concept, the second aspect of the present invention discloses an application method based on the template language designed in the first aspect, which is applied to a mobile terminal, comprising:

[0025] S1: Parse the configuration file and package it into a specific object;

[0026] S2: Create a database and corresponding tables according to the definition of the data table in the configuration file. For the root table, additional inherent fields such as collection time, update time, collector, reviewer, and version number are generated.

[0027] S3: Controls the loading of maps, the designation of coordinate systems, the changes of drawing tools and positioning methods according to the definitions of drawing tools, positioning methods and base maps in the configuration files;

[0028] S4: When it is necessary to edit the properties of spatial elements, first generate a dynamic layout containing different property editing controls according to the configuration of the collection items in the configuration file, sort the fields containing the relevant configuration of the collection page according to the display order, and then place the corresponding interactive controls in the dynamic layout according to the defined control types; for controls with different control modes, perform corresponding mode configurations; use the observer mode to register the control objects associated with the script and the entire page layout to realize the value operation, visualization control and availability control of the script.

[0029] In one embodiment, the method further comprises:

[0030] For a table with a 1-to-n association relationship, an object selection list is added in the corresponding position of the dynamic layout to select the specific object currently being edited, wherein the added object is stored by a hash dictionary.

[0031] Based on the same inventive concept, the third aspect of the present invention discloses an application method of the template language designed based on the first aspect, which is applied to the server, comprising:

[0032] S1: Parse the configuration file and package it into a specific object;

[0033] S2: Create a database and corresponding tables according to the definition of the data table in the configuration file. For the root table, additional inherent fields such as collection time, update time, collector, reviewer, and version number are generated.

[0034] The above one or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:

[0035] The open geographic information collection template language design method that supports complex multi-task definitions provided by the present invention includes definitions of base map data, drawing tools, positioning tools, database fields, table associations, interactive control types, and field script operations of a field information collection system. It can meet the needs of spatial element types, geographic base map configurations, attribute field definitions, complex table associations, and the like in different field information collection tasks, thereby achieving consistency between offline and online databases and meeting data requirements in different collection scenarios.

[0036] The application method not only includes the editing, generation and parsing of XML templates (i.e., configuration files generated by the template language design method), the database engine based on XML templates, and the rendering and logic control of terminal components, but also includes logic control applicable to different field information collection processes, the allocation of tasks and data, customized data transmission, statistics and analysis, and other auxiliary management and decision-making processes. Based on the currently designed XML template and application method, it can meet different application scenarios such as regional collection, data verification, data field review, and data internal review, reducing the cost of system customization development and realizing the versatility of the software. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A schematic diagram of the template language design content and the template engine application module in the implementation of the present invention;

[0039] Figure 2 This is a structure diagram of the XML format template language designed in the implementation of the present invention;

[0040] Figure 3 This is a flow chart of the template language application method in the implementation of the present invention. DETAILED DESCRIPTION

[0041] The inventors of this application have discovered through extensive research and practice that the current common field information collection systems have the following main defects: 1. The collection controls are relatively simple, mostly text input boxes, which cannot meet the requirements of multi-attribute collection (single selection, multiple selection, drop-down boxes, multimedia, etc.); 2. The collection base map, coordinate system and drawing tools do not support unified management and control; 3. Task customization cannot ensure the structural consistency of the server remote database and the mobile terminal local database; 4. It is impossible to customize the complex associations between data tables; 5. It is impossible to meet the needs of simultaneous collection of multiple complex tasks; 6. It is impossible to meet the needs of different collection processes for different collection tasks (such as regional surveys, element verification, collection and verification, internal verification, etc.).

[0042] Based on this, the present invention discloses a template language that can define database tables and relationships between tables, collection interface controls and control logical relationships, data types and precision, system base maps and coordinate systems, and collection tools, so as to cover a variety of field collection information system requirements and meet the needs of offline data collection, storage, uploading, and downloading of multiple complex tasks at the same time.

[0043] The main inventive concepts of the present invention are as follows:

[0044] First, the template language design includes definitions of base map data, drawing tools, positioning tools, database fields, table associations, interactive control types, and field script operations of the field information collection system. It can meet the needs of spatial feature types, geographic base map configurations, attribute field definitions, complex table associations, and other requirements in different field information collection tasks, thereby achieving consistency between offline and online databases and meeting data requirements in different collection scenarios.

[0045] Secondly, in the application method, it not only includes the editing, generation and parsing of XML templates, the database engine based on XML templates, and the rendering and logical control of terminal components, but also includes the logical control applicable to different field information collection processes, the allocation of tasks and data, the transmission of customized data, statistics and analysis, and other auxiliary management and decision-making processes. Based on the currently designed XML template and application method, it can meet different application scenarios such as regional collection, data verification, data field review, and data internal review. It can not only reduce the cost of system customization development and realize the versatility of software, but also break through the common defined field information collection system. The control is single, the process is fixed, and it does not support complex table associations. It cannot meet the requirements of offline and online integrated collection, cannot guarantee database consistency, and cannot supervise and statistically analyze tasks, personnel, and data in custom formats.

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] Embodiment 1

[0048] The embodiment of the present invention provides an open geographic information collection template language design method supporting complex multi-task definition, including:

[0049] S1: Drawing tool configuration, which defines the drawing tools that can be used for spatial feature collection, including the configuration of points, lines, surfaces, rectangles, circles, location points, and sketches;

[0050] S2: Positioning mode configuration, defines the positioning mode used for spatial positioning, including network positioning, GPS positioning, Baidu positioning, and Bluetooth positioning;

[0051] S3: Base map configuration, including the definition of the map to be displayed, the properties of the overlay layer, the service address, and the service group. The maps include Tiandi Map, Google Map, Amap, Baidu Map, Tencent Map, OSM base map, and other custom services. The properties of the overlay layer include the layer name and layer type.

[0052] S4: Data table configuration, including configuration table name, Chinese description and table type. Table types are divided into root tables and associated tables. Root tables are tables with spatial elements. Associated tables are tables directly or indirectly associated with root tables. Associated tables contain attribute information of collection element objects but do not contain spatial elements.

[0053] S5: Collection item configuration, including library table field definition, collection page configuration, option configuration, script configuration, and associated table configuration.

[0054] Specifically, the open geographic information collection template language design method that supports complex multi-task definitions provided in this embodiment provides a set of XML format template languages ​​to suit different collection requirements in most current field information collection scenarios.

[0055] The present invention relates to a set of XML format template languages, which are mainly divided into two parts, one is metadata (drawing tool configuration, positioning mode configuration and base map configuration in steps S1-S3), and the other is collection tables (data table configuration and collection item configuration in steps S4-S5). The designed template language forms a configuration file for subsequent analysis and application.

[0056] See also Figure 2 , which is the XML format template language structure diagram designed in the implementation of the present invention.

[0057] S1 includes: configurations of drawing methods such as points, lines, surfaces, flow lines, flow surfaces, rectangles, circles, location points, trajectory surfaces, sketches, etc. S2 includes definitions of positioning methods used for spatial positioning, including: network positioning, GPS positioning, Baidu (AutoNavi) positioning, Bluetooth positioning, etc., to suit different field collection scenarios. Maps in S3 include public map services such as Tiandi Map, ArcGIS public maps, Google maps, AutoNavi maps, Baidu maps, Tencent maps, OSM maps (OpenStreetMap open source wiki maps), etc., as well as other custom WMS (Web Map Service, network map service), WFS (web feature service), MVT (vector tile) services, etc.

[0058] The root table in S4 is a table with spatial element fields, that is, the collected element objects; the associated table contains the attribute information of the collected element objects (excluding spatial elements).

[0059] S5 Collection Item Configuration: Defines the field properties in the table, including field name, field keyword, database type, control type, display order, script operations, and other special settings corresponding to different controls or special fields.

[0060] In one implementation, configuring the service grouping in step S3 includes:

[0061] In the map service, vector layer grouping and image layer grouping are distinguished for the control and switching of geographic basemaps on mobile terminals.

[0062] Among them, other layers that are not included in the vector and image grouping are overlay layers and will be placed in the layer manager to allow users to perform visual control.

[0063] In one implementation, the library table field definition in S5 includes:

[0064] For each table, set the "Is it a primary key" field and the "Is it a self-incrementing primary key" field. For the root table, set the "Is it a spatial element" field. For the associated table, set the "Is it an associated primary key" field to indicate the association between the associated table and the root table.

[0065] For fields that need to record dates, set the "Whether automatic date", "Whether to record insertion", and "Time format" fields.

[0066] During the specific implementation process, only one "Is it a spatial element" field can be set for each root table. The field types include Text, Integer, Float, Double, Date, Blob, etc. When corresponding to specific databases of different implementations, the database type needs to be mapped and matched.

[0067] In one embodiment, the acquisition page configuration in S5 includes setting a control type for a field used for interaction, and the control type includes a text label, a text input box, a number input box, a voice input box, a drop-down box, a radio button, a multiple-choice box, a photo module, an audio module, a multimedia module, a time selector, and an area selector;

[0068] The acquisition page configuration also includes specifying the display order of controls and corresponding settings.

[0069] In the specific implementation process, the number in the number input box can be an integer or a floating point number. For multimedia components, you can select the specific mode of the component, such as only taking pictures, only recording, only displaying (not editing) or all functions. For the drop-down box, you can specify whether it is a single selection or multiple selections, etc.

[0070] In one implementation, the option configuration in S5 includes:

[0071] For a drop-down box, multiple-select box, or radio button, specify specific options. The options include the key, value, and return value type.

[0072] The return value type is key or value.

[0073] In one implementation, the script configuration in S5 includes:

[0074] Define script operations between fields. Script operations include value scripts, visible scripts, and grouping scripts.

[0075] During the specific implementation process, the display and hiding of the current control can be dynamically controlled according to the different contents selected in one or more radio buttons, multiple-choice boxes, and drop-down boxes.

[0076] In one implementation, the association table configuration in S5 includes:

[0077] Configure the association relationship between the root table and the associated table and between different associated tables. The association relationship includes 1 to 1 and 1 to n association relationships. For the table that initiates the association, the configuration field is used to record the object value after the association. For the associated table, the association field is configured to record the primary key value in the table that initiates the association.

[0078] The setting of the above fields facilitates subsequent associated queries.

[0079] Embodiment 2

[0080] Based on the same inventive concept, this embodiment provides an application method of the template language designed based on the first embodiment, which is applied to a mobile terminal, including:

[0081] S1: Parse the configuration file and package it into a specific object;

[0082] S2: Create a database and corresponding tables according to the definition of the data table in the configuration file. For the root table, additional inherent fields such as collection time, update time, collector, reviewer, and version number are generated.

[0083] S3: Controls the loading of maps, the designation of coordinate systems, the changes of drawing tools and positioning methods according to the definitions of drawing tools, positioning methods and base maps in the configuration files;

[0084] S4: When it is necessary to edit the properties of spatial elements, first generate a dynamic layout containing different property editing controls according to the configuration of the collection items in the configuration file, sort the fields containing the relevant configuration of the collection page according to the display order, and then place the corresponding interactive controls in the dynamic layout according to the defined control types; for controls with different control modes, perform corresponding mode configurations; use the observer mode to register the control objects associated with the script and the entire page layout to realize the value operation, visualization control and availability control of the script.

[0085] Specifically, the configuration file is a file obtained by the method of the first embodiment, and after parsing the configuration file, it is packaged into a specific object to facilitate the retrieval and call of attributes. The response fields are generated by S2 to meet the needs of metadata tracking and query of different collection tasks.

[0086] In one embodiment, the method further comprises:

[0087] For a table with a 1-to-n association relationship, an object selection list is added in the corresponding position of the dynamic layout to select the specific object currently being edited, wherein the added object is stored by a hash dictionary.

[0088] Among them, the dynamic layout refers to the page displayed by the control. According to the definition of the configuration file, the controls can be dynamically added or reduced in the specified page (dynamic layout); therefore, the dynamic layout mainly includes the generation of root table controls, the integration of associated table controls, and the association of script operations.

[0089] In a specific implementation, for other associated tables, based on the specific definition of the collection items in the associated table, the relevant logic for generating interactive controls in step S4 is executed to generate specific controls defined in the associated table and integrate them into the dynamic layout; for 1-to-n associated tables, it is necessary to add an object selection list in the corresponding position of the dynamic layout to select the specific object currently being edited.

[0090] Among them, the objects generated by the dynamic layout are stored in a hash dictionary (HashMap). According to the hash dictionary, data can be stored in the corresponding database, data can be queried from the database conditions (based on the collector, reviewer, ID and spatial range, etc.), data can be displayed in the dynamic layout, data can be transmitted over the network, etc.

[0091] Embodiment 3

[0092] Based on the same inventive concept, this embodiment provides an application method of the template language designed based on the first embodiment, which is applied to the server, including:

[0093] S1: Parse the configuration file and package it into a specific object;

[0094] S2: Create a database and corresponding tables according to the definition of the data table in the configuration file. For the root table, additional inherent fields such as collection time, update time, collector, reviewer, and version number are generated.

[0095] The application of the server side is similar to that of the mobile side. In addition, for a table with a 1-to-n association relationship, an object selection list is added to the corresponding position of the dynamic layout to select the specific object currently being edited, wherein the added object is stored by a hash dictionary.

[0096] See also Figure 1 , which is a schematic diagram of the template language design content and the template engine application module in the implementation of the present invention. The template language design content includes template generation, which is generated by the design method in Example 1. The application method of Example 2 includes template parsing and database operation, and also includes on-end component rendering.

[0097] See also Figure 3 , which is a flow chart of the template language application method in the implementation of the present invention.

[0098] Step 1: Create a new task according to the specific task requirements and define the task's XML configuration file, which includes the following:

[0099] 1) Drawing tool selection: According to the requirements of the task, select the drawing tools allowed to users.

[0100] 2) Positioning tool selection: According to the requirements of the task, select the positioning tool that the user is allowed to use. If there is an external Bluetooth positioning device, the Bluetooth positioning mode can be enabled.

[0101] 3) Base map configuration: According to the task area and map requirements, load the system-defined network base map resources in enumerated form, or load user-defined map services according to the map type and determine the grouping of services.

[0102] 4) Collection form configuration: According to the requirements of the task, configure the required collection form and the corresponding attribute fields. The fields can specifically select the collection controls and corresponding attribute items, set the association between the fields and other forms, and the logical control scripts between the fields.

[0103] The same task may contain multiple task entities that need to be collected (reflected in multiple root tables), each task root table may contain multiple associated tables, and associated tables may also be nested and associated with each other.

[0104] Step 2, the server parses the generated XML file into a specific Configuration class, and according to the class, calls the database operation module developed by the present invention based on the configuration file to create a database and corresponding tables. Two copies of each table on the server are generated, one to save the latest data and the other to save the historical version data to facilitate data version rollback. Inherent fields such as collector, reviewer, collection time, update time, version number, etc. are added to the root table;

[0105] Step 3: The administrator can divide the tasks according to the specific scenario, the work area or the data to be verified. If no tasks are assigned, it is assumed that all mobile users are not restricted by the work area, or can obtain all data on the server. Once the tasks are assigned, it is considered that the tasks have been successfully issued. For the same mobile user, he can participate in multiple collection tasks at the same time.

[0106] Step 4: The mobile terminal selects the task that has been created on the server side to pull according to the user information and task division, downloads the XML configuration file, and parses the downloaded XML file into a specific Configuration class on the mobile terminal, and creates a database and corresponding tables according to the configuration of the data table in the class;

[0107] Step 5: The mobile terminal controls the loading of the map in order and in groups according to the Configuration class generated in step 3, and dynamically controls the drawing tool and positioning tool;

[0108] Step 6: In the verification task, the mobile terminal can obtain the data to be verified divided by step 3 from the server according to the user information and the currently selected task. The operation of the verification task is similar to the data editing and updating function, see step 7.2 for details.

[0109] Step 7: The collection process on the mobile terminal includes two steps: spatial feature drawing and attribute information recording. It is specifically divided into new collection and editing and updating, including the following two steps:

[0110] Step 7.1, Add collection: After the user draws the spatial element, the attribute information editing interface will be entered. The mobile terminal generates a dynamic layout on the attribute collection page according to the Configuration class generated in step 3, generates the controls defined in the configuration file in the dynamic layout, and registers the corresponding script logic; the dynamic layout provides additional Save and Cancel buttons. Cancel abandons the current operation, and Save organizes the data into HashMap format according to the Configuration object and the value of the control. By calling the database operation module, the data is written into the data table created in step 3;

[0111] Step 7.2, edit and update: if the mobile terminal needs to modify the data stored in the database, first confirm whether the spatial element needs to be edited. If the spatial element needs to be edited, the nodes of the spatial element are allowed to be adjusted or increased or decreased. Then, through the database operation module, specific attribute information is obtained according to the space, id or other custom conditions, and displayed in the dynamic layout (collection page configuration) generated in step S5 of embodiment 1; the modified data can still be updated through the database operation module;

[0112] In step 8, the mobile terminal determines the data that has not been uploaded based on the attributes of the record, calls the database operation module to query the specific data, and uploads it to the server. After the server receives the data uploaded by the mobile terminal, it calls the database operation module to write the data in batches into the database table generated by step S2 of embodiment 1.

[0113] Step 9: The server can call the database operation module according to the needs to query the corresponding data in the server database to meet the needs of summarizing, statistics, analyzing, and reviewing the field data collection, and can also query the corresponding data for downloading by the mobile terminal. The data available for download can be assigned together with the uploaded data in the task when the task is assigned (see step 3 for details). With the user's permissions, the new data collection function of the mobile terminal, the data review function of the server, etc., the combination of functions can meet different field collection needs in different application scenarios such as data investigation, data verification, data review, field data collection and review, and information feedback.

[0114] The present invention designs a template language that can define database tables and relationships between tables, collection interface controls and control logical relationships, data types and precision, system geographic base maps, coordinate systems, and collection tools, so as to cover various field information collection system requirements and meet the needs of offline data collection, storage, uploading, and downloading of multiple complex tasks at the same time, solving the following shortcomings of current general field information collection systems: 1. The collection controls are relatively simple, mostly text input boxes, which cannot meet the requirements of multi-attribute collection (single selection, multiple selection, drop-down boxes, multimedia, etc.); 2. The collection base map, coordinate system, and drawing tools do not support unified management and control; 3. Task customization cannot ensure the structural consistency of the server remote database and the mobile terminal local database; 4. It is impossible to customize the complex association relationship between data tables; 5. It is impossible to meet the needs of simultaneous collection of multiple complex tasks; 6. It is impossible to meet the needs of different collection processes for different collection tasks (such as regional surveys, element verification, simultaneous collection and verification, internal verification, etc.).

[0115] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An open geographic information collection template language design method that supports complex multi-task definition, characterized by: include: S1: Drawing tool configuration, which defines the drawing tools that can be used for spatial feature collection, including the configuration of points, lines, surfaces, rectangles, circles, location points, and sketches; S2: Positioning mode configuration, defines the positioning mode used for spatial positioning, including network positioning, GPS positioning, Baidu positioning, and Bluetooth positioning; S3: Base map configuration, including the definition of the map to be displayed, the properties of the overlay layer, the service address, and the service group. The maps include Tiandi Map, Google Map, Amap, Baidu Map, Tencent Map, OSM base map, and other custom services. The properties of the overlay layer include the layer name and layer type. S4: Data table configuration, including configuration table name, Chinese description and table type. Table types are divided into root tables and associated tables. Root tables are tables with spatial elements. Associated tables are tables directly or indirectly associated with root tables. Associated tables contain attribute information of collection element objects but do not contain spatial elements. S5: Collection item configuration, including library table field definition, collection page configuration, option configuration, complex nested table configuration, and associated table configuration; The configuration of the service group in step S3 includes: In the map service, vector layer grouping and image layer grouping are distinguished for the control and switching of geographic basemaps on mobile terminals.

2. The open geographic information collection template language design method according to claim 1, characterized in that: The library table field definitions in S5 include: For each table, set the "Is it a primary key" field and the "Is it a self-incrementing primary key" field. For the root table, set the "Is it a spatial element" field. For the associated table, set the "Is it an associated primary key" field to indicate the association between the associated table and the root table. For fields that need to record dates, set the "Whether automatic date", "Whether record insertion", and "Time format" fields.

3. The open geographic information collection template language design method according to claim 1, characterized in that: The acquisition page configuration in S5 includes setting the control type for the fields used for interaction, and the control types include text label, text input box, number input box, voice input box, drop-down box, radio button, multiple-choice box, photo module, audio module, multimedia module, time selector, and area selector; The acquisition page configuration also includes specifying the display order of controls and corresponding settings.

4. The open geographic information collection template language design method according to claim 1, characterized in that: The options configuration in S5 include: For a drop-down box, multiple-select box, or radio button, specify specific options. The options include the key, value, and return value type.

5. The open geographic information collection template language design method according to claim 1, characterized in that: The script configuration in S5 includes: Define script operations between fields. Script operations include value scripts, visible scripts, and grouping scripts.

6. The open geographic information collection template language design method according to claim 1, characterized in that: The associated table configuration in S5 includes: Configure the association relationship between the root table and the associated table and between different associated tables. The association relationship includes 1 to 1 and 1 to n association relationships. For the table that initiates the association, the configuration field is used to record the object value after the association. For the associated table, the association field is configured to record the primary key value in the table that initiates the association.

7. An application method of the template language designed based on any one of claims 1 to 6, characterized in that: Applied to mobile terminals, including: S1: Parse the configuration file and package it into a specific object; S2: Create a database and corresponding tables according to the definition of the data table in the configuration file. For the root table, additional inherent fields such as collection time, update time, collector, reviewer, and version number are generated. S3: Controls the loading of maps, the designation of coordinate systems, the changes of drawing tools and positioning methods according to the definitions of drawing tools, positioning methods and base maps in the configuration files; S4: When it is necessary to edit the properties of spatial elements, first generate a dynamic layout containing different property editing controls according to the configuration of the collection items in the configuration file, sort the fields containing the relevant configuration of the collection page according to the display order, and then place the corresponding interactive controls in the dynamic layout according to the defined control types; for controls with different control modes, perform corresponding mode configurations; use the observer mode to register the control objects associated with the script and the entire page layout to realize the value operation, visualization control and availability control of the script.

8. An application method of the template language as claimed in claim 7, characterized in that: The method further comprises: For a table with a 1-to-n association relationship, an object selection list is added in the corresponding position of the dynamic layout to select the specific object currently being edited, wherein the added object is stored by a hash dictionary.

9. An application method of the template language designed based on any one of claims 1 to 6, characterized in that: Applied to the server, including: S1: Parse the configuration file and package it into a specific object; S2: Create a database and corresponding tables according to the definition of the data table in the configuration file. For the root table, additional inherent fields such as collection time, update time, collector, reviewer, and version number are generated.