Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a method and equipment for automatically constructing geographic entities in batches based on primitive data, so as to realize efficient geographic entity construction and relationship generation.
In one aspect, an embodiment of the present application provides a method for automatically constructing geographic entities in batch based on primitive data, including the following steps:
acquiring primitive data to be processed and a construction mode;
according to the construction mode, constructing geographic entities in batch based on the primitives to be processed;
and generating the relation between the geographic entities through a relation generation model.
In some embodiments, the build modes include a unit lot build and a range line lot build, wherein,
the unit batch construction refers to directly constructing the root graph elements into the geographic entities in batch;
the range line batch construction means: and constructing the geographic entities containing the main body primitives and the member primitives in batches by using the primitives which are contained in the maximum outsourcing rectangle of the contained area primitive range line and have the same geographic entity identification code.
In some embodiments, the relationship between the geographic entities is stored among field information of each geographic entity, wherein the field information includes a child entity field and a parent entity field.
In some embodiments, the relationship generation model is obtained by:
acquiring basic parent-child level relation information;
and training the relationship generation model through the basic father-son level relationship information to obtain the trained relationship generation model.
In some embodiments, the base parent-child relationship information is stored in configuration information for each account configured with at least one base parent-child relationship information.
In some embodiments, the batch-building of the geographic entities based on the primitives to be processed according to the building manner specifically includes:
acquiring a geographic entity and a database design standard of a primitive according to a construction mode, wherein the standard comprises the category, coding and composition relation of the primitive and the geographic entity;
and constructing the geographic entities in batches according to the primitives to be processed and the corresponding design standard.
In some embodiments, the method is implemented based on ETL tools on the geographic entity production platform software.
On the other hand, the embodiment of the present application provides a system for automatically constructing geographic entities in batches based on primitive data, including:
the acquisition unit is used for acquiring primitive data to be processed and a construction mode;
the construction unit is used for constructing the geographic entities in batches based on the primitives to be processed according to the construction mode;
and the generating unit is used for generating the relation between the geographic entities through a relation generating model.
On the other hand, the embodiment of the present application provides a system for automatically constructing geographic entities in batches based on primitive data, including:
a memory for storing a program;
and the processor is used for loading a program to execute the method for automatically constructing the geographic entity in batches based on the primitive data.
In another aspect, an embodiment of the present application provides a computer-readable storage medium storing a program, which when executed, implements a method for automatically building a geographic entity based on a batch of primitive data.
According to the method and the device, the geographic entities are built in batches based on the primitives to be processed by acquiring the primitive data to be processed and the building mode, then the relation between the geographic entities is generated through the relation generation model, the primitives are processed in batches in an automatic division mode to generate the corresponding geographic entities, and the relation information between the geographic entities is automatically generated, so that the processing efficiency is high, and the error rate is low.
Detailed Description
In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below through embodiments with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present invention, the meaning of a plurality is one or more, the meaning of a plurality is two or more, and larger, smaller, larger, etc. are understood as excluding the present numbers, and larger, smaller, inner, etc. are understood as including the present numbers. If there is a description of first and second for the purpose of distinguishing technical features only, this is not to be understood as indicating or implying a relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of technical features indicated.
In the description of the present invention, unless otherwise explicitly defined, terms such as set, etc. should be broadly construed, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the detailed contents of the technical solutions.
In the description of the present invention, reference to the description of "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples", etc., means that a particular feature or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The embodiment provides a method for automatically constructing geographic entities in batches based on primitive data, which realizes automatic production of single geographic entities and automatic construction of the relationship between child and parent levels among the geographic entities. The application provides an integrated production scheme, and an SME (an ETL (extract transform and load) tool similar to an FME (fuzzy rule) tool) scheme can be automatically generated by a program according to provided primitives and geographic entity database standards without manual modification. After a user optimizes or modifies the graphic primitive and the design standard of the geographic entity database, the method can still automatically generate the batch SME scheme for automatically constructing the single geographic entity in batches, and is simple to operate, automatic and convenient. The method is realized based on an ETL tool on the geographic entity production platform software.
Referring to fig. 2 to 5, in the present embodiment, the method includes the following steps:
step 1, obtaining primitive data to be processed and a construction mode. As shown in fig. 3, the building manner includes a unit lot building and a range line lot building, wherein,
the unit batch construction refers to directly constructing the root graph element into the geographic entity in batch;
the range line batch construction means: and constructing the geographic entities containing the main graphic elements and the member graphic elements in batches by using the graphic elements which are contained in the maximum outsourcing rectangle of the area graphic element range line and have the same geographic entity identification code.
And 2, constructing the geographic entities in batches based on the primitives to be processed according to the construction mode.
The unit batch construction is used for directly constructing a single root primitive into a geographic entity, the range line batch construction is used for constructing the geographic entity containing a main body primitive and a member primitive (generally called an auxiliary primitive), and the geographic entity is constructed through the primitives containing the same geographic entity identification code and contained in the maximum outsourcing rectangle of the range line of the contained planar primitive. The geographic entity identification code is the unique identification of the geographic entity, and the graphic elements for constructing the geographic entity contain the same geographic entity identification code.
Thus, step 2 is specifically:
acquiring a geographic entity and a database design standard of a primitive according to a construction mode, wherein the standard comprises the category, coding and composition relation of the primitive and the geographic entity;
and constructing the geographic entities in batches according to the primitives to be processed and the corresponding design standard.
Before executing the graphic primitive data to automatically construct the geographic entity product data in batch, the composition relationship configuration of the single geographic entity and the graphic primitive is carried out according to the standard file designed by the database of the geographic entity and the graphic primitive, so as to identify the composition relationship between the graphic primitive and the geographic entity by a program. At present, an integrated production scheme is realized only by executing configuration of a composition relation between a geographic entity and a graphic element and then selecting a standard file designed by a database of the geographic entity and the graphic element for automatic configuration. Referring to fig. 2, the description of the automatically configured house composition relationship, further clicking the synchronization to the system, can be used without performing the step again next time without modifying the standard of the database design of the geographic entities and the primitives.
And 3, generating the relationship between the geographic entities through a relationship generation model. The relationship between the geographic entities is stored among field information of each geographic entity, wherein the field information comprises a child entity field and a parent entity field. According to the constructed single geographic entity, the child-parent-level relation between the geographic entities is automatically constructed through an artificial intelligence program, and the relation is stored in field information (a child entity, a parent entity and the like) of the geographic entities.
In some embodiments, the relationship generation model is obtained by:
acquiring basic father-son level relation information; and training the relation generation model through the basic father-son level relation information to obtain the trained relation generation model. As the temporary standards of the sub-parent relations between the geographic entities and the geographic entities are not unified, as shown in FIG. 4, the relations are automatically established by an artificial intelligence program, firstly, the basic sub-parent relations (such as the relation between a house and a stair of the house) are manually established, then the existing sub-parent and parent composition relations between the geographic entities are manually modified, and the modified relationships between the geographic entities are identified and memorized by the artificial intelligence program (such as the relation between an added house and a base house), then, the internal automatic training of the artificial intelligence program is carried out, namely, the relationships between the geographic entities conforming to the modified relations are established, and finally, when the next time the geographic entity program is established in batch, all the relationships between the geographic entities conforming to the modified relations can be established, such as: and automatically building the child-parent-level relation and the like of each house and the homestead, wherein the relationship belongs to an open platform and can be automatically modified by a user. Therefore, the basic parent-child relationship information is stored in the configuration information of each account, and each account is configured with at least one piece of basic parent-child relationship information. Through the configuration, the user can configure the needed geographic entity relationship by self.
After the operations are completed, the method for automatically constructing the geographic entity product data in batches based on the primitive data is realized, the function of constructing the geographic entities in batches is executed, namely the automatic construction in batches of the geographic entities and the automatic construction of the relationship between the child and parent levels among the geographic entities can be completed by one key, and the constructed relationship of the geographic entities is displayed as shown in fig. 6.
Compared with the prior art, the scheme has the following improvements and advantages.
Automatic operation, high efficiency and great labor saving. The scheme can realize the automatic production of the geographic entity, and manual participation is not needed after 'one-key production'. The method has obvious advantages when a large amount of geographic entity data are processed by the batch operation of the geographic entities, and the efficiency of data production is greatly improved.
The integrated production scheme can automatically generate an SME (a data processing ETL tool developed by southern digital technology, Inc., Guangdong) scheme by a program according to the provided graphics primitives and geographic entity database standards without manual modification. After a user optimizes or modifies the graphic primitive and the design standard of the geographic entity database, the batch SME scheme for automatically constructing the single geographic entity can be automatically generated, and the operation is simple, automatic and convenient.
The embodiment discloses a system for automatically constructing geographic entities in batches based on primitive data, which comprises:
the acquisition unit is used for acquiring primitive data to be processed and a construction mode;
the construction unit is used for constructing the geographic entities in batches based on the primitives to be processed according to the construction mode;
and the generating unit is used for generating the relation between the geographic entities through a relation generating model.
The embodiment discloses a system for automatically constructing geographic entities in batches based on primitive data, which comprises:
a memory for storing a program;
and the processor is used for loading a program to execute the method for automatically constructing the geographic entity in batches based on the primitive data.
The present embodiment discloses a computer-readable storage medium storing a program that, when executed, implements a method for automatically building a geographic entity in a batch based on primitive data.
The integrated units described in this application may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is to be noted that the foregoing is only illustrative of the presently preferred embodiments and application of the principles of the present invention. Those skilled in the art will appreciate that the present application is not limited to the particular embodiments described herein, but is capable of many obvious modifications, rearrangements and substitutions without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.