Search

CN-122019676-A - Method, system and computer readable storage medium for generating religious chart

CN122019676ACN 122019676 ACN122019676 ACN 122019676ACN-122019676-A

Abstract

A method for generating sea map includes inputting sea unit vector file containing zonghai, method, content, area, classifying sea units of same Zong Hai according to zonghai, sequencing sea units according to priority, sequentially identifying geometry of sea units according to method field to generate boundary point and boundary line text, assigning boundary line text to line field of sea unit update layer, converting coordinate of boundary point to degree-of-second format, assigning to longitude field and latitude field of boundary point layer, merging all sea units of same Zong Hai to obtain Zong Hai geometry and area and assigning area to area field of sea map layer, generating Zong Hai boundary line text according to Zong Hai geometry and assigning to line field of sea map layer, and drawing sea map layer according to boundary point layer, sea unit update layer and sea unit update layer. The invention realizes intelligent generation of the sea chart.

Inventors

  • SUN HONGCHENG
  • ZHAO XIN
  • YUE XIHE
  • HE WEI
  • GU WEIFANG
  • Lin Cunwang
  • FANG YUHUI

Assignees

  • 浙江省海洋科学院

Dates

Publication Date
20260512
Application Date
20251128

Claims (10)

  1. 1. The method for generating the religious chart is characterized by comprising the following steps of: S1, inputting a sea unit vector file and defining a projection coordinate system, wherein the sea unit vector file comprises the following fields of Zong Hai name zonghai, sea mode method, sea content and area; s2, extracting unique values of zonghai fields to classify the sea, processing the sea according to single sea one by one, and sequencing sea using units of the same Zong Hai according to the method fields; S3, sequentially identifying the geometric shapes of the sea units according to the priority order and generating boundary points and boundary line texts, wherein the geometric shapes of the sea units are identified as annular, circular or polygonal; assigning an interface line text to an interface line field of a layer updated with a sea unit, wherein the layer updated with the sea unit further comprises the following fields of Zong Hai name zonghai, sea method, sea content, area; Converting the coordinates of the boundary point from an input projection coordinate system into a geographic coordinate system, converting the decimal longitude and latitude coordinates of the geographic coordinate system into a degree-minute-second format, and assigning values to a longitude longitude field and a latitude latitude field of the boundary point layer, wherein the boundary point layer also comprises the following fields of Zong Hai name zonghai and serial number; S4, merging all sea units of the same Zong Hai to obtain Zong Hai geometric figures and areas thereof, and assigning the areas to an area field of the sea-land map layer, wherein the sea-land map layer further comprises the following fields of Zong Hai name zonghai and Zong Hai boundary line field; Generating Zong Hai boundary line text according to Zong Hai geometric figures, and assigning values to Zong Hai boundary line fields; and S5, drawing the religious chart by using the sea unit updating layer according to the point layer.
  2. 2. The method for generating a religious chart according to claim 1, wherein the method for identifying the ring is: judging whether the geometric shape of the sea unit contains an inner ring or not through NumInteriorRings functions; if NumInteriorRings has a function value greater than 0, the ring is identified as an inner ring; If NumInteriorRings has a function value not greater than 0, continuing to identify whether the round is round.
  3. 3. The method for generating a religion chart according to claim 2, wherein the method for recognizing a circle is as follows: judging whether the following three target conditions are satisfied: (I) The number of the vertexes of the geometric outer ring of the sea unit is more than or equal to 12; (II) a ratio of standard deviation to mean of distances from vertex to geometric centroid <5%; (III) vertex-to-geometric centroid average distance >1e-6 meters; if yes, the polygon is identified as a circle, and if not, the polygon is identified as a polygon.
  4. 4. The method of claim 3, wherein if the geometry of the sea unit is identified as a polygon, the process of generating the boundary point and the boundary line text comprises: Extracting vertexes of the sea unit geometric shapes, reserving preset target bit decimal values for the coordinate values of the vertexes, and performing de-duplication to generate a non-repeated boundary point list; Acquiring an internal point in a polygonal enclosing area, calculating azimuth angles of each boundary point in a boundary point list and the internal point, and finding a boundary point with the smallest angle difference with a left lower corner target angle as a starting boundary point; starting the boundary point from the initial boundary point, sequencing anticlockwise, and assigning number fields to the sequence numbers of the boundary points; and connecting the serial numbers of the boundary points by connecting lines in sequence, and connecting the serial numbers of the starting boundary points at the tail by connecting lines to generate boundary line texts.
  5. 5. The method of claim 4, further comprising, after generating the boundary line text, simplifying the boundary line text: If a sequence number section with the length more than or equal to 4 is continuously added with 1 for increasing or continuously subtracted from 1 for decreasing in the boundary line text, the sequence number part from 3 rd to N-1 is replaced by an ellipsis, wherein N is the length of the sequence number section; the simplified line text is assigned to the line field of the layer updated with the sea unit while the zonghai, method, content, area field value of the original sea unit is reserved and added to the layer updated with the sea unit.
  6. 6. The method of claim 4, wherein if the geometry of the sea unit is identified as circular, the process of generating the boundary point and the boundary line text comprises: the center of mass of a circle is obtained as a circle center, an average value Y of distances from all vertexes of the geometric shape of the sea unit to the circle center is calculated as a radius, and the circle center is recorded as a boundary point; Assigning a number X to the boundary point, and generating boundary line text with a preset target format of the boundary point X (radius=Y meter); Assigning the line text of the boundary to the line field of the sea unit update layer, while preserving the zonghai, method, content, area field value of the original sea unit and adding to the sea unit update layer.
  7. 7. The method of claim 6, wherein if the geometry of the sea unit is identified as a ring, the process of generating the boundary points and boundary line text comprises: extracting an outer ring of the geometric shape of the sea unit, and generating a boundary point and a boundary line text of the outer ring according to the process of generating the boundary point and the boundary line text of the polygon; extracting the inner ring of the geometric shape of the sea unit, judging whether the sea unit is the processed sea unit or not through fuzzy matching of the area SYMDIFFERENCE AREA of a symmetry difference set with the processed sea unit or the Hausdorff distance Hausdorff Distance of a preset distance tolerance, multiplexing boundary line texts if the sea unit is the processed sea unit, and generating boundary point and boundary line texts of the inner ring according to the process of generating the boundary point and the boundary line texts of polygons or circles if the sea unit is the processed sea unit; Merging the boundary line text of the outer ring with the boundary line text of the inner ring to generate a target boundary line text with a preset target format of 'outer ring text + removal + inner ring text'; The target line text is assigned to the line field of the sea unit update layer while the zonghai, method, content, area field value of the original sea unit is reserved and added to the sea unit update layer.
  8. 8. The method of claim 7, wherein in step S4, generating Zong Hai line text from Zong Hai geometric figures comprises: traversing all sea units under the current sea, and judging whether the sea units contain circular or annular sea units or not; if yes, acquiring content fields of all sea units, performing de-duplication, and connecting by connecting symbols after alphabetical ordering to serve as Zong Hai line field values; If not, extracting the vertex of Zong Hai geometric figure, matching the current Zong Hai boundary point according to the distance <0.00005 m, generating a boundary point list by the matched vertex, obtaining an internal point in the enclosed area of Zong Hai geometric figure, calculating the azimuth angle of each boundary point in the boundary point list and the internal point, finding the boundary point with the smallest angle difference with the target angle of the lower left corner as the initial boundary point, sorting the boundary points anticlockwise from the initial boundary point, assigning numbers to the serial numbers, if the boundary point is the assigned number, connecting the serial numbers of the boundary points sequentially by connecting lines, connecting the serial numbers of the initial boundary point by connecting lines at the end, generating boundary line text and assigning the boundary line text to Zong Hai boundary line fields of the sea map layer.
  9. 9. A religious chart generating system, applying the religious chart generating method of claim 1, wherein the generating system includes: The input module is used for inputting a sea unit vector file and defining a projection coordinate system, wherein the sea unit vector file comprises the following fields of Zong Hai name zonghai, sea mode method, sea content and area; the classification module is used for extracting unique values of zonghai fields to classify the sea and the land; The sequencing module is used for processing the sea units one by one according to the single sea, and sequencing the sea units of the same Zong Hai according to the method field; The device comprises an identification module, a processing module and a processing module, wherein the identification module is used for sequentially identifying the geometric shapes of the sea units according to the priority order, wherein the geometric shapes of the sea units are identified as annular, circular or polygonal; The generation module is used for generating an boundary point and a boundary line text; The assigning module is used for assigning the boundary line text to a boundary line field of a layer updated by a sea unit, wherein the layer updated by the sea unit further comprises a Zong Hai name zonghai, a sea mode method, a sea content and an area; The conversion module is used for converting the coordinates of the boundary point from an input projection coordinate system into a geographic coordinate system, converting decimal longitude and latitude coordinates of the geographic coordinate system into a degree-minute-second format, and assigning the degree-minute-second format to a longitude longitude field and a latitude latitude field of the boundary point layer through the assignment module, wherein the boundary point layer also comprises a Zong Hai name zonghai and a serial number; The merging module is used for merging all sea units of the same Zong Hai to obtain Zong Hai geometric figures and areas thereof, and assigning the areas to an area field of the religious chart layer through the assignment module, wherein the religious chart layer further comprises the following fields of Zong Hai names zonghai and Zong Hai boundary line fields; The generation module is also used for generating Zong Hai boundary line text according to Zong Hai geometric figures, and assigning the text to the Zong Hai boundary line field through the assignment module; And the drawing module is used for drawing the sea-sea diagram according to the boundary point diagram layer, the sea-sea diagram layer and the sea unit updating diagram layer.
  10. 10. A computer readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the method of generating a religious chart according to any one of claims 1-8.

Description

Method, system and computer readable storage medium for generating religious chart Technical Field The invention belongs to the technical field of application of geographic information systems, and particularly relates to a method and a system for generating a religious chart and a computer readable storage medium. Background Zong Hai is used as a basic space unit for sea area use management, and the accurate definition and standardized record of the boundary points and boundary lines are the core basis for sea area right determination, area accounting and rights management. According to Zong Haitu, the Zong Hai boundary points are the inflection points that define Zong Hai and its internal cell range and boundaries, and the boundary line is the line of the boundary points that are connected in sequence. At Zong Haina, sea areas with the same sea style but non-connected areas are divided into different sea areas, wherein the outermost boundary line of the sea areas is the area of the sea. The Zong Hai boundary points are marked from the left lower corner of each sea unit in principle, the boundary point numbers are uniformly Arabic numerals and are continuously and clockwise woven from 1, the boundary point numbers of different sea inner units are sequentially arranged according to the second class order of sea area using mode (HY/T123), and the boundary points of the sea inner units are sequentially and linearly connected according to the anticlockwise direction to form a closed boundary line. For the internal units with more boundary points, the continuous numbering part can adopt a mode of omitting the middle for writing conveniently. The method for generating and sorting Zong Hai boundary points and generating a boundary line of a pectoral sea internal unit and Zong Hai boundary points has less research, the existing method is more similar to a method for identifying and optimizing the sequence of the pectoral boundary points based on Arcpy and a method for automatically extracting boundary points and generating boundary point numbers by using natural resource validation, and the main method is used for generating the pectoral boundary points and boundary points. Unlike land, zong Hai typically contains internal units in a different sea style, and it is more cumbersome to identify the line of Zong Hai as a whole, in addition to the line of the internal unit. Furthermore, the prior art is mainly oriented to Liu Dezong land or universal natural resource right-determining scenes, land boundary points are ordered from the upper left corner clockwise, and Zong Hai boundary points are ordered from the lower left corner anticlockwise, so that the number sequence difference between the land boundary points is obvious, the existing land boundary processing technology is difficult to directly migrate to Zong Hai scenes, and meanwhile, zong Hai exclusive specification requirements such as Zong Hai sea mode priority, special geometric processing, boundary line text simplification, sea and internal unit data linkage and the like are not considered in the prior art, and the specialized processing requirements of sea units cannot be adapted. Specifically, the prior art cannot meet the specialized requirements of marine unit treatment due to the difference between application scenes (Liu Dezong land/universal natural resources) and Zong Hai specification requirements, and the specific defects are as follows: (1) Land and Zong Hai boundary points are ordered in different orders; the land addresses are ordered from the upper left corner clockwise, and the Zong Hai addresses are ordered from the lower left corner counterclockwise, so that the numbering order is different and the universal use is difficult. (2) Processing the missing by using the sea mode priority, and not conforming to Zong Hai specifications; according to Zong Haitu's technical specification for painting, zong Hai's different sea units are arranged according to the order of the second class in the 'sea area usage (HY/T123'), and the boundary points of the high-priority units need to be numbered with priority, so that the boundary points of the high-priority units are prevented from being numbered repeatedly with the low-priority units. However, the existing land area point technology is only ordered according to space positions, and does not consider sea mode priority, so that the generated point numbers are in conflict with Zong Hai specifications. (3) The special geometric shape has insufficient processing capability and poor adaptability; zong Hai sea units often comprise special shapes such as rings (e.g., ring units made up of man-made island revetments or internal waters), circles (e.g., fans), etc.: for an annular unit, the prior art cannot distinguish an outer ring from an inner ring, and an inner ring vertex is easily misjudged as an outer ring boundary point, so that the boundary line contour is wrong; for a circular unit, the circular characte