Multi-layer chart merging method and device based on space and attribute multi-condition judgment
Technical Field
The invention relates to a multi-layer chart merging method based on space and attribute multi-condition judgment.
Background
The production of geographic entity data is mostly based on basic mapping topographic map data for the extraction of entity data. The basic mapping result data are stored in a national standard framing form, so that the merging work of the image data is usually needed in the process of producing the geographic entity data.
The merging of the map data comprises the merging of the map layer data and the attribute edge of map boundary area elements, namely merging and unifying the geographic entities with the same classification attribute of adjacent map. The attribute edge of the topographic map element is processed in a manual edge-connecting mode, so that the workload is large, the time cost is high, and meanwhile, due to the fact that precision errors exist in different framing data of the topographic map, position deviation exists in the process of splicing the map of the same geographic entity, the edge-connecting workload is increased, and the time cost is increased dramatically.
Disclosure of Invention
In order to solve the problems, the invention aims to provide an automatic map splicing and geographic element entity attribute edge splicing automatic flow processing method which solves the problem that a great deal of manpower and time cost are consumed in actual work.
The invention provides a multi-layer chart merging method based on space and attribute multi-condition judgment, which comprises the following steps:
merging the layered elements in parallel, and merging the layered data of the same element in a plurality of databases into one layer in parallel;
Generating a framing boundary line element layer, and calculating framing line elements of the generated data area according to the working area and the data standard scale and the national standard scale division rule;
performing parallel execution, traversing and layering the elements after combination, and carrying out edge splicing on the boundary elements of the picture, so as to realize unification of entity logic;
space searching of the map boundary entity elements generates element sets;
Edge entity matching is carried out on the entity elements in the element set;
And executing entity edge processing on the entity elements successfully matched by the entity matching.
Optionally, the spatial search map boundary entity element includes:
traversing the framing boundary line, taking the boundary line as the center, buffering two sides, setting distances, generating a boundary buffer area, and performing space searching and extraction on geographic element entities overlapped with the buffer area in the combined element layers to obtain an element set.
Optionally, the edge entity matching includes attribute matching and space matching;
Edge entity matching is carried out on the entity elements in the element set, wherein the edge entity matching comprises the steps of carrying out attribute matching on the entity elements in the element set, and finding out entities with the same attribute;
And judging whether the found entities with the same attribute belong to the same geographic entity in space through space matching, and if so, matching the entities into the same entity element.
Optionally, when the attributes are matched, the rules are classified according to the eight data categories of positioning foundation, water system, residential land and facilities, traffic, pipelines, boundaries and politics, landforms, vegetation and soil.
Optionally, three types of entities, namely a point entity, a line entity and a plane entity, are matched in space matching.
Optionally, the matching of the dot entities is to judge the dot distance of the two dot elements, wherein the two dot elements with the dot distance smaller than the field distance of 0.5mm on the graph are judged to be the same dot entity, and the actual distance of 0.5mm on the graph is equal to 0.5 x the frame scale denominator mm, and the two dot elements are converted into meters for use;
The matching of the line entities is to judge the endpoint distance of the two line elements near the framing joint, and the two line elements with the distance smaller than the field distance of 0.6mm on the graph are judged to be the same line entity;
The matching of the surface entities is to judge the end point distance of the two surface elements at the south and north sides of the boundary of the same picture, and the two surface elements with the distance of the two end points of the south and north sides being smaller than the field distance of 0.8mm on the picture are judged to be the same surface entity.
Optionally, executing the entity edge processing on the entity element successfully matched by the entity matching includes:
And carrying out graphic edge connection processing on the entity elements successfully matched by the entity to combine the entity elements into a new entity element, and completing edge connection of the entity at the joint of the drawing.
Optionally, the physical edge processing includes a point physical edge, a line physical edge, and a face physical edge.
The invention also provides a multi-layer chart merging device based on space and attribute multi-condition judgment, which comprises a processor and a memory storing program instructions, and is characterized in that the processor is configured to execute the multi-layer chart merging method based on space and attribute multi-condition judgment according to any one of the above when executing the program instructions.
The invention provides a computer-flow automatic processing method for merging a large number of sectional topographic map vector databases into a total library, which aims to solve the problems of large workload and low efficiency of topographic map merging and edge splicing in the production process of basic geographic entity data.
The invention provides a method and a device for automatically splicing pictures and automatically processing physical attribute edge connection of geographic elements, which automatically reads layered data of different elements under a plurality of topographic map databases to merge the data in parallel, and (3) searching geographical entities at the boundary line of the framing map in parallel, performing entity element attribute inspection and space precision error inspection, processing the edges, and combining a large number of framing databases by full-flow automatic parallel processing to form a basic geographical database with complete entity logic.
The automatic framing data merging entity edge splicing method provided by the invention has the efficiency obviously superior to that of the traditional manual framing edge splicing method, and the efficiency is improved by 70% compared with that of the traditional method under 20 framing database merging. The more the framing data is, the higher the complexity of the geographic elements is, the efficiency of the method is increased by multiple than that of the traditional method, and the problems of large manpower and fund and high time cost of the work can be effectively solved.
The above, as well as additional objectives, advantages, and features of the present invention will become apparent to those skilled in the art from the following detailed description of a specific embodiment of the present invention when read in conjunction with the accompanying drawings.
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. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a schematic flow diagram of an automated process for automatically splicing and bordering physical attributes of geographic elements according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of edge joining of physical elements according to an embodiment of the present invention;
FIG. 3 is a diagram of matching entity elements according to an embodiment of the present invention;
FIG. 4 is a schematic illustration of a point entity edge connection in accordance with an embodiment of the present invention;
FIG. 5 is a schematic view of a solid line junction according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a face entity edge process according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the invention, taken in conjunction with the accompanying drawings, is given by way of illustration and not limitation.
The invention provides a computer automatic processing method for splicing split topographic maps and splicing element edges, which realizes the automatic splicing of basic geographic vector databases such as multi-split residential areas, water systems, traffic road networks, vegetation, soil and the like and the automatic edge splicing of the same geographic entity element, quickly combines a plurality of topographic map databases into a topographic map vector database with consistent physical structure and unified element logic, and provides a data base for the production of geographic entities.
As shown in FIG. 1, the invention provides a multi-layer chart merging method based on space and attribute multi-condition judgment, which comprises the following steps S1-S6.
S1, merging the layering elements in parallel, reading layering data of the elements in the databases, and merging the layering data of the same element in the databases into one layer in parallel.
For example, the two 1:1 ten thousand standard frame GDB databases, I49G034010 and I49G034011, are known as I49G034010.GDB and I49G034011.GDB, both of which contain HYDA, RESA, LRDL, LFCA, PIPA, TFCA, AANP hierarchical elements under the library as shown in table 1 below.
Table 1 database element hierarchical schematic table
And (3) carrying out parallel calculation and merging on the same element layered data of the two framing databases and even more framing databases shown in the table to obtain a layer to obtain a merged database Database Union. Gdb, wherein the steps are shown in the following table 2:
TABLE 2 hierarchical representation of elements after merger
S2, reversely calculating and generating the framing border line elements among all the pictures of the data area according to the working area and the data standard scale and the national standard scale division principle to obtain a line element set DATASETLINE. As shown in fig. 2, the panels I49G034010 and I49G034011 are connected, and it can be seen from fig. 2 that the two panels are adjacent to each other, so that the panel boundary line AB at the connection is calculated.
And S3, layering elements after traversing and merging are executed in parallel, and edge splicing of the boundary elements of the graph is carried out according to the following steps S31-S34, so that entity logic is unified. The specific process can be as follows:
s31, traversing the framing border element set DATASETLINE.
S32, space searching of the map border entity elements is carried out, and the edge element set is obtained.
And generating a boundary buffer area by taking the traversed current framing borderline element as the center and setting the buffer distance on two sides, and performing space searching to extract geographic element entities which are overlapped with the buffer area in the combined element layers to obtain a borderline element set DataSetH.
S33, performing edge entity matching on the entity elements in the searched edge element set DataSetH.
In an alternative embodiment of the invention, the bordering entity matches include attribute matches and spatial matches. When the entity elements in the element set are subjected to edge entity matching, the same geographic entity element can be obtained through attribute matching and space matching. The method specifically comprises the steps of carrying out attribute matching on entity elements in element sets to find out entities with the same attribute, judging whether the found entities with the same attribute spatially belong to the same geographic entity through space matching, and matching the entities into the same entity element if the entities belong to the same geographic entity. For example, the bordering element set DataSetH contains a plurality of elements of the jing geographic entity, belonging to two graphs of drawing frames I49G034010 and I49G034011, respectively, and matches the same entity element by an element that can be named "jing" by a river name and a road name, as shown in fig. 3.
S34, executing entity edge processing on the entity elements successfully matched by the entity matching. And (3) carrying out graphic edge splicing processing on the successfully matched entities to combine the successfully matched entities into an entity element, and finishing edge splicing of the entities at the graph and the picture joint.
In an alternative embodiment of the invention, entity attribute matching, namely judging whether elements of the same hierarchical data at the joint of the framing graphs belong to the same entity in terms of attributes, mainly classifying rules according to positioning basis, water system, residential land and facilities, traffic, pipelines, boundaries and government areas, landforms, vegetation and soil eight-big data categories, judging attributes according to rules in a table as shown in an entity attribute matching rule table, and matching element attributes meeting rule requirements through, and carrying out entity space matching.
Table 3 entity attribute matching rule table
In an alternative embodiment of the present invention, entity space matching, that is, whether two identical type elements successfully matched at the joint of the frame images belong to the same entity is determined spatially, and the three types of entity matching mainly include three types of entity matching of point entity, line entity and plane entity, where the three types of matching rules are shown in the entity space matching rule table. The matching of the point entities is to judge the point distance of two point elements, wherein the point distance is smaller than the solid distance of 0.5mm on the graph, the two point elements are judged to be the same point entity, the actual distance of 0.5mm on the graph is equal to 0.5 x the frame scale denominator mm, the two point elements are converted into meters and used, the end point distance of the two line elements near the frame joint is judged to be the same line entity, the two line elements with the distance smaller than the solid distance of 0.6mm on the graph are judged to be the same line entity, the end point distance of the two surface elements at the south and north of the edge at the dividing line of the same graph is judged, and the two surface elements with the end point distances of the south and the north of the edge smaller than the solid distance of 0.8mm on the graph are judged to be the same surface entity.
Table 4 entity space matching rule table
In an alternative embodiment of the invention, executing the entity edge processing on the entity elements successfully matched by the entity matching comprises the step of carrying out the graph edge processing on the entity elements successfully matched by the entity matching to combine the entity elements into a new entity element so as to finish the edge of the entity at the picture joint.
The solid graph edge processing is divided into three types, namely point solid edge, line solid edge and surface solid edge, which are respectively shown in fig. 4-6. The concrete edge bonding treatment method is shown in the following table 5.
Table 5 physical edge processing method induction table
The embodiment of the invention also provides a multi-layer chart merging device based on the space and attribute multi-condition judgment, which comprises a processor and a memory storing program instructions, and is characterized in that the processor is configured to execute the multi-layer chart merging method based on the space and attribute multi-condition judgment in the embodiment when executing the program instructions.
The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above examples, and all technical solutions belonging to the concept of the present invention belong to the protection scope of the present invention. It should be noted that modifications and adaptations to the present invention may occur to one skilled in the art without departing from the principles of the present invention and are intended to be within the scope of the present invention.