CN106097413A - The drawing system of multi-scale vector chart data and method for drafting - Google Patents
The drawing system of multi-scale vector chart data and method for drafting Download PDFInfo
- Publication number
- CN106097413A CN106097413A CN201610389447.1A CN201610389447A CN106097413A CN 106097413 A CN106097413 A CN 106097413A CN 201610389447 A CN201610389447 A CN 201610389447A CN 106097413 A CN106097413 A CN 106097413A
- Authority
- CN
- China
- Prior art keywords
- scale
- data
- chart data
- vector chart
- read
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 230000015572 biosynthetic process Effects 0.000 claims abstract description 60
- 238000003786 synthesis reaction Methods 0.000 claims abstract description 47
- 238000010586 diagram Methods 0.000 claims abstract description 42
- 230000002194 synthesizing effect Effects 0.000 claims abstract description 5
- 238000012217 deletion Methods 0.000 claims description 5
- 230000037430 deletion Effects 0.000 claims description 5
- 238000012545 processing Methods 0.000 description 8
- 238000012216 screening Methods 0.000 description 7
- 230000006399 behavior Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004140 cleaning Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000003973 paint Substances 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000004148 unit process Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/40—Filling a planar surface by adding surface attributes, e.g. colour or texture
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention relates to a kind of drawing system and the method for multi-scale vector chart data, this system comprises determining that drawing range cells, for the vector chart data of multi-scale is determined effective range;With described, first picture unit, determines that drawing range cells is connected, for drawing the vector chart data of minimum scale chi;With described, second picture unit, determines that drawing range cells is connected, for drawing the vector chart data of remaining scale in addition to minimum scale chi;And synthesis unit, it is connected with described first picture unit and described second picture unit, for synthesizing base map data and the top diagram data of described second picture unit formation that described first picture unit is formed, forms display image and also shown.Reduce the thing mark drawn needed for minimum scale chi vector chart data, in the case of the picture resource of the system of saving, accelerate the display speed of sea chart.
Description
Technical field
The present invention relates to electronic Chart Display field, refer in particular to the drawing system of a kind of multi-scale vector chart data and paint
Method processed.
Background technology
In existing electronic Chart Display, the vector chart data of multi-scale is needed one by one draw whole arrows
Spirogram is also shown, so makes display mode higher to the requirement of processing system, owing to needing the vectogram drawn more,
The time making electronic Chart Display is long, and speed is slow.
Summary of the invention
It is an object of the invention to overcome the defect of prior art, it is provided that the drafting of a kind of multi-scale vector chart data
System and method for drafting, solve in prior art one by one to draw the time existed when whole vectograms shows long, speed
Spend slow problem.
The technical scheme realizing above-mentioned purpose is:
The invention provides the method for drafting of a kind of multi-scale vector chart data, including:
The indication range of the vector chart data of multi-scale Yu display screen is taken the vector occured simultaneously to form multi-scale
The effective range of chart data;
Vector sea chart by the effective range of the vector chart data of minimum scale chi in multi-scale Yu remaining scale
The effective range of data takes difference set to form the drafting scope of the vector chart data of minimum scale chi;
The drafting scope of the vector chart data according to the minimum scale chi formed carries out picture and processes to form base map
Data, carry out picture according to the effective range of the vector chart data of remaining scale and process to form top diagram data;And
Base map data and top diagram data synthesis are shown image and shown.
Owing to the vector chart data of minimum scale chi is base map, can be covered by the vector chart data of other scales
Lid, the present invention, before picture processes, will remove by other scales in the effective range of the vector chart data of minimum scale chi
Vector chart data cover scope, define drafting scope, draw needed for reducing minimum scale chi vector chart data
Thing mark, save system picture resource in the case of, accelerate the display speed of sea chart.And the vector sea of minimum scale chi
The vector chart data of diagram data and remaining scale carries out parallel drawing, further provides the process time of sea chart, adds
The speed that fast sea chart shows.
Further improvement is that, according to the minimum formed of the method for drafting of multi-scale vector chart data of the present invention
The drafting scope of the vector chart data of scale carries out picture process and includes:
Read first thing mark in the vector chart data of minimum scale chi;
Whether the thing mark that judgement is read is in the range of the drafting of the vector chart data of minimum scale chi, if drawing model
Then the thing mark read is drawn in the first internal memory picture in enclosing;
Judge the thing mark that read be whether minimum scale chi vector chart data in last thing mark, if otherwise reading
Take next thing mark and repeat above-mentioned judgement, if then using draw formation the first internal memory picture as base map data.
Further improvement is that, according to remaining scale of the method for drafting of multi-scale vector chart data of the present invention
The effective range of vector chart data carries out picture process, including:
Read first vectogram in the vector chart data of remaining scale;
Read first thing mark in vectogram;
Whether the thing mark that judgement is read is in the effective range of described vectogram, if in effective range, by acquired
Thing mark draw in the second internal memory picture;
Judge whether the thing mark read is last thing mark in described vectogram, otherwise read next thing mark also
Repeat above-mentioned judgement, if then judging that whether described vectogram is last in the vector chart data of remaining scale
One vectogram, if otherwise continuing read next vectogram and repeat above-mentioned reading thing mark, if then will draw shape
The the second internal memory picture become is as top diagram data.
Further improvement is that of the method for drafting of multi-scale vector chart data of the present invention, when carrying out picture process,
Vector chart data distribution idle core for minimum scale chi processes, and the vector chart data for remaining scale distributes
Another idle core processes.
Further improvement is that of the method for drafting of multi-scale vector chart data of the present invention, by base map data and top figure
Data Synthesis display image, including:
Top diagram data is overlying on base map data and synthesizes display image;
By described top diagram data and described base map data deletion.
Present invention also offers the drawing system of a kind of multi-scale vector chart data, including:
Determine drawing range cells, for the vector chart data of multi-scale is determined effective range, by comparing more
The vector chart data of example chi and the indication range of display screen take to occur simultaneously and form the effective range of multi-scale vector chart data,
By the effective range by the effective range of the vector chart data of minimum scale chi Yu the vector chart data of remaining scale
Take the drafting scope that difference set forms the vector chart data of minimum scale chi;
With described, first picture unit, determines that drawing range cells is connected, for drawing the vector sea chart of minimum scale chi
Data, are drawn by the drafting scope of the described vector chart data determining minimum scale chi that drawing range cells formed
Process forms base map data;
With described, second picture unit, determines that drawing range cells is connected, for drawing remaining in addition to minimum scale chi
The vector chart data of scale, by the described vector chart data determining remaining scale that drawing range cells formed
Effective range carries out picture process and forms top diagram data;And
Synthesis unit, is connected with described first picture unit and described second picture unit, is used for synthesizing described first and draws
The top diagram data that the base map data of figure unit formation and described second picture unit are formed, forms display image and is also shown.
Further improvement is that of the drawing system of multi-scale vector chart data of the present invention, described first picture unit
Including the first read module, the first judge module and the first drafting module;
Described first read module thing mark in the vector chart data sequentially reading minimum scale chi;
Described first judge module is connected with described first read module, for judging that whether the thing mark read is in minimum
In the range of the drafting of the vector chart data of scale, it is additionally operable to judge that whether the thing mark that read is the vector of minimum scale chi
Last thing mark in chart data;
Described first drafting module is connected with described first judge module, for judging to draw at described first judge module
Time in the range of the drafting of the vector chart data that the thing read is marked on minimum scale chi, this thing mark is drawn in the first memory map
In sheet, it is additionally operable to judge to show that read thing is designated as in the vector chart data of minimum scale chi at described first judge module
Last thing timestamp, gives described synthesis unit using the first internal memory picture drawn as base map Data Concurrent.
Further improvement is that of the drawing system of multi-scale vector chart data of the present invention, described second picture unit
Including the second read module, the second judge module and the second drafting module;
Described second read module vectogram in the vector chart data reading remaining scale, is additionally operable to read
Thing mark in described vectogram;
Described second judge module is connected with described second read module, is used for judging that described second read module is read
Thing mark whether in the effective range of vectogram, be additionally operable to judge whether the thing mark that read is last thing in vectogram
Mark, is additionally operable to judge that whether the vectogram that read is last vectogram in the vector chart data of remaining scale;
Described second drafting module is connected with described second judge module, for judging to draw at described second judge module
When the thing read is marked in the effective range of vectogram, the thing mark read is drawn in the second internal memory picture;It is additionally operable to
Judge to show that read thing is designated as in vectogram last thing mark and described read arrow at described second judge module
When spirogram is last vectogram, the second internal memory picture drawing formation as top diagram data and is sent to described synthesis list
Unit.
Further improvement is that of the drawing system of multi-scale vector chart data of the present invention, described first picture unit
Carrying out task binding with an idle core, described second picture unit and another idle core carry out task binding.
Further improvement is that of the drawing system of multi-scale vector chart data of the present invention, described synthesis unit is being incited somebody to action
Top diagram data is overlying on base map data after synthesizing display image, by described top diagram data and described base map data deletion.
Accompanying drawing explanation
Fig. 1 is the system diagram of the drawing system of multi-scale vector chart data of the present invention.
Fig. 2 is the flow chart determining multi-scale vector chart data effective range in the present invention.
Fig. 3 is the flow chart that in the present invention, picture processes.
Fig. 4 is the flow chart that in the present invention, synthesis unit processes.
Detailed description of the invention
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings.
The invention provides drawing system and the method for drafting of multi-scale vector chart data, carry when ship's navigation
The display of supplied for electronic sea chart, is particularly well-suited to the display of the vector chart data of multiple scale.The vectogram of minimum scale chi
Can be covered by the vectogram that scale is big as base map, the present invention is sampled lock to the vector chart data of minimum scale chi
Fixed, remove the sampling that can be covered by large-scale vector chart data, to form drafting scope, when picture processes, to thing
Mark judges, if not in the range of this drafting, thing mark will not be carried out conversion process and be drawn, thus accelerate sea chart
Display speed.Drawing system and method for drafting to multi-scale vector chart data of the present invention are said below in conjunction with the accompanying drawings
Bright.
Refering to shown in Fig. 1, it is shown that the system diagram of the drawing system of multi-scale vector chart data of the present invention.Tie below
Close Fig. 1, the drawing system of multi-scale vector chart data of the present invention is illustrated.
As it is shown in figure 1, the drawing system of multi-scale vector chart data of the present invention includes screening vectogram unit 11, really
Surely draw range cells the 12, first picture unit the 13, second picture unit 14 and synthesis unit 15, screen vectogram unit
More than 11 determine that drafting range cells 12 connects, and determine drafting range cells 12 and the first picture unit 13 and the second picture unit 14
Connecting, the first picture unit 13 and the second picture unit 14 are connected with synthesis unit 15.Screening vectogram unit 11 is for basis
Current scale and central point determine the vectogram currently drawing (needing display), form multi-scale vector chart data and send
Give and determine drafting range cells 12.Determine that drafting range cells 12 is for each vector in multi-scale vector chart data
Figure carries out the determination of effective range, determines the drafting scope of vectogram further according to effective range.First picture unit 13 and second
Picture unit 14 is according to determining that the effective range that drafting range cells 12 determines carries out picture process and forms base map data and top figure
Data.Base map data and top diagram data are synthesized display image and are shown by synthesis unit 15 again.Carrying out picture process
Before, the effective range determining that drafting range cells 12 determines vectogram is utilized, by the vector chart data of minimum scale chi
The region covered by remaining scale vector chart data crops, it is to avoid the waste that picture processes, and has saved system money
Source, and improve the display speed of sea chart.
Screen central point and scale that vectogram unit 11 will show according to current sea chart, preserve from current system
All vectograms in, select suitably several the vectogram source numbers as this complete sea chart drawn that can fill screen
According to, and proportionally chi order from big to small preserves.Screening vectogram unit 11 is the sea chart display behaviour according to user
Making instruction and determine each vectogram, form multi-scale vector chart data, each scale vector chart data is one
Individual vectogram, each scale vector chart data is ranked up protecting by screening vectogram unit 11 according to the size of scale
Deposit.
Determine that drawing range cells 12 receives the multi-scale vector chart data that screening vectogram unit 11 is formed, use
In the determination that the vector chart data of multi-scale is carried out effective range.This determines that drawing range cells 12 is by by many ratios
The vector chart data of chi and the indication range of display screen take to occur simultaneously and form the effective range of multi-scale vector chart data, logical
Cross and the effective range of the effective range of the vector chart data of minimum scale chi with the vector chart data of remaining scale is taken
Difference set forms the drafting scope of vector chart data of minimum scale chi, namely at the vector chart data of minimum scale chi
In effective range, the effective range of the vector chart data of remaining scale is removed, be the formation of drafting scope.It is preferred that should
Determine that the order that drawing range cells 12 preserves according to screening vectogram unit 11 is determined scope, first determine large-scale
The effective range of vector chart data, the effective range of the vector chart data of this scale is land thing mark and ocean thing mark institute
The common factor of the polygon surrounded and current viewing area, for the effective range of the vectogram of current sea chart, and preserves temporarily
Current effective range, when checking last vectogram, i.e. the vector chart data of minimum scale chi, this vectogram
The common factor of effective range current vector to be taken figure and viewing area, also will by this scope with interim preserve all of remaining
The effective range of scale vector chart data takes difference set and finally determines the drafting scope of this vectogram.Specifically determine effective model
The flow process enclosed is: as in figure 2 it is shown, the sum setting currently selected vectogram is i as n, the vectogram being presently processing,
Initializing i is first sea chart.Reading i-th vectogram, now i is 1, and first vectogram is the vector sea of maximum ratio chi
Diagram data;Then set the coverage of this vectogram and the effective range for this vectogram of occuring simultaneously of indication range, show model
Enclosing is the scope of display screen, and the common factor so taken is exactly the scope that this vectogram finally needs display;Then by effective range
Preserve temporarily;Then judge whether be currently (n-1)th vectogram, if it is not, sets i as next vectogram, continuation
Read vectogram and set effective range, if so, by the covering model of n-th vectogram (the vector chart data of minimum scale chi)
The common factor enclosing the coverage with screen is set to effective range, by the effective range of n-th vectogram and the interim institute preserved
Some effective ranges take the difference set drafting scope as this n-th vectogram.
First picture unit 13, for drawing the vector chart data of minimum scale chi, is determined by drawing range cells 12
The drafting scope of the vector chart data of the minimum scale chi formed carries out picture process and forms base map data.This first picture is single
Unit 13 includes the first read module, the first judge module and the first drafting module, the first read module and the first judge module
Connecting, the first judge module and the first drafting module connect, and the first read module therein is for sequentially reading minimum scale chi
Vector chart data in thing mark, the first judge module is for judging that whether thing mark that the first read module read is in minimum
In the range of the drafting of the vector chart data of scale, it is additionally operable to judge that whether the thing mark that read is the vector of minimum scale chi
Last thing mark in chart data, the first drafting module is for carrying out drawing behaviour according to the judged result of the first judge module
Make, in the range of the first judge module judges to draw the drafting of vector chart data that read thing is marked on minimum scale chi
Time, this thing mark is drawn in the first internal memory picture, judge to show that read thing is designated as minimum scale at the first judge module
Last thing timestamp in the vector chart data of chi, gives conjunction using the first internal memory picture drawn as base map Data Concurrent
Become unit.
Second picture unit 14 is for drawing the vector chart data of remaining scale in addition to minimum scale chi, by really
The effective range of the vector chart data determining remaining scale that drawing range cells 12 is formed carries out picture process and forms top figure
Data.This second picture unit 14 includes the second read module, the second judge module and the second drafting module, and second reads mould
Block and the second judge module connect, and the second judge module and the second drafting module connect, and the second read module therein is used for reading
Take the vectogram in the vector chart data of remaining scale, be additionally operable to the thing mark reading in each vectogram;Second judges mould
The thing mark that block is read for judging the second read module, whether in the effective range of vectogram, is additionally operable to what judgement was read
Whether thing mark is last thing mark in vectogram, is additionally operable to judge that whether the vectogram that read is the vector of remaining scale
Last vectogram in chart data;Second drafting module is for drawing according to the judged result of the second judge module
Operation, when the second judge module judges to show that read thing is marked in the effective range of vectogram, the thing mark that will be read
Draw in the second internal memory picture, be additionally operable to judge to show that read thing is designated as in vectogram last at the second judge module
When individual thing mark and the vectogram read are last vectogram, using the second internal memory picture drawing formation as pushing up diagram data
And it is sent to synthesis unit.
First picture unit 13 and the second picture unit 14 use the mode of parallel processing, wherein the first picture unit 13 with
One idle core carries out task binding, and the second picture unit 14 carries out task binding, by two free time with another idle core
Interior verification first draw unit 13 and the second picture unit 14 drafting operation carry out parallel processing, it is possible to increase electronic chart show
The processing speed shown.Below in conjunction with Fig. 3, the handling process of the first picture unit 13 and the second picture unit 14 is illustrated.?
After determining the respective effective range of all vectograms, by the drafting task of vectogram minimum for all vectogram medium scales
Distribute to the first picture unit 13 process, the drafting task of the vectogram of remaining ratio is distributed to the second picture unit 14
Process.After determining that drawing range cells 12 needs the effective range of the vectogram drawn to determine each, notice
Synthesis unit 15 is prepared, and system can set an idle kernel and carry out task binding with synthesis unit 15.Determine drafting
The vectogram of minimum scale chi is sent to the first picture unit 13 by range cells 12, and system can will be bound in synthesis unit 15
Kernel and the first picture unit 13 carry out task binding, and the drafting of the vectogram that the first picture unit 13 carries out minimum scale chi is appointed
Business.Determine that all vectograms in addition to minimum scale chi are sent to the second picture unit 14, system by drafting range cells 12
Can set an idle core and carry out task binding with this second picture unit 14, the second picture unit 14 carries out remaining scale
Drafting task.First picture unit 13 and the second picture unit 14 also will process the vectogram of minimum scale chi and remaining compares
The drafting task of the vectogram of example chi, the first picture unit 13 reads first thing mark in the vectogram of minimum scale chi, so
Rear judge current thing mark whether in the range of drawing, if; the first internal memory picture would be drawn this thing mark, if just not putting
Abandon and draw and perform as a next step it is determined that whether current thing mark is last thing mark in this vectogram, if not last
Thing mark then continue to read next thing mark continuing judge this thing mark whether in the range of drawing, if last thing mark then table
Showing that this vectorgraph charting completes, using the first current internal memory picture as base map data, the first picture unit 13 is at drawing process
In, non-drafting scope is processed into transparent region, draws the first internal memory picture formed and be sent to synthesis list as base map data
Unit 15.Second picture unit 14 draws the vectogram of remaining scale in order, first reads a vectogram, and then reading should
First thing mark in vectogram, it is judged that current thing mark whether in effective range, if; would retouch in the second internal memory picture
Drawing this thing mark, if not existing, abandoning drawing and performing as a next step it is determined that whether current thing mark is last thing in this vectogram
Mark, if not last then continues read next thing mark and judge whether in effective range, if at last thing mark
Then represent that this vectogram has been drawn, then judge whether this vectogram is last vectogram, be not that last is vowed
Spirogram then continues to read next vectogram, then reads the thing mark in this vectogram and carries out judging to be drawn until institute again
Vectogram is had all to draw, if last vectogram then shows that all vectograms have all been drawn, now by second
Deposit picture as top diagram data, the second picture unit 14 formed top diagram data time, by non-effective scope in the second internal memory picture
Regional processing become transparent region, then this top diagram data is sent to synthesis unit 15.
Synthesis unit 15 is formed for the base map data and the second picture unit 14 synthesizing the first picture unit 13 formation
Top diagram data, forms display image and is shown.This synthesis unit the last 15 top diagram data is overlying on base map data and synthesizes
Display image, then will push up diagram data and base map data deletion with releasing memory.Synthesis unit 15 includes two flags
With two internal memory image cursor, flag that flag completed by two flag respectively base maps and top figure is completed, use
In identifying whether each current vectogram completes, two internal memory image cursor record top diagram data and base map number respectively
According to, the i.e. first internal memory picture and the memory address at the second internal memory picture place, read the first internal memory picture by memory address
With the second internal memory picture.Synthesis unit 15 after operation, waits touching of the first picture unit 13 and the second picture unit 14 always
Send out to carry out synthesis process, as shown in Figure 4, below the handling process of synthesis unit 15 is illustrated.Synthesis unit 15 is created
After building operation, initializing, flag of being completed by base map and top figure flag of completing is set to be not fully complete, by two
Deposit image cursor and be set to sky.Then the queue that waits for the arrival of news transmission arranges message, when the first picture unit 13 completes base map,
Flag of being completed by base map is set to complete, and is stored in by the memory address (i.e. base map data) of the first internal memory picture
In corresponding internal memory image cursor, now trigger synthesis unit 15 check another flag whether for completing, if being not fully complete,
Continuing waiting for, when the second picture unit 14 completes top figure, flag of being completed by top figure is set to complete, and will
The memory address (i.e. pushing up diagram data) of the second internal memory picture is stored in the internal memory image cursor of correspondence, now triggers synthesis unit
15 check another flag whether for completing, now two flags are and complete, synthesis unit 15 will according to internal memory ground
Location reads the first internal memory picture as base map and the second internal memory picture as top figure, then according to base map exists at lower top figure
On order synthesize display image, and shown on a display screen, by the first internal memory picture and the second memory map after display
Sheet is deleted cleaning.
The speed-increasing effect of the present invention is, when reading the vector chart data of multi-scale, determines the vector of minimum scale
The effective range of chart data, and the scope covered by remaining scale vector chart data in this effective range is gone divided by shape
Become drafting scope, decrease unnecessary sea chart thing target and process, saved the picture resource of operating system, accelerated sea simultaneously
The display of figure.
Below in conjunction with the accompanying drawings the method for drafting of multi-scale vector chart data of the present invention is illustrated.
The method for drafting of multi-scale vector chart data of the present invention comprises the steps:
Determine vectogram to be drawn according to current scale and centrad, i.e. filter out the many ratios that need to draw process
Example chi vector chart data;The effective range of each vectogram is determined, by multi-scale according to multi-scale vector chart data
Vector chart data takes the common factor effective range with the vector chart data of formation multi-scale with the indication range of display screen, its
In for the effective range of the vector chart data descending most scale, then the vector sea chart to this effective range Yu remaining scale
The effective range of data takes the difference set drafting scope with the vector chart data of formation minimum scale chi, due to minimum scale chi
Vector chart data, can be covered by the vector chart data of remaining scale as top figure as base map when display, so
Time the effective range of the vector sea chart of minimum scale will be cut out the effective range of vector chart data that remove remaining scale, will not
Affect the display effect that electronic chart is final, processing speed and the display speed of picture can be promoted.According to the minimum ratio formed
The drafting scope of the vector chart data of example chi carries out picture and processes to form base map data, simultaneously according to the arrow of remaining scale
The effective range of amount chart data carries out picture and processes to form top diagram data, by base map data and top diagram data synthesis display figure
Picture is also shown.
When carrying out the screening of vectogram, the central point that will show according to current sea chart and scale, from current system
In all of vectogram of middle preservation, select the complete sea that suitably several the vectograms that can fill screen are drawn as this
The source data of figure, and proportionally chi order from big to small preserves.
As in figure 2 it is shown, below the process step determining multi-scale vector chart data effective range is illustrated.
Determine the effective range of every vectogram, be determined with scale order from big to small, it is assumed that vectogram
Quantity is n, and initializing i is 1, determines that the step of scope includes:
Performing step S21, read i-th vectogram, now i is 1, reads the vector sea of maximum ratio chi in multi-scale
Diagram data, then performs step S22.
Perform step S22, set the coverage of i-th vectogram and the effective model for this figure that occurs simultaneously of indication range
Enclose, the polygon that the effective range of the vectogram of this scale is land thing mark and ocean thing mark is surrounded and current viewing area
The common factor in territory.Then step S23 is performed.
Perform step S23, preserve effective range temporarily, the effective range obtained in step S22 is preserved temporarily.Connect
Execution step S24.
Perform step S24, it is judged that whether be currently (n-1)th vectogram, if then performing step S25, if otherwise performing
Step S27.
Perform step S25, be effective range by the common factor of the coverage of n-th vectogram Yu the coverage of screen,
Last vectogram is the vector sea chart of minimum scale chi, according to the coverage of the vector chart data of this minimum scale chi
Take common factor with the realistic ranges of screen and form effective range, then perform step S26.
Perform step S26, the effective range of n-th vectogram is taken difference set as this figure with the interim effective range preserved
Drafting scope, the effective range of minimum scale chi and the effective range of remaining scale will take difference set, as this minimum ratio
The drafting scope of example chi.
Perform step S27, sets i as next vectogram, by i+1, then execution step S21.
As it is shown on figure 3, the flow process processed picture below illustrates.
Picture processing procedure includes:
Perform step S301, determine the effective range of vectogram, each vector in the vector chart data of multi-scale
After the effective range of figure all determines, then perform step S302.
Performing step S302, notice synthesis unit is prepared, and sets an idle kernel and ties up with synthesis unit
Fixed, idle kernel is bound, to perform the task of this synthesis unit by system with synthesis unit.Then step is performed
S303。
Perform step S303, obtain scale minimum and set the kernel identical with synthesis unit and enter with this task
Row binding, owing to the synthetic operation of synthesis unit just need to perform after picture process terminates, therefore by the kernel of this free time and picture
Figure task and synthesis task are bound, and do not interfere with the efficiency of process.Then step S304 and step S305 are performed.
Performing step S304, the picture task setting an idle kernel and other scale vectograms remaining is carried out
Binding, utilizes the picture of the idle kernel processes of another one all vectograms in addition to the vectogram of minimum scale chi to appoint
Business so that two kernels can carry out the execution of picture task simultaneously.Then step S312 is performed.
Perform step S305, start picture minimum scale chi vectogram, then perform step S306.
Perform step S306, read first thing mark in this vectogram, then perform step S307.
Perform step S307, it is judged that current thing mark is whether in the range of drawing, if then performing step S308, if otherwise holding
Row step S309.
Perform step S308, process and draw in the first internal memory picture this thing mark, then perform step S309.
Perform step S309, it is judged that whether current thing mark is last, if then performing step S311, if otherwise performing
Step S310.
Perform step S310, read next thing mark, reading the thing timestamp of vectogram, sequentially the thing mark of vectogram is being entered
Row reads.Then step S307 is performed.
Perform step S311, current first internal memory picture is passed to synthesis unit to carry out synthesis behaviour as base map data
Make.
Perform step S312, start remaining scale vectogram of picture, then perform step S313.
Perform step S313, read first vectogram, then perform step S314.
Perform step S314, read first thing mark in this vectogram, then perform step S315.
Perform step S315, it is judged that current thing mark is whether in effective range, if then performing step S316, if otherwise holding
Row step S317.
Perform step S316, process and draw in the second internal memory picture this thing mark, then perform step S317.
Perform step S317, it is judged that whether current thing mark is last, if then performing step S318, if otherwise performing
Step S319.
Perform step S318, read next thing mark, then perform step S315.
Perform step S319, it is judged that whether this vectogram is last, if then performing step S321, if otherwise performing
Step S320.
Perform step S320, read next vectogram, then perform step S314.
Perform step S321, the second current internal memory picture is passed to synthesis unit, to close as top diagram data
Become operation.
As shown in Figure 4, below the handling process of composograph is illustrated.
The process of composograph includes:
Perform step S41, drafting base map is set and completes flag and draw figure complement mark position, top for being not fully complete and arranging
Two memory pointer are empty, complete flag by base map and top figure completes flag and knows the drafting knot of top figure and base map
Really, read, by memory pointer, top figure and the base map that specified memory address is deposited.Then step S42 is performed.
Performing step S42, the queue that waits for the arrival of news transmission arranges message, completes flag at drafting base map complete with drafting top figure
When becoming flag bit to be modified, the execution that message is set to trigger synthetic operation can be formed, then perform step S43.
Performing step S43, picture unit arranges the internal memory that some flag has been and has arranged corresponding internal memory picture
Address, after base map is completed or top figure is completed, can arrange correspondence flag for complete, and will deposit base map or
The address of top figure is stored in the memory pointer of correspondence.Then step S44 is performed.
Performing step S44, checking that another flag, whether for completing, if completing, performs step S45, if being not fully complete
Then perform step S41.
Perform step S45, base map and top figure at the upper order final image of synthesis and are shown at lower top figure according to base map
Show in viewing area, read internal memory picture according to the address in memory pointer, then top diagram data is overlying on base map data
Carry out synthesis process.Then step S46 is performed.
Perform the memory map picture of step S46, cleaning top figure and base map, will top diagram data and base map data deletion.
The picture of the present invention is processed and can be achieved by picture unit, and the process of composograph can be single by synthesis
Unit is achieved.
Being described in detail the present invention above in association with accompanying drawing embodiment, those skilled in the art can be according to upper
State and bright the present invention is made many variations example.Thus, some details in embodiment should not constitute limitation of the invention, this
Invent the scope that defines using appended claims as protection scope of the present invention.
Claims (10)
1. the method for drafting of a multi-scale vector chart data, it is characterised in that including:
The indication range of the vector chart data of multi-scale Yu display screen is taken the vector sea chart occured simultaneously to form multi-scale
The effective range of data;
Vector chart data by the effective range of the vector chart data of minimum scale chi in multi-scale Yu remaining scale
Effective range take difference set to form the drafting scope of vector chart data of minimum scale chi;
The drafting scope of the vector chart data according to the minimum scale chi formed carries out picture and processes to form base map data,
The effective range of the vector chart data according to remaining scale carries out picture and processes to form top diagram data;And
Base map data and top diagram data synthesis are shown image and shown.
2. the method for drafting of multi-scale vector chart data as claimed in claim 1, it is characterised in that according to formed
The drafting scope of the vector chart data of minimum scale chi carries out picture process and includes:
Read first thing mark in the vector chart data of minimum scale chi;
Whether the thing mark that judgement is read is in the range of the drafting of the vector chart data of minimum scale chi, if in the range of drawing
Then the thing mark read is drawn in the first internal memory picture;
Judge the thing mark that read be whether minimum scale chi vector chart data in last thing mark, if under otherwise reading
One thing mark also repeats above-mentioned judgement, if then using draw formation the first internal memory picture as base map data.
3. the method for drafting of multi-scale vector chart data as claimed in claim 1 or 2, it is characterised in that according to remaining
The effective range of the vector chart data of scale carries out picture process, including:
Read first vectogram in the vector chart data of remaining scale;
Read first thing mark in vectogram;
Whether the thing mark that judgement is read is in the effective range of described vectogram, if in effective range, by acquired thing
Mark is drawn in the second internal memory picture;
Judge whether the thing mark read is last thing mark in described vectogram, otherwise read next thing mark and repeat
Carry out above-mentioned judgement, if then judging that whether described vectogram is last in the vector chart data of remaining scale
Vectogram, if otherwise continuing read next vectogram and repeat above-mentioned reading thing mark, if then will draw formation
Second internal memory picture is as top diagram data.
4. the method for drafting of multi-scale vector chart data as claimed in claim 1, it is characterised in that carry out picture process
Time, the vector chart data distribution idle core for minimum scale chi processes, for the vector chart data of remaining scale
Distribute another idle core to process.
5. the method for drafting of multi-scale vector chart data as claimed in claim 1, it is characterised in that by base map data and
Top diagram data synthesis display image, including:
Top diagram data is overlying on base map data and synthesizes display image;
By described top diagram data and described base map data deletion.
6. the drawing system of a multi-scale vector chart data, it is characterised in that including:
Determine drawing range cells, for the vector chart data of multi-scale is determined effective range, by by multi-scale
The indication range of vector chart data and display screen take to occur simultaneously and form the effective range of multi-scale vector chart data, pass through
The effective range of the effective range of the vector chart data of minimum scale chi Yu the vector chart data of remaining scale is taken difference
Collection forms the drafting scope of the vector chart data of minimum scale chi;
With described, first picture unit, determines that drawing range cells is connected, for drawing the vector chart data of minimum scale chi,
Picture process is carried out by the drafting scope of the described vector chart data determining minimum scale chi that drawing range cells formed
Form base map data;
With described, second picture unit, determines that drawing range cells is connected, for drawing remaining ratio in addition to minimum scale chi
The vector chart data of chi, effective by the described vector chart data determining remaining scale that drawing range cells formed
Scope carries out picture process and forms top diagram data;And
Synthesis unit, is connected with described first picture unit and described second picture unit, is used for synthesizing described first picture single
The top diagram data that the base map data of unit's formation and described second picture unit are formed, forms display image and is also shown.
7. the drawing system of multi-scale vector chart data as claimed in claim 6, it is characterised in that described first draws
Unit includes the first read module, the first judge module and the first drafting module;
Described first read module thing mark in the vector chart data sequentially reading minimum scale chi;
Described first judge module is connected with described first read module, for judging that whether the thing mark read is at minimum scale
In the range of the drafting of the vector chart data of chi, it is additionally operable to judge that whether the thing mark that read is the vector sea chart of minimum scale chi
Last thing mark in data;
Described first drafting module is connected with described first judge module, is read for judging to draw at described first judge module
Time in the range of the drafting of the vector chart data that the thing taken is marked on minimum scale chi, this thing mark is drawn in the first internal memory picture
In, it is additionally operable to judge to show that read thing is designated as in the vector chart data of minimum scale chi at described first judge module
Later thing timestamp, gives described synthesis unit using the first internal memory picture drawn as base map Data Concurrent.
The drawing system of multi-scale vector chart data the most as claimed in claims 6 or 7, it is characterised in that described second
Picture unit includes the second read module, the second judge module and the second drafting module;
Described second read module vectogram in the vector chart data reading remaining scale, is additionally operable to reading described
Thing mark in vectogram;
Described second judge module is connected with described second read module, for judging the thing that described second read module is read
Whether mark is in the effective range of vectogram, and whether the thing mark being additionally operable to judge to be read is last thing mark in vectogram,
It is additionally operable to judge that whether the vectogram that read is last vectogram in the vector chart data of remaining scale;
Described second drafting module is connected with described second judge module, is read for judging to draw at described second judge module
When the thing taken is marked in the effective range of vectogram, the thing mark read is drawn in the second internal memory picture;It is additionally operable in institute
State the second judge module to judge to show that read thing is designated as in vectogram last thing mark and described read vectogram
During for last vectogram, the second internal memory picture drawing formation as top diagram data and is sent to described synthesis unit.
9. the drawing system of multi-scale vector chart data as claimed in claim 6, it is characterised in that described first draws
Unit and an idle core carry out task binding, and described second picture unit and another idle core carry out task binding.
10. the drawing system of multi-scale vector chart data as claimed in claim 6, it is characterised in that described synthesis list
Unit shows after image, by described top diagram data and described base map data being overlying on top diagram data on base map data to synthesize
Delete.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610389447.1A CN106097413A (en) | 2016-06-03 | 2016-06-03 | The drawing system of multi-scale vector chart data and method for drafting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610389447.1A CN106097413A (en) | 2016-06-03 | 2016-06-03 | The drawing system of multi-scale vector chart data and method for drafting |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106097413A true CN106097413A (en) | 2016-11-09 |
Family
ID=57447180
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610389447.1A Pending CN106097413A (en) | 2016-06-03 | 2016-06-03 | The drawing system of multi-scale vector chart data and method for drafting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106097413A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109118557A (en) * | 2018-08-08 | 2019-01-01 | 中国石油天然气集团有限公司 | The method for drafting and its device of oil well two-dimensional cross section |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1503347A3 (en) * | 2003-08-01 | 2006-05-24 | Sony Corporation | Map display system, map data processing apparatus, map display apparatus, and map display method |
CN101354255A (en) * | 2007-07-27 | 2009-01-28 | 佛山市顺德区顺达电脑厂有限公司 | System and method for displaying electronic map |
CN101551252A (en) * | 2009-05-22 | 2009-10-07 | 四川长虹电器股份有限公司 | Method for vector chart making and rapid loading display |
CN102646409A (en) * | 2012-02-22 | 2012-08-22 | 中国人民解放军92859部队 | Automatic dispatching display method for global multi-granularity electronic charts |
CN103021259A (en) * | 2012-12-11 | 2013-04-03 | 广东威创视讯科技股份有限公司 | Map moving rendering method and system |
CN104182498A (en) * | 2014-08-15 | 2014-12-03 | 成都天奥信息科技有限公司 | Electronic chart engine under Android platform and electronic chart display method without time delay under Android platform |
CN105373538A (en) * | 2014-08-19 | 2016-03-02 | 北京协进科技发展有限公司 | Method and device for determining display levels of polygonal objects |
-
2016
- 2016-06-03 CN CN201610389447.1A patent/CN106097413A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1503347A3 (en) * | 2003-08-01 | 2006-05-24 | Sony Corporation | Map display system, map data processing apparatus, map display apparatus, and map display method |
CN101354255A (en) * | 2007-07-27 | 2009-01-28 | 佛山市顺德区顺达电脑厂有限公司 | System and method for displaying electronic map |
CN101551252A (en) * | 2009-05-22 | 2009-10-07 | 四川长虹电器股份有限公司 | Method for vector chart making and rapid loading display |
CN102646409A (en) * | 2012-02-22 | 2012-08-22 | 中国人民解放军92859部队 | Automatic dispatching display method for global multi-granularity electronic charts |
CN103021259A (en) * | 2012-12-11 | 2013-04-03 | 广东威创视讯科技股份有限公司 | Map moving rendering method and system |
CN104182498A (en) * | 2014-08-15 | 2014-12-03 | 成都天奥信息科技有限公司 | Electronic chart engine under Android platform and electronic chart display method without time delay under Android platform |
CN105373538A (en) * | 2014-08-19 | 2016-03-02 | 北京协进科技发展有限公司 | Method and device for determining display levels of polygonal objects |
Non-Patent Citations (3)
Title |
---|
刘灿由等: "基于S-101的全球多尺度电子航海图调显方法", 《测绘科学技术学报》 * |
李改肖等: "移动平台下栅格海图数据快速显示方法研究", 《海洋测绘》 * |
陈维琨等: "基于S52 的电子海图显示优化", 《软件导刊》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109118557A (en) * | 2018-08-08 | 2019-01-01 | 中国石油天然气集团有限公司 | The method for drafting and its device of oil well two-dimensional cross section |
CN109118557B (en) * | 2018-08-08 | 2023-06-30 | 中国石油天然气集团有限公司 | Drawing method and device for two-dimensional profile of oil well |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TW564346B (en) | Memory device | |
CN109901838A (en) | Front end development approach, device, equipment and storage medium based on modularization | |
CN110706314B (en) | Element layout method and device, electronic equipment and readable storage medium | |
CN101719335B (en) | Grid picture electronic map for geographic information system | |
CN109603155A (en) | Merge acquisition methods, device, storage medium, processor and the terminal of textures | |
EP4343518A1 (en) | Data interaction method and apparatus, device, and storage medium | |
JP2003337041A (en) | Map display system, method for displaying map and program | |
CN102693674B (en) | Image output apparatus and image output control method | |
CN107657051A (en) | A kind of generation method of picture tag, terminal device and storage medium | |
CN108363730A (en) | A kind of content recommendation method, system and terminal device | |
CN109150700A (en) | A kind of method and device of data acquisition | |
CN105868289A (en) | Multimedia courseware generating method and apparatus | |
CN103885767B (en) | System and method used for geographical area correlated websites | |
CN106327429A (en) | Picture synthesis method and device and terminal equipment | |
CN105955996A (en) | Image processing method and device | |
CN106097413A (en) | The drawing system of multi-scale vector chart data and method for drafting | |
CN110019201A (en) | A kind of method, apparatus and system generating structural data | |
CN102270179A (en) | Data storing and processing method and system for CAD (Computer Assisted Drafting) system based on fragments | |
CN104699850B (en) | The processing method and processing device of three-dimensional geographic information | |
CN103164340B (en) | The storage method and device of object, terminal | |
JPS6136868A (en) | Information retriever | |
CN110704051B (en) | Unity interface data binding method | |
CN105518790B (en) | The method and device of data write-in | |
CN113505188A (en) | Big data-based urban map mapping updating system and method | |
CN101180605A (en) | Data presentation device, data presentation program and data presentation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161109 |