CN110751896A - Method and device for drawing contour line notes on mine contour line related thematic map - Google Patents

Method and device for drawing contour line notes on mine contour line related thematic map Download PDF

Info

Publication number
CN110751896A
CN110751896A CN201910980061.1A CN201910980061A CN110751896A CN 110751896 A CN110751896 A CN 110751896A CN 201910980061 A CN201910980061 A CN 201910980061A CN 110751896 A CN110751896 A CN 110751896A
Authority
CN
China
Prior art keywords
contour line
annotation
contour
point
points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910980061.1A
Other languages
Chinese (zh)
Inventor
王艳彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Long Soft Technology Co Ltd
Original Assignee
Beijing Long Soft Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Long Soft Technology Co Ltd filed Critical Beijing Long Soft Technology Co Ltd
Priority to CN201910980061.1A priority Critical patent/CN110751896A/en
Publication of CN110751896A publication Critical patent/CN110751896A/en
Priority to CN202010378787.0A priority patent/CN111402703B/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/003Maps
    • G09B29/006Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes
    • G09B29/007Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes using computer methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Ecology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a method and a device for drawing a contour line note on a thematic map related to a mine contour line, wherein the method comprises the following steps: presetting user setting information; calculating the position coordinates of the mark points on the contour line at equal intervals along the advancing direction of the contour line; calculating a first angle of the mark point on the contour line according to the composition point; creating a contour line annotation layer, and drawing a contour line annotation under the layer according to the user setting information, the position coordinate and the first angle; establishing a mapping relation between the contour line and the contour line mark and user set information; and storing the mapping relation into a fixed address hidden file of the hard disk in a binary format. The method has clear logic, easy realization, flexible arrangement and beautiful result, can greatly improve the drawing efficiency of the thematic map related to the mine contour line, meets the requirement of the diversity of the equivalent notes, and improves the daily production efficiency of the mine.

Description

Method and device for drawing contour line notes on mine contour line related thematic map
Technical Field
The invention relates to the technical field of mine computer drawing, in particular to a method and a device for drawing contour line notes on a thematic map related to a mine contour line.
Background
A contour plot is a pattern representing a continuously distributed and gradually changing number of features as a line of equal-valued points. Contour line-related thematic maps are frequently used important map elements in daily production of mines, such as: a coal seam floor contour map, a coal seam contour map, an ash contour map, a sulfur contour map, a gas content contour map, an isobaric line map, a aquifer thickness contour map and the like.
With the advent of the digital map era, contours on conventional paper maps were gradually replaced by contours in a digitized form. The automatic annotation of the digital map is an important component of the current map making automation, and the drawing of the contour line annotation is very complex work and needs to consider correctness, attractiveness and the like.
At present, isoline marks in mines need to meet diversified requirements, such as marking modes, marking positions, decimal numbers, font colors, font heights and the like, and drawing personnel manually draw the isoline marks cannot meet the daily production efficiency of the mines. And because the daily production activities of the mine are frequent, various thematic maps related to the contour lines can be frequently modified, and the corresponding contour line and the contour line notes need frequent adjustment, which inevitably causes the work of drawing personnel to be heavier and the efficiency to be lower.
Disclosure of Invention
Aiming at the problems, the invention provides a method and a device for drawing the contour line notes on the mine contour line related thematic map, which meet the diversity requirements of the contour line note patterns of different contour line related thematic maps in daily production of mines and solve the problem that the notes on the contour lines and the contour lines can not be displayed in a linkage manner.
In order to achieve the above object, a first aspect of the present invention discloses a method for drawing a contour mark on a thematic map related to a mine contour, including:
presetting user setting information;
calculating the position coordinates of the mark points on the contour line at equal intervals along the advancing direction of the contour line;
calculating a first angle of the mark point on the contour line according to the composition point;
creating a contour line annotation layer, and drawing a contour line annotation under the layer according to the user setting information, the position coordinate and the first angle;
establishing a mapping relation between the contour line and the contour line mark and the user setting information; and storing the mapping relation into a fixed address hidden file of the hard disk in a binary format.
Preferably, the step of calculating the position coordinates of the marker points on the contour line at equal intervals in the advancing direction of the contour line includes:
setting the accumulated distance value d between the mark point and the first composition point on the contour linenWherein d isnN is a positive integer, d is a fixed spacing of the annotation points on the contour line searched from the user setting information;
accumulating the distance values of adjacent composition points from the first composition point on the contour line to obtain an accumulated value L;
when the accumulated value L is larger than the accumulated value dnDetermining the coordinates of two adjacent composition points before and after the position of the annotation point, and recording the accumulated value l from the first composition point to the first composition point in the two composition points;
according to the coordinates of the two composition points and the accumulated value dnAnd calculating the accumulated value l to obtain the position coordinates of the mark point.
Preferably, the step of calculating a first angle of the annotation point on the contour line from the component points comprises:
calculating according to the coordinates of the two adjacent constituent points and the advancing direction of the contour line to obtain the vector of the mark point;
if the included angle between the vector and the positive horizontal direction is not between-90 degrees and 90 degrees, adjusting the vector to be between-90 degrees and 90 degrees, and calculating the included angle between the adjusted vector and the positive horizontal direction to display the note in the positive direction according to the included angle; wherein the included angle is a first angle of the note point.
Preferably, after the step of establishing the mapping relationship between the contour line and the contour line note and the user setting information, the method further includes:
when the position of a certain contour line in the contour line related thematic map is detected to be changed, all the contour line marks on the contour line are adjusted in a linkage mode.
In a second aspect, to achieve the above object, an embodiment of the present invention discloses a method for drawing a contour note on a thematic map related to a mine contour, including:
presetting annotation style setting information on the contour line;
acquiring the position coordinates of the mark points on the contour line in a column selection mode;
calculating a first angle of the mark point on the contour line according to the composition point;
and creating a contour marking layer, and drawing a contour marking according to the marking style setting information, the position coordinate and the first angle under the layer.
Preferably, the method for obtaining the position coordinates of the mark point on the contour line by a column selection method includes:
detecting whether a user draws a straight line on the contour line related thematic map or not;
if so, calculating the coordinates of the intersection points of the straight line and each contour line to obtain the position coordinates of the mark points on the contour lines.
Preferably, the step of calculating a first angle of the annotation point on the contour line from the component points comprises:
obtaining a vector of the annotation point according to the coordinates of the composition points adjacent to the annotation point and the forward direction of the contour line;
if the included angle between the vector and the positive horizontal direction is not between-90 degrees and 90 degrees, adjusting the vector to be between-90 degrees and 90 degrees, and calculating the included angle between the adjusted vector and the positive horizontal direction to display the note in the positive direction according to the included angle; wherein the included angle is a first angle of the note point.
In order to achieve the above object, an embodiment of the present invention discloses a device for drawing a contour mark on a thematic map related to a mine contour, including:
the contour line annotation setting module is used for presetting user setting information;
the contour line annotation selection module is used for calculating position coordinates of annotation points on the contour line at equal intervals along the advancing direction of the contour line and calculating a first angle of the annotation points on the contour line according to the composition points;
the contour line annotation drawing module is used for creating a contour line annotation layer, drawing a contour line annotation under the layer according to the user setting information, the position coordinate and the first angle, and establishing a mapping relation between a contour line and the contour line annotation and the user setting information; and storing the mapping relation into a fixed address hidden file of the hard disk in a binary format.
Preferably, the contour annotation selection module includes:
a note point distance accumulation submodule, configured to set a distance accumulation value dn between a note point on the contour line and a first constituent point, where dn is n × d, n is a positive integer, and d is a fixed distance value of the note point on the contour line searched from the user setting information;
the component point distance accumulation submodule is used for accumulating the distance values of adjacent component points from the first component point on the contour line to obtain an accumulated value L;
a marking point position determining submodule, configured to determine coordinates of two component points adjacent to the marking point before and after the position of the marking point when the accumulated value L is greater than the accumulated value dn, and record an accumulated value L from a component point accumulated first to the first component point in the two component points;
and the annotation point position coordinate calculation submodule is used for calculating according to the coordinates of the two constituent points, the accumulated value dn and the accumulated value l to obtain the position coordinate of the annotation point.
Preferably, the contour annotation selection module includes:
the annotation point vector determination submodule is used for calculating according to the coordinates of the two adjacent component points and the forward direction of the isoline to obtain the vector of the annotation point;
the first angle adjusting submodule is used for adjusting the vector to be between 90 degrees and 90 degrees if the included angle between the vector and the positive horizontal direction is not between 90 degrees and 90 degrees, calculating the included angle between the adjusted vector and the positive horizontal direction and enabling the note to be displayed in the positive direction according to the included angle; wherein the included angle is a first angle of the note point.
Preferably, the apparatus further comprises:
and the contour line annotation linkage module is used for linkage adjustment of all contour line annotations on the contour line when the position of a certain contour line in the contour line related thematic map is detected to be changed.
In a fourth aspect, to achieve the above object, an embodiment of the present invention discloses a device for drawing a contour mark on a thematic map related to a mine contour, including:
the contour line annotation setting module is used for presetting annotation pattern setting information on the contour line;
the contour line annotation selection module is used for acquiring the position coordinates of annotation points on the contour line in a column selection mode and calculating a first angle of the annotation points on the contour line according to the composition points;
and the contour mark drawing module is used for creating a contour mark layer and drawing a contour mark according to the mark style setting information, the position coordinate and the first angle under the layer.
Preferably, the contour annotation selection module includes:
the straight line detection submodule is used for detecting whether a user draws a straight line on the corresponding thematic map of the contour line;
and the marking point coordinate determination submodule is used for calculating the coordinates of the intersection points of the straight line and each contour line if the coordinates of the marking points on the contour lines are positive, so as to obtain the position coordinates of the marking points on the contour lines.
Preferably, the contour annotation selection module further includes:
the marking point vector determination submodule is used for obtaining the vector of the marking point according to the coordinate of the composition point adjacent to the marking point and the forward direction of the isoline;
the first angle adjusting submodule is used for adjusting the vector to be between 90 degrees and 90 degrees if the included angle between the vector and the positive horizontal direction is not between 90 degrees and 90 degrees, calculating the included angle between the adjusted vector and the positive horizontal direction and enabling the note to be displayed in the positive direction according to the included angle; wherein the included angle is a first angle of the note point.
The embodiment of the invention has the following beneficial effects:
according to the method, the requirement of diversity of the user can be met by presetting the user setting information, and isoline annotation graphs of different styles can be drawn for related thematic maps; the position coordinates of the mark points on the contour line are calculated at equal intervals along the advancing direction of the contour line, and the system can efficiently and beautifully draw the contour line marks according to the position coordinates of the mark points in the relevant thematic map; calculating a first angle of the annotation point on the contour line according to the composition point, so that the annotation of the contour line can be always displayed in the forward direction, and the user can conveniently check the annotation; by creating a contour annotation layer and drawing a contour annotation under the layer according to the user setting information, the position coordinate and the first angle, the annotation is displayed at a corresponding position in the related thematic map, so that a user can conveniently browse the whole map to know related information; by establishing the mapping relation between the contour line and the contour line notes on the contour line and the information set by the user, all the contour line notes on the contour line can be adjusted in a linkage manner, the labor is saved, the re-drawing of the contour line notes in the related thematic map is avoided, and the drawing efficiency of the related thematic map of the mine contour line is greatly improved. In addition, the method has clear logic of implementation steps, is easy to implement, flexible to set and attractive in result, and can greatly improve the daily production efficiency of the mine.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart of a method for drawing contour mark on a thematic map related to a mine contour according to the invention;
FIG. 2 is a diagram of a contour marking effect according to an embodiment of the present invention;
FIG. 3 is a diagram of a second contour marking effect according to an embodiment of the present invention;
FIG. 4 is a diagram of a contour marking effect of the embodiment of the present invention;
FIG. 5 is a diagram illustrating an effect of contour marking by a column selection method according to an embodiment of the present invention;
FIG. 6 is a flow chart of a step of drawing contour mark on a thematic map related to a mine contour according to the invention;
FIG. 7 is a flow chart of a method for drawing contour mark on a thematic map related to a mine contour according to the invention;
FIG. 8 is a structural diagram of a device for drawing contour mark on a thematic map related to a mine contour according to the present invention;
fig. 9 is a structural diagram of a device for drawing contour mark on a mine contour related thematic map provided by the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Referring to fig. 1, a flow chart of a method for drawing contour line notes on a mine contour line related thematic map is shown. The method specifically comprises the following steps:
step 101: presetting user setting information;
the user setting information comprises the marking style setting information on the contour line and the fixed distance value of the marking points on the contour line. After a user selects and sets the setting information of the mark style on the contour line and the fixed distance value of the mark point on the contour line in the contour line mark style information base, the system stores the setting information in a binary format in a fixed address hidden file of a hard disk for a long time.
When a user successfully sets annotation style setting information on the contour line for the first time and draws the contour line annotation with the same style again, the user can directly call the annotation style setting information stored in the hard disk fixed address hidden file without resetting the annotation style setting information; when drawing the contour mark of different styles, the user only needs to call the mark style setting information stored in the hard disk fixed address hidden file and simply fine-tune on the basis of the information. Meanwhile, in the embodiment, the annotation style setting information modified by the user each time is stored in the hard disk fixed address hidden file in a covering manner, and is stored for a long time.
Further, the above-mentioned contour annotation pattern setting information is a setting parameter for the contour annotation, and the parameter includes: display position, decimal number, font height, font type, and font color.
The display position of the contour mark is arranged in an upper, middle and lower selectable mode relative to the corresponding contour position, namely the display position of the contour mark is arranged in an upper, middle and lower position relative to the corresponding contour. Referring to FIG. 2, the display positions of the markers with values 910, 915, 920, 925, 930 in the graph are above the corresponding contour lines; referring to FIG. 3, the display positions of the markers with values 910, 915, 920, 925, 930 in the graph are located in the middle of the corresponding contour; referring to fig. 4, the display positions of the markers having values 910, 915, 920, 925, 930 in the graph are located below the corresponding contours. The effect of setting other different annotation parameters is shown with reference to fig. 2-4.
Step 102: calculating the position coordinates of the mark points on the contour line at equal intervals along the advancing direction of the contour line;
in the present embodiment, the contour line is constituted by a plurality of continuous constituent points. The direction in which the contour line advances refers to the path direction of the system construction constituent points. The system will automatically identify the coordinates of each constituent point. One note point on the contour line corresponds to one note. In addition, the distance value in the present embodiment refers to a path value in the advancing direction of the contour.
Wherein, the position coordinate calculation step of the mark point comprises the following steps:
first, a distance accumulated value d of a mark point and a first component point on the contour line is setnWherein d isnN is a positive integer, i.e. n is 1,2,3 …, d is looked up from the user setting informationThe fixed spacing of the points noted on the contour; here, n represents the nth mark point, dnIndicating the accumulated value of the distance from the nth mark point to the first constituent point.
Then, accumulating the distance values of adjacent composition points from the first composition point on the contour line to obtain an accumulated value L; wherein the accumulated value L > 0;
when the accumulated value L is larger than the accumulated value dnDetermining the coordinates of two adjacent composition points before and after the position of the annotation point, and recording the accumulated value l from the first composition point to the first composition point in the two composition points; wherein the accumulated value l>0;
Finally, according to the coordinates of the two composition points and the accumulated value dnAnd calculating the accumulated value l to obtain the position coordinates of the mark point.
In order to describe the coordinate calculation step of the annotation point more clearly, the present embodiment takes the first annotation point as an example to determine the position coordinate of the annotation point, which is specifically as follows:
and taking the advancing direction of the contour line as the starting accumulation direction. Setting the fixed distance between the mark points on the contour line as d (where the fixed distance value d is found in the user setting information and is equal to the value d from the first component point to the first mark point1). Firstly, sequentially accumulating the distances between two adjacent points on the contour line from a first composition point on the contour line to obtain an accumulated distance L, and detecting L and d in real time1The magnitude relationship of (1); when the Nth component point is accumulated, the accumulated distance L is detected in real timeN>d1Then a distance value L representing the distance from the first component point to the (N-1) th component point is recordedN-1And automatically identifying respective coordinates of an N-1 th component point and an Nth component point on the contour line according to the system, calculating and recording a straight-line distance value D between the two component points by applying a formula for calculating the distance between the coordinates of the two component points, and finally preliminarily determining the position of the first mark point between the N-1 th component point and the Nth component point on the contour line.
Then, the distance value d from the N-1 st component point to the first mark point is calculated1-LN-1Ratio (D) to the above-mentioned distance value D1-LN-1)/D。
Finally, the system calculates the ratio (d) based on the respective coordinate values of the (N-1) th component point and the (N) th component point1-LN-1) and/D, obtaining the position coordinates of the first marking point.
The above embodiment has just described the process of obtaining the position coordinates of the first noted point, and the position coordinates of the other noted points can be obtained in the same manner, and will not be described in a repeated manner.
Step 103: calculating a first angle of the mark point on the contour line according to the composition point;
the first angle is used to draw the contour annotation along the contour relief. Referring to fig. 2-4, the first angle of each note is shown, for example, in fig. 4, a rectangular bounding box is virtually constructed outside the value 910, and the angle between the lower side of the value 910 and the positive horizontal direction is the first angle corresponding to the value 910. For another example, in fig. 4, as the markers with the value of 910 are fluctuated with the contour lines, the first angles of the markers in the contour lines are different.
Calculating according to the coordinates of the two adjacent constituent points and the advancing direction of the contour line to obtain the vector of the annotation point; if the included angle between the vector and the positive horizontal direction is not between-90 degrees and 90 degrees, adjusting the vector to be between-90 degrees and 90 degrees, and calculating the included angle between the adjusted vector and the positive horizontal direction to display the note in the positive direction according to the included angle; wherein the included angle is a first angle of the note point. The specific description is as follows:
based on the coordinates of the (N-1) th component point and the coordinates of the (N) th component point in step 102, a direction vector is calculated in which the (N-1) th component point points to the (N) th component point, which may not be at an angle between-90 ° and 90 ° to the positive horizontal direction, so that the system automatically adjusts, i.e. rotates 180 °, the direction vector which is not at an angle between-90 ° and 90 °. And finally, calculating an included angle between the adjusted direction vector and the horizontal positive direction, wherein the included angle is the first angle of the marking point between the N-1 th component point and the N-th component point.
In the embodiment, the system automatically adjusts the first angle between-90 degrees and 90 degrees, so that the contour mark is displayed in the forward direction, and the user can conveniently check the contour mark.
Step 104: creating a contour line annotation layer, and drawing a contour line annotation under the layer according to the user setting information, the position coordinate and the first angle;
the system creates a contour marking map layer, and draws the contour marking on the relevant thematic map according to the position coordinates of the marking points on the contour and the first angles of the marking points obtained by calculation and according to the user setting information. Specifically, the method comprises the following steps:
the system determines the position of the annotation on the contour line according to the position coordinate of the annotation point, and determines the display direction of the annotation font on the contour line according to the first angle of the annotation point; and determining the display position, decimal digit, font height, font type and font color of the annotation according to the on-line annotation style setting information in the user setting information. Finally, the notes meeting the diversified requirements of the user are drawn on the related thematic map, so that the user can watch the notes conveniently.
Step 105: and establishing a mapping relation among the contour line, the contour line mark and the user setting information.
A Globally Unique Identifier (GUID) is a numeric Identifier of 128 bits in binary length generated by an algorithm.
The mapping relation is stored in a fixed address hidden file of the hard disk in a binary format in a key value pair mode. Specifically, the method comprises the following steps:
the KEY KEY is a GUID representing each isoline, the value KEY is a GUID representing each note on the corresponding isoline, note style setting information on the isoline preset by a user and a fixed distance value of the isoline note points, and the mapping relation coefficient data are stored in a hard disk fixed address hidden file in a binary format. When detecting that the user adjusts the position of a certain contour line in the contour line related thematic map, all the contour line notes on the contour line are adjusted in a linkage manner. Meanwhile, in the embodiment, the mapping relationship established by drawing the isoline annotation every time is additionally recorded in the hard disk fixed address hidden file and is stored for a long time.
In practical application, when a user selects a certain contour line by using a mouse, the equivalent line is equivalent to the GUID corresponding to the contour line, after the user drags the contour line to deform the contour line, the system firstly finds all corresponding marked GUIDs in a hard disk fixed address hidden file according to the GUIDs corresponding to the contour line, mark style setting information on the contour line and fixed distance values of mark points of the contour line, and deletes all the marked GUIDs; after a user releases a mouse and stops dragging the isoline, the system automatically redraws all notes on the isoline according to the note style setting information on the isoline and the fixed spacing values of the isoline note points stored by the value keys corresponding to the isoline GUID, and automatically establishes the mapping relation between the GUID of the isoline and the GUID of the isoline note, the note style setting information on the isoline corresponding to the isoline GUID and the fixed spacing values of the isoline note points; the GUID of each contour line has corresponding contour line marking style setting information on the current contour line, and the contour line style setting information and the fixed spacing values of marking points corresponding to all contour lines in the same relevant thematic map are the same.
And reconstructing a mapping relation: specifically, the system searches for the fixed distance between the annotation points in the value key corresponding to the deformed contour GUID stored in the hard disk fixed address hidden file, and calculates the position coordinates of each annotation point on the contour according to the method for calculating the position coordinates of the annotation points in the step 102;
then, calculating a first angle of each corresponding mark point on the equivalence line according to the coordinates of adjacent composition points of each mark point;
and finally, calling the annotation style setting information corresponding to the equivalent line GUID in the value key, combining the position coordinates of each annotation point and the first angle of each annotation point, redrawing the equivalent line annotation on the modified-shape equivalent line and displaying the equivalent line annotation to a user, establishing a mapping relation between the equivalent line and the equivalent line annotation and the current user setting information for the modified-shape equivalent line, and storing the mapping relation into a hard disk fixed address hidden file.
The above-described processes of recalculating the position coordinates of the marker points on the contour, recalculating the first angles of the marker points on the contour, redrawing the contour markers, and reestablishing the mapping relationship of the contour and the contour markers and the marker pattern setting information on the contour are the same as those in the above-described embodiment, and will not be described again here.
The style information of the marks redrawn on the deformed contour line in the linkage mode is consistent with the style information before deformation, the efficiency of redrawing the contour line marks in the related thematic map is improved, the workload of a user is reduced, and the labor cost is saved.
Referring to fig. 6, a flow chart of the steps of drawing the contour mark of the thematic map related to the mine contour line is shown. The method comprises the following specific steps:
step 201, presetting annotation style setting information on the contour line;
and the user selects the marking point-like setting information stored in the contour line marking style information base in the hard disk fixed address hidden file to be used for setting the user setting information, and the marking point-like setting information is stored in the hard disk fixed address hidden file. Wherein, the mark-printing type setting information comprises the display position, decimal digit, font height, font type and font color of the isoline mark.
Step 202, setting a fixed interval of the mark points on the contour line;
after a user sets a distance value between two adjacent mark points on the contour line, the system stores the value in a hard disk fixed address hidden file.
Step 203, determining the position coordinates of the mark points;
accumulating the distance values of the adjacent component points along the advancing direction of the contour line from the first component point on the contour line, and the relationship between the value and the fixed distance between the mark points on the contour line in step 202 is detected in real time, and if the distance from the nth component point to the first component point is greater than the fixed distance between the mark points, the position of the first marker point on the contour is determined to be between the nth-1 component point and the nth component point, and finally, calculating and recording the distance between the N-1 th component point and the Nth component point according to the coordinates of the N-1 th component point and the Nth component point, the fixed distance between the annotation points on the contour line, the distance value from the first component point to the N-1 th component point and the distance value from the N-1 th component point to the Nth component point. Meanwhile, the position coordinates of other mark points on the contour line are calculated according to the method for calculating the position coordinate of the first mark point.
Step 204, calculating a first angle of the note point;
calculating the vectors of the N-1 component point and the Nth component point according to the coordinates of the two component points in the step 203 along the advancing direction of the contour line, calculating the included angle between the vector and the positive horizontal direction, wherein the included angle is the first angle of the first annotation point on the contour line, and calculating the first angles of other annotation points by the same method; after the system calculates each vector, the system detects whether the vector is between-90 degrees and 90 degrees in real time, if not, the vector is adjusted by 180 degrees, and then the included angle between the adjusted vector and the positive horizontal direction is calculated, namely the first angle of the marking point. The adjusting method enables the font on the note point to be displayed in a forward direction, and is convenient for a user to check.
Step 205, drawing a contour line note;
the system firstly creates a contour marking layer, and draws contour marks in the created contour marking layer according to the marking pattern setting information, the position coordinates of the marking points and the first angle on the contour.
Step 206, a mapping relationship between the contour line and the contour line mark is established.
Each contour line corresponds to a GUID. The system takes the GUID of the contour line as a KEY KEY, takes the GUID of each note on the contour line, the note style setting information on the contour line and the fixed distance of the note points on the contour line as value KEYs, constructs a KEY-value pair by the KEY KEY and the value KEYs, and stores the KEY-value pair in the fixed address hidden file of the hard disk.
And step 207, adjusting the contour line mark in a linkage manner.
If the system detects that the user changes the shape of a certain contour line in the contour line related thematic map, the system deletes the GUID marked on the contour line in the mapping relation corresponding to the step 206, finds the fixed interval of the marked points of the value key corresponding to the contour line GUID and the marked style setting information on the contour line in the hard disk fixed address hidden file, and jumps to the step 203 to redraw all marks of the contour line with the changed shape.
Referring to fig. 7, a flow chart of a method for drawing contour mark on a mine contour related thematic map provided by the invention is shown. The method specifically comprises the following steps:
step 301, presetting annotation style setting information on the contour line;
the system sets the setting information of the contour line annotation pattern according to the annotation pattern selected by the user in the contour line annotation pattern information base, and stores the information in the hard disk fixed address hidden file in a binary format for a long time. Meanwhile, when a user draws a new contour line-related thematic map, the annotation style setting information on the contour line can be directly called and can be finely adjusted, and the finely adjusted annotation style setting information is stored in the file in a covering mode.
Step 302, acquiring the position coordinates of the mark points on the contour line in a column selection mode;
in practical application, the determining the position of the annotation point on the contour line further comprises acquiring the position of the annotation point on the contour line in a column selection mode:
when a user draws a straight line on the contour line related thematic map, a trigger system detects whether the user draws a line segment on the contour line related thematic map, and the straight line at least has an intersection point with one contour line;
if so, the system calculates the coordinates of the intersection point of the straight line and each contour line, namely the position coordinates of the marked points on each contour line. The contours drawn by column selection mark the effect of points, see fig. 5.
Step 303, calculating a first angle of the mark point on the contour line according to the composition point;
obtaining a vector of the annotation point according to the coordinates of the composition points adjacent to the annotation point and the forward direction of the contour line; if the included angle between the vector and the positive horizontal direction is not between-90 degrees and 90 degrees, adjusting the vector to be between-90 degrees and 90 degrees, and calculating the included angle between the adjusted vector and the positive horizontal direction to display the note in the positive direction according to the included angle; wherein the included angle is a first angle of the note point.
In practical application, firstly, the coordinates of the adjacent component points on the contour line are determined according to the positions of the injection points in step 302; then, determining the vector of the marking point according to the coordinates of the two constituent points and the advancing direction of the equivalence line; then, the system judges whether the included angle between the vector and the positive horizontal direction is between-90 degrees and 90 degrees in real time; finally, if not, the vector is rotated by 180 °. The included angle between the rotated vector and the positive horizontal direction is the first included angle of the note point, so that the corresponding note is displayed in the positive direction, and the user can check the note conveniently.
And 304, creating a contour marking layer, and drawing a contour marking according to the marking pattern setting information, the position coordinates and the first angle under the layer.
The system draws the contour mark on the corresponding contour according to the position coordinate of each contour mark point, mark style setting information and the first angle of each mark point.
The embodiment can achieve the following beneficial effects:
according to the method, the requirement of diversity of the user can be met by presetting the user setting information, and isoline annotation graphs of different styles can be drawn for related thematic maps; the position coordinates of the mark points on the contour line are calculated at equal intervals along the advancing direction of the contour line, and the system can efficiently and beautifully draw the contour line marks according to the position coordinates of the mark points in the relevant thematic map; calculating a first angle of the annotation point on the contour line according to the composition point, so that the annotation of the contour line can be always displayed in the forward direction, and the user can conveniently check the annotation; by creating a contour annotation layer and drawing a contour annotation under the layer according to the user setting information, the position coordinate and the first angle, the annotation is displayed at a corresponding position in the related thematic map, so that a user can conveniently browse the whole map to know related information; by establishing the mapping relation between the contour line and the contour line notes on the contour line and the information set by the user, all the contour line notes on the contour line can be adjusted in a linkage manner, the labor is saved, the re-drawing of the contour line notes in the related thematic map is avoided, and the drawing efficiency of the related thematic map of the mine contour line is greatly improved. In addition, the method has clear logic of implementation steps, is easy to implement, flexible to set and attractive in result, and can greatly improve the daily production efficiency of the mine.
Corresponding to the method provided by the embodiment of the present invention, referring to fig. 8, a structural diagram of a device for drawing a contour line note on a topic map related to a mine contour line according to the present invention is shown, and the device specifically includes the following modules:
and the contour line annotation setting module 401 is used for presetting user setting information.
The contour annotation selection module 402 is configured to calculate position coordinates of annotation points on the contour at equal intervals along the advancing direction of the contour, and calculate a first angle of the annotation points on the contour according to the composition points.
Preferably, the contour annotation selection module 402 includes the following sub-modules:
a note point distance accumulation sub-module 4021, configured to set an accumulated distance value dn between a note point on the contour line and a first constituent point, where dn is n × d, n is a positive integer, and d is a fixed distance value of the note point on the contour line found from the user setting information.
The component point distance accumulation sub-module 4022 is configured to accumulate distance values of adjacent component points from a first component point on the contour line to obtain an accumulated value L.
The annotation point position determining sub-module 4023 is configured to determine coordinates of two adjacent component points before and after the position of the annotation point when the accumulated value L is greater than the accumulated value dn, and record an accumulated value L from a first component point to a first component point of the two component points.
And the annotation point position coordinate calculation submodule 4024 is configured to calculate according to the coordinates of the two component points, the accumulated value dn, and the accumulated value l to obtain the position coordinate of the annotation point.
And the annotation point vector determination submodule 4025 is configured to perform calculation according to the coordinates of the two adjacent component points and the forward direction of the isoline to obtain a vector of the annotation point.
The first angle adjusting submodule 4026 is configured to adjust the vector to between-90 ° and 90 ° if the included angle between the vector and the positive horizontal direction is not between-90 ° and 90 °, and calculate the included angle between the adjusted vector and the positive horizontal direction, so that the note is displayed in the positive direction according to the included angle; wherein the included angle is a first angle of the note point.
The contour annotation drawing module 403 is configured to create a contour annotation layer, draw a contour annotation on the layer according to the user setting information, the position coordinate, and the first angle, and establish a mapping relationship between a contour and the contour annotation and the user setting information; and storing the mapping relation into a fixed address hidden file of the hard disk in a binary format.
And the contour mark linkage module 404 is used for linkage adjustment of all contour marks on the contour lines when the position of a certain contour line in the contour line related thematic map is detected to be changed.
Corresponding to the method provided by the embodiment of the present invention, referring to fig. 9, a structural diagram of a device for drawing a contour line note on a topic map related to a mine contour line according to the present invention is shown, and the device specifically includes the following modules:
and the contour line annotation setting module 401 is configured to preset annotation style setting information on the contour line.
The contour annotation selection module 402 is configured to obtain position coordinates of an annotation point on the contour line in a column selection manner, and calculate a first angle of the annotation point on the contour line according to the composition point.
Wherein, the contour annotation selection module 402 comprises the following sub-modules:
the straight line detection submodule 4027 is used for detecting whether a user draws a straight line on the corresponding thematic map of the contour line;
and the annotation point coordinate determination sub-module 4028 is used for calculating the coordinates of the intersection point of the straight line and each contour line if the coordinate of the annotation point on the contour line is the same as the coordinate of the annotation point on the straight line.
A annotation point vector determination submodule 4025 configured to obtain a vector of the annotation point according to the coordinates of the constituent points adjacent to the annotation point and the forward direction of the isoline;
the first angle adjusting submodule 4026 is configured to adjust the vector to between-90 ° and 90 ° if the included angle between the vector and the positive horizontal direction is not between-90 ° and 90 °, and calculate the included angle between the adjusted vector and the positive horizontal direction, so that the note is displayed in the positive direction according to the included angle; wherein the included angle is a first angle of the note point.
And the contour annotation drawing module 403 is configured to create a contour annotation layer, and draw a contour annotation according to the annotation pattern setting information, the position coordinate, and the first angle on the layer.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for drawing an isoline note on a thematic map related to a mine isoline is characterized by comprising the following steps:
presetting user setting information;
calculating the position coordinates of the mark points on the contour line at equal intervals along the advancing direction of the contour line;
calculating a first angle of the mark point on the contour line according to the composition point;
creating a contour line annotation layer, and drawing a contour line annotation under the layer according to the user setting information, the position coordinate and the first angle;
establishing a mapping relation between the contour line and the contour line mark and the user setting information; and storing the mapping relation into a fixed address hidden file of the hard disk in a binary format.
2. The method of claim 1, wherein said step of computing the coordinates of the location of the marker points on the contour at equal intervals along the direction of progression of the contour comprises:
setting the accumulated distance value d between the mark point and the first composition point on the contour linenWherein d isnN is a positive integer, d is a fixed spacing value of the annotation points on the contour line searched from the user setting information;
accumulating the distance values of adjacent composition points from the first composition point on the contour line to obtain an accumulated value L;
when the accumulated value L is larger than the accumulated value dnDetermining the coordinates of two adjacent composition points before and after the position of the annotation point, and recording the accumulated value l from the first composition point to the first composition point in the two composition points;
according to the coordinates of the two composition points and the accumulated value dnAnd calculating the accumulated value l to obtain the position coordinates of the mark point.
3. The method of claim 2, wherein said step of calculating a first angle of said marker point on the contour line from the component points comprises:
calculating according to the coordinates of the two adjacent constituent points and the advancing direction of the contour line to obtain the vector of the mark point;
if the included angle between the vector and the positive horizontal direction is not between-90 degrees and 90 degrees, adjusting the vector to be between-90 degrees and 90 degrees, and calculating the included angle between the adjusted vector and the positive horizontal direction to display the note in the positive direction according to the included angle; wherein the included angle is a first angle of the note point.
4. The method of claim 1, wherein the step of establishing a mapping relationship between the contours and the contour markers and the user-set information further comprises:
when the position of a certain contour line in the contour line related thematic map is detected to be changed, all the contour line marks on the contour line are adjusted in a linkage mode.
5. A method for drawing an isoline note on a thematic map related to a mine isoline is characterized by comprising the following steps:
presetting annotation style setting information on the contour line;
acquiring the position coordinates of the mark points on the contour line in a column selection mode;
calculating a first angle of the mark point on the contour line according to the composition point;
and creating a contour marking layer, and drawing a contour marking according to the marking style setting information, the position coordinate and the first angle under the layer.
6. The method according to claim 5, wherein the method for obtaining the position coordinates of the mark point on the contour line by means of column selection comprises the following steps:
detecting whether a user draws a straight line on the contour line related thematic map or not;
if so, calculating the coordinates of the intersection points of the straight line and each contour line to obtain the position coordinates of the mark points on the contour lines.
7. The method of claim 5, wherein said step of calculating a first angle of said marker point on the contour line from the component points comprises:
obtaining a vector of the annotation point according to the coordinates of the composition points adjacent to the annotation point and the forward direction of the contour line;
if the included angle between the vector and the positive horizontal direction is not between-90 degrees and 90 degrees, adjusting the vector to be between-90 degrees and 90 degrees, and calculating the included angle between the adjusted vector and the positive horizontal direction to display the note in the positive direction according to the included angle; wherein the included angle is a first angle of the note point.
8. A device for drawing contour line notes on a mine contour line related thematic map is characterized by comprising:
the contour line annotation setting module is used for presetting user setting information;
the contour line annotation selection module is used for calculating position coordinates of annotation points on the contour line at equal intervals along the advancing direction of the contour line and calculating a first angle of the annotation points on the contour line according to the composition points;
the contour line annotation drawing module is used for creating a contour line annotation layer, drawing a contour line annotation under the layer according to the user setting information, the position coordinate and the first angle, and establishing a mapping relation between a contour line and the contour line annotation and the user setting information; and storing the mapping relation into a fixed address hidden file of the hard disk in a binary format.
9. The apparatus of claim 8, further comprising:
and the contour line annotation linkage module is used for linkage adjustment of all contour line annotations on the contour line when the position of a certain contour line in the contour line related thematic map is detected to be changed.
10. A device for drawing contour line notes on a mine contour line related thematic map is characterized by comprising:
the contour line annotation setting module is used for presetting annotation pattern setting information on the contour line;
the contour line annotation selection module is used for acquiring the position coordinates of annotation points on the contour line in a column selection mode and calculating a first angle of the annotation points on the contour line according to the composition points;
and the contour mark drawing module is used for creating a contour mark layer and drawing a contour mark according to the mark style setting information, the position coordinate and the first angle under the layer.
CN201910980061.1A 2019-10-15 2019-10-15 Method and device for drawing contour line notes on mine contour line related thematic map Pending CN110751896A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910980061.1A CN110751896A (en) 2019-10-15 2019-10-15 Method and device for drawing contour line notes on mine contour line related thematic map
CN202010378787.0A CN111402703B (en) 2019-10-15 2020-05-07 Method and device for interactively marking isoline numerical value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910980061.1A CN110751896A (en) 2019-10-15 2019-10-15 Method and device for drawing contour line notes on mine contour line related thematic map

Publications (1)

Publication Number Publication Date
CN110751896A true CN110751896A (en) 2020-02-04

Family

ID=69278413

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910980061.1A Pending CN110751896A (en) 2019-10-15 2019-10-15 Method and device for drawing contour line notes on mine contour line related thematic map
CN202010378787.0A Active CN111402703B (en) 2019-10-15 2020-05-07 Method and device for interactively marking isoline numerical value

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202010378787.0A Active CN111402703B (en) 2019-10-15 2020-05-07 Method and device for interactively marking isoline numerical value

Country Status (1)

Country Link
CN (2) CN110751896A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111402703A (en) * 2019-10-15 2020-07-10 北京龙软科技股份有限公司 Method and device for interactively marking isoline numerical value

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100209132B1 (en) * 1996-07-11 1999-07-15 전주범 Method for coding contour in block based object coding system
MXPA06003070A (en) * 2003-09-18 2006-06-20 Ricoh Kk Toner, and developer, toner charged container, process cartridge, image forming apparatus and method of image forming.
JP4022215B2 (en) * 2004-11-02 2007-12-12 伸治 小林 Method, apparatus and program for creating a predetermined slope display map
JP2008152511A (en) * 2006-12-18 2008-07-03 Fukui Computer Kk Contour editing device, contour editing method and contour editing program
FR2996667B1 (en) * 2012-10-05 2015-12-11 Olea Medical SYSTEM AND METHOD FOR ESTIMATING A QUANTITY OF INTEREST IN A CINEMATIC SYSTEM BY CONTRAST AGENT TOMOGRAPHY
CN107146267B (en) * 2017-05-12 2020-08-11 中国石油天然气股份有限公司 Method and system for drawing contour map
CN107590833B (en) * 2017-08-23 2021-01-19 华南理工大学 Contour line-based human ear contour feature enhancement and physiological parameter extraction method
CN107993283B (en) * 2017-12-14 2019-01-04 北京龙软科技股份有限公司 Construction method for transparence mine
CN110751896A (en) * 2019-10-15 2020-02-04 北京龙软科技股份有限公司 Method and device for drawing contour line notes on mine contour line related thematic map
CN111060177B (en) * 2019-11-07 2021-05-28 武汉达梦数据库股份有限公司 Underground water contour line auxiliary generation method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111402703A (en) * 2019-10-15 2020-07-10 北京龙软科技股份有限公司 Method and device for interactively marking isoline numerical value
CN111402703B (en) * 2019-10-15 2021-01-05 北京龙软科技股份有限公司 Method and device for interactively marking isoline numerical value

Also Published As

Publication number Publication date
CN111402703B (en) 2021-01-05
CN111402703A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
US11042278B2 (en) Providing graphical indication of label boundaries in digital maps
CN102937848B (en) Method for editing handwritings and electronic equipment
US9146660B2 (en) Multi-function affine tool for computer-aided design
CN108280886A (en) Laser point cloud mask method, device and readable storage medium storing program for executing
JP4895211B2 (en) Display processing apparatus and display control method
JP2014508992A (en) Method and apparatus for realizing original handwriting brushstroke
CN107608596A (en) A kind of method, terminal and the storage medium of e-book page turning
CN109035364A (en) Method for rapidly drawing profile map based on CAD topographic map
CN110414477A (en) Image scale detection method and device
CN106293436A (en) Chart Drawing Method
CN110741229A (en) Dynamically changing visual attributes of indicators on a digital map
JP4611116B2 (en) Information processing apparatus and program used for presentation
CN110751896A (en) Method and device for drawing contour line notes on mine contour line related thematic map
CN103852080B (en) The map-indication method of object and system
JP3357760B2 (en) Character / graphic input editing device
CN106855778A (en) The processing method of interface operation, device and intelligent terminal
CN104778296B (en) Mathematical planning method for lithological description layout of drilling histogram
JP5401027B2 (en) Pipeline maintenance management system
CN104238921A (en) Custom polygon drawing method and device
CN106774974B (en) The method and apparatus of output information
CN104392044A (en) Well site device arrangement design method and system based on three-dimensional effect graphic primitive editing
JP5667334B2 (en) Graphic evaluation program and graphic evaluation apparatus
Kalyuzhny et al. Implementing a visual representation of analytic data using a radar chart
EP0825558A2 (en) Method and apparatus for displaying free-form graphic objects
TWM646348U (en) Building management system for campus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200204