CN111243053A - Optimized display method based on S52 standard chart water depth symbol - Google Patents

Optimized display method based on S52 standard chart water depth symbol Download PDF

Info

Publication number
CN111243053A
CN111243053A CN202010060517.5A CN202010060517A CN111243053A CN 111243053 A CN111243053 A CN 111243053A CN 202010060517 A CN202010060517 A CN 202010060517A CN 111243053 A CN111243053 A CN 111243053A
Authority
CN
China
Prior art keywords
water depth
depth value
displayed
symbol
font
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.)
Granted
Application number
CN202010060517.5A
Other languages
Chinese (zh)
Other versions
CN111243053B (en
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.)
Navigation Brilliance Qingdao Technology Co Ltd
Original Assignee
Navigation Brilliance Qingdao 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 Navigation Brilliance Qingdao Technology Co Ltd filed Critical Navigation Brilliance Qingdao Technology Co Ltd
Priority to CN202010060517.5A priority Critical patent/CN111243053B/en
Publication of CN111243053A publication Critical patent/CN111243053A/en
Application granted granted Critical
Publication of CN111243053B publication Critical patent/CN111243053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Abstract

The invention relates to an optimized display method based on an S52 standard chart water depth symbol, which comprises the following steps: acquiring a second set according to a preset first set; the first set includes: 120 water depth value symbols; each water depth value symbol has a symbol name and a drawing path of S52 chart display standard corresponding to the symbol; the symbol name of the water depth value symbol has 12 characters; and the 11 th character from left to right in the symbol name of the water depth value symbol is any number from 0 to 9; acquiring a plurality of water depth values to be displayed, and determining a first color or a second color corresponding to the water depth values to be displayed according to a preset S52 chart display standard; and respectively acquiring and displaying the plurality of water depth value symbols to be displayed based on the water depth values to be displayed and the second set.

Description

Optimized display method based on S52 standard chart water depth symbol
Technical Field
The invention relates to an optimized display method based on an S52 standard chart water depth symbol.
Background
In actual navigation, the accuracy of the water depth value in the chart is the safe driving protection navigation of navigation. The water depth values of all target points in the sea area are efficiently and accurately displayed in the electronic chart, and very important basis can be provided for a captain to know the surrounding sea area condition macroscopically. The current implementation modes of the S52 standard are different, the description form of the symbols is changed, and the optimized symbol display is carried out by using an SVG vector description language; some optimize the symbolic display by building a database; however, these solutions are another implementation way of the conventional solution, and essentially, the symbols in the S52 standard and the optimized symbols still maintain a one-to-one correspondence relationship. The problems of difficult maintenance, easy error and low display efficiency of the water depth symbol in the chart cannot be thoroughly solved.
A series of coordinate points are given in the S52 standard and recorded as symbol drawing paths, each symbol has a respective symbol drawing path, and each symbol drawing path is connected in turn to be drawn into each individual number in 0-9 and recorded as a water depth value decimal symbol. The symbol names related to the water depth point include SY (SOUNDG00) -SY (SOUNDG59)60 symbol names, SY (SOUNDS00) -SY (SOUNDS59)60 symbol names and 120 symbol names in total. Wherein SY indicates that the symbol is a dot symbol; "SOUNDG 01" represents the subject name of a symbol, necessarily 8 characters; the last 1 indicates that the effect of the symbol display is the number 1; the penultimate digit relates to the location of the pivot point of the symbol and corresponds to the decimal digit of the water depth value, as shown in figure 1.
The conventional technical scheme comprises the following steps: and acquiring the value of the water depth value required to be displayed. And separating to obtain each decimal number in the water depth value. For example, if the value is 95.6, three numbers of 9, 5, and 6 are separated. And searching corresponding three symbols according to the three numbers of 9, 5 and 6. 9 is a number on the ten position, and a symbol representing the number 9 on the ten position needs to be searched according to the penultimate number of the symbol; similarly, the symbol representing the unit digit 5 and the symbol representing the decimal digit 6 are obtained; thus, 3 decimal symbols of water depth values are obtained. And drawing the obtained 3 symbols at the same point according to the sequence to obtain a complete water depth value symbol.
However, in the conventional technical scheme, 10 symbols, namely 0 to 9, are generated for all the digits on the decimal digit, the total number of the symbols needing to be maintained is as much as 120, the symbols are not easy to maintain and expand, the probability of errors is increased due to the increase of the number, and the difficulty in positioning the wrong symbols is also increased. When the water depth value symbols are displayed, all corresponding water depth value decimal symbols need to be searched from 120 symbols, the decimal symbols need to be searched once every time, and the searching efficiency is too low. Moreover, in practice, each decimal digit is a single water depth value decimal symbol, and the combination of the decimal digits is a complete water depth value symbol. If a single decimal symbol of the depth value has a problem, the problem can not be accurately found, so that the displayed depth value has a problem, and the navigation safety is damaged.
Disclosure of Invention
Technical problem to be solved
In order to solve the problems in the prior art, the invention provides an optimized display method based on an S52 standard chart water depth symbol.
(II) technical scheme
In order to achieve the purpose, the invention provides an optimized display method of a chart water depth symbol based on an S52 standard, which comprises the following steps:
a1, acquiring a second set according to a preset first set;
the first set includes: 120 water depth value symbols;
each water depth value symbol has a symbol name and a drawing path of S52 chart display standard corresponding to the symbol;
the symbol name has 12 characters; and the 11 th character from left to right in the symbol name of the water depth value symbol is any number from 0 to 9;
a2, obtaining a plurality of water depth values to be displayed, and determining a first color or a second color corresponding to the water depth values to be displayed according to a preset S52 chart display standard;
a3, respectively acquiring water depth value symbols corresponding to the plurality of water depth values to be displayed and displaying the water depth value symbols corresponding to the plurality of water depth values to be displayed based on the water depth values to be displayed and the second set;
the symbol of the water depth value to be displayed has a first color or a second color corresponding to the water depth value to be displayed.
Preferably, the second set comprises: any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols in the first set is 0, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 1, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 2, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 3, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 4, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 5, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 6, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 7, any water depth value symbol whose water depth value symbols from left to right is 7, Any water depth value symbol with the 11 th character from left to right in the symbol names of the water depth value symbols is 8, and any water depth value symbol with the 11 th character from left to right in the symbol names of the water depth value symbols is 9.
Preferably, the step a3 includes:
a3-1, based on the water depth value to be displayed, determining a water depth value symbol corresponding to the water depth value to be displayed in the second set;
a3-2, determining a drawing path of a water depth value symbol corresponding to the water depth value to be displayed based on the water depth value symbol corresponding to the water depth value to be displayed;
and A3-3, respectively drawing the plurality of symbols of the water depth value to be displayed based on the drawing paths of the symbols of the water depth value corresponding to the water depth value to be displayed.
4. The method according to claim 3, wherein the step A3-1 comprises:
a3-1-1, separating the water depth value to be displayed to obtain the number in each decimal place in the water depth value to be displayed;
a3-1-2, determining in the second set a water depth value symbol corresponding to a number in each decimal place of the water depth values to be displayed;
wherein the symbol names of the depth value symbols in the second set corresponding to each decimal digit of the depth values to be displayed are: and the 11 th character in the symbol names of the deepwater value symbols in the second set is the same as the symbol name of the number in the decimal place in the deepwater value to be displayed.
Preferably, the step a3-3 includes:
and respectively drawing the symbols of the plurality of water depth values to be displayed by adopting the drawing path of the water depth value symbol corresponding to the water depth value to be displayed, the preset interval value and/or height value, and the first color and/or the second color.
Preferably, the step a3-3 includes:
if the water depth value to be displayed is an integer less than or equal to 9, drawing the symbol of the water depth value to be displayed by adopting a drawing path of the water depth value symbol corresponding to the integer and a first color or a second color corresponding to the water depth value;
if the depth value to be displayed is an integer greater than 9, drawing the symbol of the depth value to be displayed by adopting a plurality of drawing paths of the depth value symbols corresponding to the depth value to be displayed, a preset interval value and a first color or a second color corresponding to the depth value to be displayed;
the horizontal interval between the drawing paths of the water depth value symbols corresponding to the water depth values to be displayed has a preset interval value;
if the water depth value to be displayed is less than 10 and has decimal digits, drawing the water depth value symbol to be displayed by adopting a drawing path of the water depth value symbol corresponding to the digits of the integral digits of the water depth value to be displayed, a drawing path of the water depth value symbol corresponding to the digits of the decimal digits, a preset interval value and a preset height value, and a first color or a second color corresponding to the water depth value to be displayed;
the horizontal interval between the drawing path of the water depth value symbol of the number in the integer digits and the drawing path of the water depth value symbol of the number in the decimal digits of the water depth value to be displayed has a preset interval value;
the drawing path corresponding to the figure of the water depth value decimal place and the drawing path corresponding to the figure of the water depth value integer digit have preset height values;
if the water depth value to be displayed is greater than or equal to 10 and has a decimal digit, determining the symbol of the water depth value to be displayed by adopting a plurality of drawing paths of the water depth value symbols on the integer digits corresponding to the water depth value to be displayed, drawing paths of the water depth value symbols on the decimal digits corresponding to the water depth value to be displayed, preset interval values and height values, and a first color or a second color corresponding to the water depth value to be displayed;
wherein, the drawing paths of the plurality of water depth value symbols corresponding to the numbers of the integer digits of the water depth value to be displayed have interval values with preset transverse intervals;
the drawing path of the water depth value symbol corresponding to the figure on the unit digit of the water depth value to be displayed and the drawing path of the water depth value symbol corresponding to the figure on the decimal digit of the water depth value to be displayed have a preset interval value of the transverse interval;
and a preset height value is formed between the drawing path of the water depth value symbol corresponding to the number on the unit digit of the water depth value to be displayed and the drawing path of the water depth value symbol corresponding to the number on the decimal digit of the water depth value to be displayed.
Preferably, the step a3 includes:
based on the drawing path of the 10 water depth value symbols in the second set, acquiring 10 characters of a first font and 10 characters of a second font which are in one-to-one correspondence with the 10 water depth value symbols in the second set by adopting a character making program;
the 10 characters of the first font include characters of the first font from 0 to 9;
the 10 characters of the second font comprise characters of the second font from 0 to 9;
the first font character and the second font character have a height of 2.5 millimeters and a width of 1.25 millimeters;
determining characters of a first font and/or characters of a second font corresponding to the water depth value to be displayed in the characters of the 10 first fonts and/or the characters of the 10 second fonts based on the water depth value to be displayed;
determining the characters of the first font and/or the characters of the second font corresponding to the water depth value to be displayed based on the characters of the first font and/or the characters of the second font corresponding to the water depth value to be displayed;
and respectively acquiring the plurality of symbols of the water depth value to be displayed based on the characters of the first font and/or the characters of the second font corresponding to the water depth value to be displayed.
Preferably, on the basis of the depth value to be displayed, the characters of the first font and/or the characters of the second font corresponding to the depth value to be displayed are determined among the characters of the 10 first fonts and/or the characters of the 10 second fonts; the method specifically comprises the following steps:
separating the water depth values to be displayed to obtain the number in each decimal place in the water depth values to be displayed;
determining a final first font character corresponding to a number in each decimal place in the integer part of the water depth value to be displayed among the characters of the first font;
the final first font characters are respectively the same as the numbers in each decimal place in the integral part of the water depth value to be displayed;
determining a final second font character corresponding to a number in decimal places in a decimal part of the water depth value to be displayed among the characters of the second font;
the final second font character is the same as a number in decimal places in the fractional part of the water depth value to be displayed.
Preferably, the obtaining the plurality of symbols of the depth value to be displayed based on the character of the first font and/or the character of the second font corresponding to the depth value to be displayed respectively specifically includes:
if the water depth value to be displayed is an integer, drawing a symbol of the water depth value to be displayed by adopting a final first font character corresponding to the water depth value and a preset first color or second color;
the final first font characters in the water depth values to be displayed have preset interval values;
if the water depth value to be displayed has decimal, drawing a symbol of the water depth value to be displayed by adopting a final first font character and a final second font character corresponding to the water depth value and a preset first color or second color;
the method comprises the steps that a preset height value is formed between a final first font character and a final second font character in a water depth value symbol to be displayed;
wherein, each adjacent character in the water depth value symbol to be displayed has a preset interval value.
Preferably, the preset interval value is 1 mm;
the predetermined height value is 1.25 mm.
(III) advantageous effects
The invention has the beneficial effects that: the water depth value symbol is conveniently and efficiently maintained and expanded. The traditional scheme needs to maintain up to 120 symbols, only 10 symbols are needed to be maintained at present, and the maintenance cost is greatly reduced. In the traditional scheme, if the water depth value symbol needs to be expanded, for example, the color of the symbol is simply changed, 60 more symbols need to be added for each more color; not only the difficulty of expansion is increased, and errors are easy to occur, but also the difficulty of maintenance is increased; and simultaneously brings troubles for subsequent testing work.
When the traditional scheme displays the water depth value symbol, the symbol of each decimal digit in the water depth value needs to be drawn, and if the water depth value is a hundred-digit water depth value, 3 or even 4 symbols are needed to completely display the water depth value. The invention only needs to search the corresponding symbol from the second set, obtain the corresponding symbol drawing path, and then draw the symbol in real time, only needs to display one symbol. Improving the efficiency of displaying a single full water depth value symbol.
The traditional scheme is to search each symbol in 120 symbols, the invention only needs to search in 10 symbols in the second set, and the searching efficiency is greatly improved. Since the number of depth values in the chart is hundreds to thousands, the improvement in efficiency reflected in the entire chart system is very significant here even if the magnitude of the improvement is small.
The invention simplifies 120 symbols into 10 symbols, draws the water depth value symbol in real time according to the name of the symbol, and the obtained water depth value symbol is an integral symbol instead of a combined symbol formed by simply displaying a plurality of symbols at the same position.
Drawings
FIG. 1 is a diagram illustrating a comparison of symbol pivot points in the prior art;
FIG. 2 is a diagram showing the effect of the water depth value symbol on the chart;
FIG. 3 is a diagram of a SY (SOUNDG00) symbol in the prior art;
FIG. 4 is a diagram of a SY (SOUNDS00) symbol in the prior art;
fig. 5 is a flow chart of the optimized display method based on the S52 standard chart water depth symbol of the invention.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
Example one
As shown in fig. 5, an optimized display method based on the S52 standard chart water depth symbol includes the steps:
a1, obtaining a second set according to the preset first set.
The first set includes: 120 water depth value symbols.
Each of the depth value symbols has a symbol name and a drawing path of S52 chart display standard corresponding to the symbol.
The symbol name of the water depth value symbol has 12 characters; and the 11 th character from left to right in the symbol name of the water depth value symbol is any number from 0 to 9.
The second set in this embodiment includes: any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols in the first set is 0, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 1, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 2, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 3, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 4, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 5, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 6, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 7, any water depth value symbol whose water depth value symbols from left to right is 7, Any water depth value symbol with the 11 th character from left to right in the symbol names of the water depth value symbols is 8, and any water depth value symbol with the 11 th character from left to right in the symbol names of the water depth value symbols is 9.
In a specific application of the present embodiment, the second set is obtained from a total of 120 symbol names by 60 symbol names (using the first color) from SY (sound 00) to SY (sound 59) and 60 symbol names (using the second color) from SY (sound 00) to SY (sound 59). The symbol sy (soundgxx) is identical to the symbol sy (soundsxx) except for the color, including the position of the pivot point. As shown in FIG. 3, the symbol SY (SOUNDG00) is shown in FIG. 3, and the symbol SY (SOUNDS00) is shown in FIG. 4.
In the present embodiment, among the 60 symbols SY (SOUNDG00) to SY (SOUNDG59), there are 10 symbols each having 6 sets of decimal symbols with water depth values of 0 to 9.
In the present embodiment, among 60 symbols SY (SOUNDS00) to SY (SOUNDS59), there are also 6 sets of decimal symbols with water depth values of 0 to 9, and 10 symbols per set.
For example, the three numbers 0 of SY (SOUNDS20), SY (SOUNDS10) and SY (SOUNDS50) are identical except for the location of the pivot point. Thus, 10 symbols in the second set can be found among 60 symbols SY (sound 00) -SY (sound 59) and 60 symbols SY (soundds 00) -SY (soundds 59) for a total of 120 symbols.
The 10 symbols in the second set may be 10 symbols SY (soundds 00) to SY (soundds 09), 10 symbols SY (SOUNDG00) to SY (SOUNDG09), 10 symbols SY (soundds 00), SY (SOUNDG51), SY (SOUNDG32), SY (SOUNDS03), SY (SOUNDG44), SY (SOUNDS15), SY (SOUNDS16), SY (SOUNDG37), SY (SOUNDG28), SY (SOUNDS 59). The second set is possible as long as the 60 symbol names SY (SOUNDG00) -SY (SOUNDG59) and the 60 symbol names SY (SOUNDS00) -SY (SOUNDS59) have the last digit of any 10 symbol names in the total 120 symbol names, that is, the 11 th character in the symbol names is 10 symbols of 0,1,2,3,4,5,6,7,8, 9.
A2, obtaining a plurality of water depth values to be displayed, and determining a first color or a second color corresponding to the water depth values to be displayed based on the water depth values to be displayed.
And A3, determining the symbol name of the water depth value symbol corresponding to the water depth value to be displayed in the second set based on the water depth value to be displayed.
In this embodiment, the step a3 includes:
a3-1, separating the water depth value to be displayed, and acquiring the number in each decimal place in the water depth value to be displayed.
In this embodiment, if the water depth values to be displayed are 158 and 95.6, 158 is separated into 1, 5, and 8. The 95.6 is separated into 9, 5 and 6.
A3-2, determining in the second set a symbol name of a water depth value symbol corresponding to a number in each decimal place of the water depth values to be displayed.
Wherein the symbol names of the depth value symbols in the second set corresponding to each decimal digit of the depth values to be displayed are: and the symbol name of the water depth value symbol with the 11 th character in the first water depth value symbol in the second set being the same as the number in the decimal place in the water depth value to be displayed.
For example, if the second set is 10 symbols SY (soundds 00) -SY (soundds 09), and if the water depth value to be displayed is 158, the symbol names SY (soundds 01), SY (soundds 05), SY (soundds 08) corresponding to the water depth value 158 to be displayed in the second set are SY (soundds 01).
A4, determining a drawing path of a water depth value symbol corresponding to the water depth value to be displayed in a preset S52 standard symbol drawing path based on the symbol name of the water depth value symbol corresponding to the water depth value to be displayed;
and A5, drawing the symbols of the water depth values to be displayed respectively by adopting the drawing path of the water depth value symbol corresponding to the water depth value to be displayed, the preset interval value and/or height value, and the first color and/or the second color. As shown in fig. 2, the depth value in the chart shows the effect.
The symbol of the water depth value to be displayed has a first color or a second color corresponding to the water depth value to be displayed.
In a specific application of this embodiment, if the depth value to be displayed is an integer less than or equal to 9, the symbol of the depth value to be displayed is drawn by using the drawing path of the depth value symbol corresponding to the integer and the first color or the second color corresponding to the depth value.
For example, when the second set is SY (SOUNDS00) to SY (SOUNDS09) in the present embodiment, if the water depth value to be displayed is 8, the symbol of the water depth value 8 is drawn by drawing the path with the symbol of SY (SOUNDS 08).
In a specific application of this embodiment, if the depth value to be displayed is an integer greater than 9, the symbol of the depth value to be displayed is drawn by using a drawing path of a plurality of depth value symbols corresponding to the depth value to be displayed, a preset interval value, and a first color or a second color corresponding to the depth value to be displayed.
For example, when the second set is SY (SOUNDS00) -SY (SOUNDS09) in the present embodiment, if the water depth value to be displayed is 158, the path is drawn by using 3 symbols SY (SOUNDS01), SY (SOUNDS05), and SY (SOUNDS08), and 1 symbol with the water depth value of 158 is drawn.
In this case, the drawing path of 1 and the drawing path of 5 in 1 symbol of the water depth value 158 are separated by 1 mm, and the drawing path of 5 and the drawing path of 8 are separated by 1 mm.
In a specific application of this embodiment, if the depth value to be displayed is less than 10 and has a decimal number, the symbol of the depth value to be displayed is drawn by using a drawing path corresponding to the integer number of the depth value to be displayed, a drawing path corresponding to the decimal number, a preset interval value and a preset height value, and a first color or a second color corresponding to the depth value to be displayed.
And the horizontal interval between the drawing path of the water depth value symbol of the number in the integer digits and the drawing path of the water depth value symbol of the number in the decimal digits of the water depth value to be displayed has a preset interval value.
And the drawing path corresponding to the digit with the small water depth value and the drawing path corresponding to the digit with the large water depth value have preset height values.
For example, when the second set is SY (SOUNDS00) to SY (SOUNDS09) in the present embodiment, if the depth value to be displayed is 5.6, then 1 symbol having a depth value of 5.6 is drawn using SY (SOUNDS05), SY (SOUNDS06), and the drawing path of the 2 symbols.
Wherein, the drawing path of 5 and the drawing path of 6 in 1 symbol of the water depth value 5.6 are transversely spaced by 1 mm, and the drawing path of 5 is 1.25 mm higher than that of 6.
In a specific application of this embodiment, if the water depth value to be displayed is greater than or equal to 10 and has a decimal digit, the symbol of the water depth value to be displayed is determined by using a drawing path of a plurality of water depth value symbols on an integer digit corresponding to the water depth value to be displayed, a drawing path of a water depth value symbol on a decimal digit corresponding to the water depth value to be displayed, a preset interval value and height value, and a first color or a second color corresponding to the water depth value to be displayed.
And the drawing paths of the plurality of water depth value symbols corresponding to the numbers of the integral digits of the water depth values to be displayed have interval values with preset transverse intervals.
And an interval value with preset transverse intervals is arranged between the drawing path of the water depth value symbol corresponding to the figure on the unit digit of the water depth value to be displayed and the drawing path of the water depth value symbol corresponding to the figure on the decimal digit of the water depth value to be displayed.
And a preset height value is formed between the drawing path of the water depth value symbol corresponding to the number on the unit digit of the water depth value to be displayed and the drawing path of the water depth value symbol corresponding to the number on the decimal digit of the water depth value to be displayed.
For example, when the second set is SY (SOUNDS00) -SY (SOUNDS09) in the present embodiment, if the water depth value to be displayed is 95.6, then 1 symbol of the water depth value 95.6 is drawn by using a drawing path of SY (SOUNDS09), SY (SOUNDS05), SY (SOUNDS06), and these 3 symbols.
Wherein, the drawing path of 9 and the drawing path of 5 in 1 symbol of the water depth value of 95.6 are transversely spaced by 1 mm, the drawing path of 5 and the drawing path of 9 are the same in height, the drawing path of 5 and the drawing path of 6 are transversely spaced by 1 mm, and the drawing path of 5 is 1.25 mm higher than the drawing path of 6.
In this embodiment, 120 symbols are simplified into 10 symbols, and the completed water depth value symbol is drawn in real time according to the name of the symbol, where the water depth value symbol is actually one symbol; instead of looking up a single symbol per decimal digit from 120 symbols, and then displaying the symbols in combination as a water depth value symbol, a traditional water depth value symbol is actually a plurality of symbols.
In the embodiment, only the drawing path of the symbol is emphasized, only the coordinate data is saved, and each water depth value symbol is generated by real-time calculation; instead of focusing on the symbol itself, the display effect of the symbol is not preserved.
Example two
Referring to fig. 5, in the second embodiment, the method for optimally displaying the chart water depth symbol based on the S52 standard includes the steps of:
and B1, acquiring a second set according to the preset first set.
The first set includes: 120 water depth value symbols.
Each of the depth value symbols has a symbol name and a drawing path of S52 chart display standard corresponding to the symbol.
The symbol name of the water depth value symbol has 12 characters; and the 11 th character from left to right in the symbol name of the water depth value symbol is any number from 0 to 9;
b2, acquiring a plurality of water depth values to be displayed, and determining a first color or a second color corresponding to the water depth values to be displayed according to a preset S52 chart display standard.
B3, respectively acquiring the multiple symbols of the water depth value to be displayed based on the water depth value to be displayed and the second set.
The symbol of the water depth value to be displayed has a first color or a second color corresponding to the water depth value to be displayed.
In this embodiment, the preferred second set includes: any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols in the first set is 0, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 1, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 2, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 3, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 4, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 5, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 6, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 7, any water depth value symbol whose water depth value symbols from left to right is 7, Any water depth value symbol with the 11 th character from left to right in the symbol names of the water depth value symbols is 8, and any water depth value symbol with the 11 th character from left to right in the symbol names of the water depth value symbols is 9.
Preferably, in the second embodiment, the step a3 includes:
and acquiring 10 characters of the first fonts and 10 characters of the second fonts, which are in one-to-one correspondence with the 10 water depth value symbols in the second set, by adopting a character making program based on the drawing path of the 10 water depth value symbols in the second set.
The 10 characters of the first font include characters of the first font from 0 to 9.
The 10 characters of the second font include characters of the second font from 0 to 9.
The first font character and the second font character have a height of 2.5 millimeters and a width of 1.25 millimeters.
And determining the characters of the first font and/or the characters of the second font corresponding to the water depth value to be displayed in the characters of the 10 first fonts and/or the characters of the 10 second fonts on the basis of the water depth value to be displayed.
And determining the characters of the first font and/or the characters of the second font corresponding to the water depth value to be displayed based on the characters of the first font and/or the characters of the second font corresponding to the water depth value to be displayed.
And respectively acquiring the plurality of symbols of the water depth value to be displayed based on the characters of the first font and/or the characters of the second font corresponding to the water depth value to be displayed.
Preferably, in this embodiment, based on the depth value to be displayed, the characters of the first font and/or the characters of the second font corresponding to the depth value to be displayed are determined among the characters of the 10 first fonts and/or the characters of the 10 second fonts; the method specifically comprises the following steps:
and separating the water depth values to be displayed to obtain the digits in each decimal place in the water depth values to be displayed.
Determining a final first font character corresponding to a number in each decimal place in the integer portion of the water depth value to be displayed among the characters of the first font.
The final first font characters are respectively identical to the numbers in each decimal place in the integral part of the water depth value to be displayed.
Determining a final second font character corresponding to a number in decimal places in the fractional part of the water depth value to be displayed among the characters of the second font.
The final second font character is the same as a number in decimal places in the fractional part of the water depth value to be displayed.
Preferably, in this embodiment two, the obtaining the symbols of the depth values to be displayed based on the characters of the first font and/or the characters of the second font corresponding to the depth values to be displayed respectively specifically includes:
and if the water depth value to be displayed is an integer, drawing a symbol of the water depth value to be displayed by adopting a final first font character corresponding to the water depth value and a preset first color or second color.
And the final first font characters in the water depth values to be displayed have preset interval values.
And if the water depth value to be displayed has decimal, drawing a symbol of the water depth value to be displayed by adopting a final first font character and a final second font character corresponding to the water depth value and a preset first color or second color.
Wherein the final first font character and the final second font character in the water depth value symbol to be displayed have a preset height value.
Wherein, each adjacent character in the water depth value symbol to be displayed has a preset interval value.
In the preferred embodiment, the predetermined interval is 1 mm, and the predetermined height is 1.25 mm.
In this embodiment, 120 symbols are simplified into 10 characters of the first font and 10 characters of the second font, and the water depth value symbol is rendered in real time according to the characters, so that the rendering of the water depth value is more convenient.
In the present embodiment, 120 symbols are used to generate two fonts only containing 10 characters, i.e. 0 to 9. A font is used to display the integer part of the water depth value. Another font is used to display the fractional part of the water depth value. If the water depth value needs to be displayed. The corresponding font is only needed to display the integer part and the decimal part of the water depth value respectively. The water depth value symbol need not be maintained.
The technical principles of the present invention have been described above in connection with specific embodiments, which are intended to explain the principles of the present invention and should not be construed as limiting the scope of the present invention in any way. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive efforts, which shall fall within the scope of the present invention.

Claims (10)

1. An optimized display method based on an S52 standard chart water depth symbol is characterized by comprising the following steps:
a1, acquiring a second set according to a preset first set;
the first set includes: 120 water depth value symbols;
each water depth value symbol has a symbol name and a drawing path of S52 chart display standard corresponding to the symbol;
the symbol name has 12 characters; and the 11 th character from left to right in the symbol name of the water depth value symbol is any number from 0 to 9;
a2, obtaining a plurality of water depth values to be displayed, and determining a first color or a second color corresponding to the water depth values to be displayed according to a preset S52 chart display standard;
a3, respectively acquiring water depth value symbols corresponding to the plurality of water depth values to be displayed based on the water depth values to be displayed and the second set;
the symbol of the water depth value to be displayed has a first color or a second color corresponding to the water depth value to be displayed.
2. The method of claim 1, wherein the second set comprises: any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols in the first set is 0, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 1, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 2, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 3, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 4, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 5, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 6, any water depth value symbol whose 11 th character from left to right in the symbol names of the water depth value symbols is 7, any water depth value symbol whose water depth value symbols from left to right is 7, Any water depth value symbol with the 11 th character from left to right in the symbol names of the water depth value symbols is 8, and any water depth value symbol with the 11 th character from left to right in the symbol names of the water depth value symbols is 9.
3. The method according to claim 2, wherein said step a3 comprises:
a3-1, based on the water depth value to be displayed, determining a water depth value symbol corresponding to the water depth value to be displayed in the second set;
a3-2, determining a drawing path of a water depth value symbol corresponding to the water depth value to be displayed based on the water depth value symbol corresponding to the water depth value to be displayed;
and A3-3, respectively drawing the plurality of symbols of the water depth value to be displayed based on the drawing paths of the symbols of the water depth value corresponding to the water depth value to be displayed.
4. The method according to claim 3, wherein the step A3-1 comprises:
a3-1-1, separating the water depth value to be displayed to obtain the number in each decimal place in the water depth value to be displayed;
a3-1-2, determining in the second set a water depth value symbol corresponding to a number in each decimal place of the water depth values to be displayed;
wherein the symbol names of the depth value symbols in the second set corresponding to each decimal digit of the depth values to be displayed are: and the 11 th character in the symbol names of the deepwater value symbols in the second set is the same as the symbol name of the number in the decimal place in the deepwater value to be displayed.
5. The method of claim 4, wherein the step A3-3 comprises:
and respectively drawing the symbols of the plurality of water depth values to be displayed by adopting the drawing path of the water depth value symbol corresponding to the water depth value to be displayed, the preset interval value and/or height value, and the first color and/or the second color.
6. The method of claim 5, wherein the step A3-3 comprises:
if the water depth value to be displayed is an integer less than or equal to 9, drawing the symbol of the water depth value to be displayed by adopting a drawing path of the water depth value symbol corresponding to the integer and a first color or a second color corresponding to the water depth value;
if the depth value to be displayed is an integer greater than 9, drawing the symbol of the depth value to be displayed by adopting a plurality of drawing paths of the depth value symbols corresponding to the depth value to be displayed, a preset interval value and a first color or a second color corresponding to the depth value to be displayed;
the horizontal interval between the drawing paths of the water depth value symbols corresponding to the water depth values to be displayed has a preset interval value;
if the water depth value to be displayed is less than 10 and has decimal digits, drawing the water depth value symbol to be displayed by adopting a drawing path of the water depth value symbol corresponding to the digits of the integral digits of the water depth value to be displayed, a drawing path of the water depth value symbol corresponding to the digits of the decimal digits, a preset interval value and a preset height value, and a first color or a second color corresponding to the water depth value to be displayed;
the horizontal interval between the drawing path of the water depth value symbol of the number in the integer digits and the drawing path of the water depth value symbol of the number in the decimal digits of the water depth value to be displayed has a preset interval value;
the drawing path corresponding to the figure of the water depth value decimal place and the drawing path corresponding to the figure of the water depth value integer digit have preset height values;
if the water depth value to be displayed is greater than or equal to 10 and has a decimal digit, determining the symbol of the water depth value to be displayed by adopting a plurality of drawing paths of the water depth value symbols on the integer digits corresponding to the water depth value to be displayed, drawing paths of the water depth value symbols on the decimal digits corresponding to the water depth value to be displayed, preset interval values and height values, and a first color or a second color corresponding to the water depth value to be displayed;
wherein, the drawing paths of the plurality of water depth value symbols corresponding to the numbers of the integer digits of the water depth value to be displayed have interval values with preset transverse intervals;
the drawing path of the water depth value symbol corresponding to the figure on the unit digit of the water depth value to be displayed and the drawing path of the water depth value symbol corresponding to the figure on the decimal digit of the water depth value to be displayed have a preset interval value of the transverse interval;
and a preset height value is formed between the drawing path of the water depth value symbol corresponding to the number on the unit digit of the water depth value to be displayed and the drawing path of the water depth value symbol corresponding to the number on the decimal digit of the water depth value to be displayed.
7. The method according to claim 2, wherein said step a3 comprises:
based on the drawing path of the 10 water depth value symbols in the second set, acquiring 10 characters of a first font and 10 characters of a second font which are in one-to-one correspondence with the 10 water depth value symbols in the second set by adopting a character making program;
the 10 characters of the first font include characters of the first font from 0 to 9;
the 10 characters of the second font comprise characters of the second font from 0 to 9;
the first font character and the second font character have a height of 2.5 millimeters and a width of 1.25 millimeters;
determining characters of a first font and/or characters of a second font corresponding to the water depth value to be displayed in the characters of the 10 first fonts and/or the characters of the 10 second fonts based on the water depth value to be displayed;
determining the characters of the first font and/or the characters of the second font corresponding to the water depth value to be displayed based on the characters of the first font and/or the characters of the second font corresponding to the water depth value to be displayed;
and respectively acquiring the plurality of symbols of the water depth value to be displayed based on the characters of the first font and/or the characters of the second font corresponding to the water depth value to be displayed.
8. The method according to claim 7, wherein the characters of the first font and/or the characters of the second font corresponding to the water depth value to be displayed are determined among the characters of the 10 first fonts and/or the characters of the 10 second fonts based on the water depth value to be displayed; the method specifically comprises the following steps:
separating the water depth values to be displayed to obtain the number in each decimal place in the water depth values to be displayed;
determining a final first font character corresponding to a number in each decimal place in the integer part of the water depth value to be displayed among the characters of the first font;
the final first font characters are respectively the same as the numbers in each decimal place in the integral part of the water depth value to be displayed;
determining a final second font character corresponding to a number in decimal places in a decimal part of the water depth value to be displayed among the characters of the second font;
the final second font character is the same as a number in decimal places in the fractional part of the water depth value to be displayed.
9. The method according to claim 8, wherein the obtaining the plurality of symbols of the depth value to be displayed based on the character of the first font and/or the character of the second font corresponding to the depth value to be displayed respectively comprises:
if the water depth value to be displayed is an integer, drawing a symbol of the water depth value to be displayed by adopting a final first font character corresponding to the water depth value and a preset first color or second color;
the final first font characters in the water depth values to be displayed have preset interval values;
if the water depth value to be displayed has decimal, drawing a symbol of the water depth value to be displayed by adopting a final first font character and a final second font character corresponding to the water depth value and a preset first color or second color;
the method comprises the steps that a preset height value is formed between a final first font character and a final second font character in a water depth value symbol to be displayed;
wherein, each adjacent character in the water depth value symbol to be displayed has a preset interval value.
10. The method according to any one of claims 6 or 9, wherein the predetermined interval value is 1 mm;
the predetermined height value is 1.25 mm.
CN202010060517.5A 2020-01-19 2020-01-19 Optimized display method based on S52 standard chart water depth symbol Active CN111243053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010060517.5A CN111243053B (en) 2020-01-19 2020-01-19 Optimized display method based on S52 standard chart water depth symbol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010060517.5A CN111243053B (en) 2020-01-19 2020-01-19 Optimized display method based on S52 standard chart water depth symbol

Publications (2)

Publication Number Publication Date
CN111243053A true CN111243053A (en) 2020-06-05
CN111243053B CN111243053B (en) 2023-11-17

Family

ID=70874763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010060517.5A Active CN111243053B (en) 2020-01-19 2020-01-19 Optimized display method based on S52 standard chart water depth symbol

Country Status (1)

Country Link
CN (1) CN111243053B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0933635A (en) * 1995-07-24 1997-02-07 Tokimec Inc Electronic chart display information device
JP2000206107A (en) * 1999-01-18 2000-07-28 Horiba Ltd Water quality-measuring apparatus and water quality display method, and memory medium with water quality display program recorded
US20100284248A1 (en) * 2009-05-11 2010-11-11 Furuno Electric Co., Ltd. Method of displaying underwater detection image and underwater detection device
KR20110008947A (en) * 2009-07-21 2011-01-27 현대중공업 주식회사 Extraction method for depth of water from ecdis to estimate topography of seafloor
CN102289990A (en) * 2011-08-24 2011-12-21 彭认灿 Charted depth annotation representation notation based on character color extension
CN103400405A (en) * 2013-08-01 2013-11-20 国家海洋局第二海洋研究所 Multi-beam bathymetric chart construction method based on seabed digital depth model feature extraction
CN105894563A (en) * 2016-04-25 2016-08-24 中国电子科技集团公司第二十八研究所 Method for simulating global ocean effect on digital earth

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0933635A (en) * 1995-07-24 1997-02-07 Tokimec Inc Electronic chart display information device
JP2000206107A (en) * 1999-01-18 2000-07-28 Horiba Ltd Water quality-measuring apparatus and water quality display method, and memory medium with water quality display program recorded
US20100284248A1 (en) * 2009-05-11 2010-11-11 Furuno Electric Co., Ltd. Method of displaying underwater detection image and underwater detection device
KR20110008947A (en) * 2009-07-21 2011-01-27 현대중공업 주식회사 Extraction method for depth of water from ecdis to estimate topography of seafloor
CN102289990A (en) * 2011-08-24 2011-12-21 彭认灿 Charted depth annotation representation notation based on character color extension
CN103400405A (en) * 2013-08-01 2013-11-20 国家海洋局第二海洋研究所 Multi-beam bathymetric chart construction method based on seabed digital depth model feature extraction
CN105894563A (en) * 2016-04-25 2016-08-24 中国电子科技集团公司第二十八研究所 Method for simulating global ocean effect on digital earth

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
徐文坤;刘爱超;钱程程;齐共同;: "基于ArcGIS的电子海图显示系统" *
徐文坤;刘爱超;钱程程;齐共同;: "基于ArcGIS的电子海图显示系统", 海洋信息, no. 01 *
李军, 滕惠忠: "海底三维可视化技术及应用", 海洋测绘, no. 04 *
李军,滕惠忠: "海底三维可视化技术及应用" *

Also Published As

Publication number Publication date
CN111243053B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
US4677585A (en) Method for obtaining common mode information and common field attribute information for a plurality of card images
CN110363112B (en) Method and system for checking wiring position of distribution cable
CN110825805A (en) Data visualization method and device
CN105426944A (en) Square lattice anti-counterfeit label group, and method and system for reading square lattice anti-counterfeit label group
US5526447A (en) Batched character image processing
JP2006267228A (en) Raster map retrieving device
CN111243053A (en) Optimized display method based on S52 standard chart water depth symbol
EP2348403B1 (en) Method and system for analyzing a legacy system based on trails through the legacy system
CN115995092A (en) Drawing text information extraction method, device and equipment
CN110457705B (en) Method, device, equipment and storage medium for processing point of interest data
KR20230029206A (en) Apparatus for constructing training data for artificial intelligence based text recognition
JP7334671B2 (en) Theoretical mass table display system
CN117475439A (en) Quick automatic identification method for aircraft instrument rolling numbers based on template matching
JPS61163472A (en) Character recognizing device
JP2740506B2 (en) Image recognition method
JPS61168081A (en) System for implementing character dictionary
CN117291931A (en) Building space segmentation method and system based on maximum inscribed rectangle
CN117291149A (en) Rarely used word decoding method and device, electronic equipment and storage medium
CN115630620A (en) Method and system for collecting and processing engineering cost analysis data
CN114428997A (en) Post-processing method for rapidly calculating relative displacement of a large number of nodes based on NASTRAN result file
JPS63279387A (en) Character recognizing device
CN117494701A (en) Data auditing method based on improved natural language processing
CN112766652A (en) Method and device for generating enterprise event distribution diagram and readable storage medium
CN114880873A (en) Security measure simulation method, device, equipment and medium for relay protection room
CN115563234A (en) Power grid same-tower multi-circuit line map display solution

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant