The application be on November 08th, 2011 applying date, application No. is: 201110350609.8, denomination of invention are as follows: one
The divisional application of the processing method and processing device of kind vector data.
Summary of the invention
In view of this, the present invention provides a kind of processing method and processing device of vector data.Its concrete scheme is as follows:
A kind of processing method of vector data, comprising:
Obtain the coordinate points of vector data;
The resolution ratio labelled amount of vector data minimum data tissue unit is generated according to the coordinate points of the vector data.
A kind of method of vector data abbreviation, comprising:
Determine the resolution ratio reference point for vector data described in abbreviation;
Resolution ratio labelled amount corresponding to first coordinate points and this coordinate points of vector data is chosen as currently wait locate
Manage coordinate points and currently resolution ratio labelled amount to be judged:
It is described for vector data described in abbreviation to judge whether the resolution ratio labelled amount currently to be judged is less than or equal to
Resolution ratio reference point, if so, currently pending coordinate points are added to coordinate point set;
Judge whether the currently pending coordinate points are the last one coordinate points in the coordinate points of the vector data,
If it is not, then performing the next step suddenly, if so, executing using the coordinate points in the coordinate point set as the vector data abbreviation
Data afterwards, and end step;
Next coordinate points in vector data are chosen as currently pending coordinate points, and are obtained described currently pending
The corresponding resolution ratio labelled amount of coordinate points judges described currently wait judge as currently resolution ratio labelled amount to be judged, return execution
Whether resolution ratio labelled amount is less than or equal to the resolution ratio reference point step for vector data described in abbreviation;
Using the coordinate points in the coordinate point set as the data after the vector data abbreviation, and terminate.
A kind of method that vector data is drawn, comprising:
Obtain the view control parameter of the view window of display vector data;
View window width ViewWidth and height according to the view control parameter and vector data as reference
ViewHeight calculates the resolution ratio labelled amount that vector data is shown in the view window determined by the view control parameter
ResolutionLabel;
The resolution ratio labelled amount that the vector data is shown in the view window determined by the view control parameter
ResolutionLabel carries out abbreviation to the vector data as the resolution ratio reference point of vector data described in abbreviation;
Vector data after abbreviation is drawn in the view window using drawing algorithm.
A kind of selection method of vector data, comprising:
It obtains and records range of choice and alternative condition;
The vector data shown in view window is carried out at selection according to the range of choice and alternative condition
Reason;
After the processing carried out to the vector data chosen has been determined, then according to the range of choice and selector bar
Part come choose it is all meet choose the vector data of condition.
A kind of method that vector data spatial relationship calculates, comprising:
Low resolution vector data corresponding to original vector data to the spatial relationship of being calculated carries out spatial relationship
It calculates, determines between original vector data and do not have certain spatial relationship with certain spatial relationship, certainly certainly, may have
Certain spatial relationship;
To the vector data that there may be certain spatial relationship, carry out analysing whether that there is certain using original vector data
Spatial relationship.
A kind of method of vector data editor, comprising:
Obtain and record the alternative condition that selection vector data is edited;
According to the alternative condition to the vector for meeting alternative condition in the vector data shown in view window
The object to be operated that data are operated as editing and processing;
After the editing and processing carried out to the vector data chosen has been determined, acquisition refers to the editor of vector data
Enable and edit parameter;
All vector datas for meeting and choosing condition are chosen according to the alternative condition, to it is described it is all meet choose item
The vector data of part according to the edit instruction is and edits parameter and edit to vector data.
A kind of method of vector data progressive transmission, comprising:
When needing to request incremental data, incremental data request is sent, includes control parameter in the request;
Receive the increment obtained after being analyzed according to the resolution ratio labelled amount of the view control parameter and vector data
Data.
A kind of vector data progressive transmission method, comprising:
The incremental data request that request transmitting terminal is sent is received, includes control parameter in the incremental data request;
Resolution ratio labelled amount according to the view control parameter and vector data for requesting to include carries out vector data
Analysis processing determines that the data for meeting increment condition in vector data are incremental data;
The incremental data is sent to the request transmitting terminal.
A kind of processing unit of vector data, comprising:
Coordinate points acquiring unit, for obtaining the coordinate points of vector data;
Generation unit generates point of vector data minimum data tissue unit for the coordinate points according to the vector data
Resolution labelled amount.
A kind of vector data abbreviation device, comprising:
First determination unit, for determining the resolution ratio reference point for vector data described in abbreviation;
First selection unit, for choosing resolution ratio mark corresponding to first coordinate points and this coordinate points of vector data
The amount of showing resolution ratio labelled amount to be judged as currently pending coordinate points and currently:
First judging unit, for judging whether the resolution ratio labelled amount currently to be judged is less than or equal to described be used for
The resolution ratio reference point of vector data described in abbreviation, if so, currently pending coordinate points are added to coordinate point set;
Second judgment unit, for judging whether the currently pending coordinate points are in the coordinate points of the vector data
The last one coordinate points the coordinate points in the coordinate point set are made if so, executing if it is not, then performing the next step rapid
For the data after the vector data abbreviation, and end step;
Second selection unit, for choosing next coordinate points in vector data as currently pending coordinate points, and
The corresponding resolution ratio labelled amount of the currently pending coordinate points is obtained as currently resolution ratio labelled amount to be judged, returns and executes
Judge whether the resolution ratio labelled amount currently to be judged is less than or equal to the resolution ratio for vector data described in abbreviation
Reference point step;
Second determination unit, for using the coordinate points in the coordinate point set as the number after the vector data abbreviation
According to, and terminate.
A kind of vector data drawing apparatus, comprising:
Parameter acquiring unit, the view control parameter of the view window for obtaining display vector data;
Computing unit, for the view window width according to the view control parameter and vector data as reference
ViewWidth and height ViewHeight calculates vector data and shows in the view window determined by the view control parameter
Resolution ratio labelled amount ResolutionLabel;
Abbreviation unit, for show the vector data in the view window determined by the view control parameter
Resolution ratio labelled amount ResolutionLabel as vector data described in abbreviation resolution ratio reference point to the vector data into
Row abbreviation;
Drawing unit, for drawing the vector data after abbreviation in the view window using drawing algorithm.
A kind of selection device of vector data, comprising:
Range of choice and condition acquiring unit, for obtaining and recording range of choice and alternative condition;
Select processing unit, for according to the range of choice and alternative condition to the arrow shown in view window
Amount data carry out selection processing;
Selected cell, for after the processing carried out to the vector data chosen has been determined, then according to the choosing
Select range and alternative condition choose it is all meet choose the vector data of condition.
A kind of vector data spatial relationship computing device, comprising:
Spatial relationship determination unit, for low resolution corresponding to the original vector data to the spatial relationship of being calculated
Vector data carries out spatial relationship calculating, and determining between original vector data has certain spatial relationship certainly, do not have certainly
Certain spatial relationship may have certain spatial relationship;
Analytical unit, for being divided using original vector data to the vector data that may have certain spatial relationship
Whether analysis has certain spatial relationship.
A kind of vector data editing device, comprising:
Recording unit is obtained, the alternative condition edited for obtaining and recording selection vector data;
Selecting unit, for according to the alternative condition to meeting choosing in the vector data shown in view window
Select the object to be operated that the vector data of condition is operated as editing and processing;
Edit instruction and editor's parameter acquiring unit, for the volume carried out to the vector data chosen to be determined
After collecting processing, the edit instruction and editor's parameter to vector data are obtained;
Edit cell, for chosen according to the alternative condition it is all meet choose the vector data of condition, to described
It is all meet choose the vector data of condition according to the edit instruction to be and edit parameter and edit to vector data.
A kind of vector data progressive transmission device, comprising:
Incremental data request transmitting unit, it is described to ask for when needing to request incremental data, sending incremental data request
It include control parameter in asking;
Incremental data receiving unit, for receiving the resolution ratio labelled amount according to the view control parameter and vector data
The incremental data obtained after being analyzed.
A kind of vector data progressive transmission device, comprising:
Incremental data request reception unit, the incremental data request sent for receiving request transmitting terminal, the incremental number
According in request include control parameter;
Analysis and processing unit, for the resolution ratio mark according to the view control parameter and vector data for requesting to include
Amount is analyzed and processed vector data, determines that the data for meeting increment condition in vector data are incremental data;
Transmission unit, for sending the incremental data to the request transmitting terminal.
It can be seen from the above technical scheme that the processing method of vector data disclosed by the invention, efficiently solves
The compression, transmission of the vector data of server end, transmission network and client in the treatment process of massive vector data, editor,
The bottleneck problem of display and spatial relationship calculating etc..
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Spatial entities are to express and describe by spatial data to exist or the virtual entity in natural world, from aobvious
The angle shown, the either spatial data of the spatial data of vector data structure or raster data structure all have differentiate more
The characteristic of rate.Because electronic curtain (view window) has resolution ratio, when spatial entities are shown in view window, due to
The resolution ratio of view window is limited, and when the graphics Web publishing that spatial data is drawn in view window is small, has performance arrow
The data (coordinate points) of amount data details part can be plotted in identical pixel, be drawn in view window when vector data
When graphics Web publishing is big, detail section can just be shown, that is to say, that the number of pixels that vector data fills (drafting) is more, arrow
The resolution ratio for measuring data is just high, and the display number for filling (drafting) is few, and the resolution ratio of vector data is with regard to low, therefore, although vector
The display effect of data itself will not show upper distortion because of resolution ratio, but when vector data display, have multiresolution
Characteristic.But current vector data structure, do not record vector data display when resolution character, transmit and show when
It waits and all transmits and show, manufactured network transmission bottleneck and data draw the bottleneck of display, if carried out certainly to vector data
Abbreviation is adapted to, and causes Calculation bottleneck to server.Therefore the present invention records point of vector data in vector data structure
Resolution labelled amount is carried out the adaptive abbreviation of vector data by the resolution ratio labelled amount of vector data, progressive transmission, drawn
System, analysis etc. solve the compression of massive vector data, the technical bottlenecks such as network transmission, client show and analyze.
Vector data include two-dimensional vector data, trivector data and multidimensional vector data etc. it is significant on arrow
Measure data.
A kind of process of vector data processing method disclosed by the embodiments of the present invention is as shown in Figure 1, comprising:
Step S11, the coordinate points of vector data are obtained;
The coordinate points of two-dimensional vector data can indicate are as follows: (x1, y1), (x2, y2) ... (xn, yn);
The coordinate points of trivector data can indicate are as follows: (x1, y1, z1), (x2, y2, z2) ... (xn, yn, zn);
Step S12, the resolution ratio of vector data minimum data tissue unit is generated according to the coordinate points of the vector data
Labelled amount ri1,ri2…rin。
The minimum data tissue unit of two-dimensional vector data is coordinate points, the minimum data tissue unit of trivector data
Related to threedimensional model, e.g., the minimum data tissue unit of triangulation network threedimensional model is triangle, puts the minimum of cloud threedimensional model
Data organization unit is three-dimensional coordinate point.Obtained resolution ratio labelled amount can be added in vector data structure, to make
While vector data must be got, it will be able to obtain its corresponding resolution ratio labelled amount.
A kind of process such as Fig. 2 institute of the generation method of the resolution ratio labelled amount of vector data disclosed by the embodiments of the present invention
Show, comprising:
Step S21, view window of the setting as reference, the view window includes the width of view window
ViewWidth and height ViewHeight;
Vector data reference is determined as by the view window width and height that set as vector data reference
View window, for calculating resolution ratio labelled amount when vector data is shown in the view window as reference.Because
All vector datas can set identical view window width ViewWidth and height as reference
ViewHeight, therefore can be not comprising the view window width ViewWidth and height as reference in vector data structure
Spend ViewHeight.
Step S22, according to the view window as reference, the resolution ratio labelled amount of vector data is generated.
Composition vector data minimum data tissue unit (such as coordinate points) is calculated in the view window as reference
When display, the magnification ratio or other controling parameters (e.g., versus control) that can be revealed are as this minimum data tissue
The resolution ratio labelled amount of unit (such as coordinate points).Such as line vector data, calculate each coordinate points of composition line vector data
When being shown in the view window as reference, resolution ratio mark of the magnification ratio that can be revealed as this coordinate points
The amount of showing.
In above-described embodiment, need to generate the resolution ratio mark of vector data according to the view window as reference
Amount is below described in detail the process for obtaining resolution ratio labelled amount, and process is as shown in Figure 3, comprising:
Step S31, the initial value of the resolution ratio labelled amount of the vector data is calculated;
Step S32, the increment of resolution ratio labelled amount is set;
Step S33, according to vector described in the initial value of the resolution ratio labelled amount and the incremental computations of resolution ratio labelled amount
Resolution ratio labelled amount corresponding to each minimum data tissue unit (such as coordinate points) of data.
It, below will be in order to generate resolution ratio labelled amount data item described in vector data structure in above-described embodiment
For two-dimensional line vector data, to according to the view window width and height as reference, the line vector data are calculated
Each coordinate points resolution ratio labelled amount, that is, when the line vector data are in the view window of the setting as reference
When middle display, each coordinate points are calculated, will be shown, without what is covered by other coordinate points in the vector data
Resolution ratio labelled amount of the magnification ratio as this coordinate points.Detailed retouch is carried out to the process for obtaining resolution ratio labelled amount below
It states, process is as shown in Figure 4, comprising:
The resolution ratio labelled amount of the vector data is assigned into initial value 0 first.
Step S41, the width VectorWidth and height VectorHeight of line vector data are obtained;
Because in most actual application, all outsourcing rectangle containing vector data in vector data structure can be direct
The width and height for obtaining vector data can pass through vector number if the outsourcing rectangle of vector data cannot be directly obtained
According to coordinate points be calculated.
Step S42, the initial value R of the resolution ratio labelled amount of the line vector data is calculatedmin;
(1) corresponding when the vector data is displayed in full screen in the view window for setting as reference put is calculated
Large scale R;
R1=ViewWidth ÷ VectorWidth;
R2=ViewHeight ÷ VectorHeight;
By R1And R2In the value of smaller value as R.
(2) it calculates and works as the line vector data at least 2 coordinate points in the view window for setting as reference
The magnification ratio being revealed is as Rmin。
Assuming that magnification ratio Rtemp;
If R1Less than R2, then:
ViewWidth × 2 RTemp=R ÷, and using ViewWidth as the reference point ViewRefValue of view window;
If R1More than or equal to R2, then:
ViewHeight × 2 RTemp=R ÷, and using ViewHeight as the reference point of view window
ViewRefValue;
Because constituting line graph at least needs 2 coordinate points.
A. the view window and RTemp according to the setting as reference carry out vector data as view control parameter
Adaptive abbreviation;
B. if there is 2 or 2 or more coordinate points to be retained after abbreviation, that is to say, that in the view control parameter
Under, at least two coordinate points can be shown when the vector data is shown in the view window for setting as reference
Come, then using RTemp as the initial value R of the resolution ratio labelled amount of the line vector datamin, being remained after the abbreviation
The values of resolution ratio labelled amount of coordinate points of corresponding vector data of coordinate points be set as Rmin, and terminate;
C. if be retained after abbreviation less than 2 coordinate points, the RTemp is added into an incremental value, occurrence can be with
It is set according to the actual situation, returns to step a;
Step S43, the increment △ R of resolution ratio labelled amount is set;
It according to actual needs can be by RminIt, can also be using R ÷ ViewRefValue as increment △ R etc. as increment △ R
Deng.
Step S44, according to the initial value RminThe resolution of each coordinate points of the vector data is calculated with increment △ R
Rate labelled amount.
Assuming that magnification ratio is R, the initial value of R is Rmin。
1, R value is increased into △ R, i.e. R=R+ △ R;
2, judge that the value that whether there is resolution ratio labelled amount corresponding to coordinate points in the coordinate points of the vector data is
0, if it does not exist, then terminating, if there is thening follow the steps 3;
3, adaptive to vector data progress as view control parameter as the view window and R of reference according to the setting
Answer abbreviation;
4, judge to divide corresponding to the coordinate points of the corresponding vector data of the coordinate points remained after the abbreviation
Whether the value of resolution labelled amount is 0, if it is 0, is set as R, if it is greater than 0, then retains original resolution ratio labelled amount
Value;
5,1 is returned to step.
The method of another disclosed acquisition vector data resolution ratio labelled amount of the present embodiment, process is as shown in figure 5, tool
Steps are as follows for body:
The resolution ratio labelled amount of the vector data is assigned into initial value 0 first.
Step S51, the width VectorWidth and height VectorHeight of line vector data are obtained;
Because, can be direct all there are also the outsourcing rectangle of vector data in vector data structure in most actual application
Obtain the width and height of vector data.If the outsourcing rectangle of vector data cannot be directly obtained, vector number can be passed through
According to coordinate points be calculated.
Step S52, magnification ratio R corresponding to the initial value of the resolution ratio labelled amount of the line vector data is calculatedmin;
(1) corresponding when the vector data is displayed in full screen in the view window for setting as reference put is calculated
Large scale R;
R1=ViewWidth ÷ VectorWidth;
R2=ViewHeight ÷ VectorHeight;
By R1And R2In the value of smaller value as R.
(2) it calculates and works as the line vector data at least 2 coordinate points in the view window for setting as reference
The magnification ratio being revealed is as Rmin。
Assuming that magnification ratio Rtemp;
If R1Less than R2, then:
ViewWidth × 2 RTemp=R ÷, and using ViewWidth as the reference point ViewRefValue of view window;
If R1More than or equal to R2, then:
ViewHeight × 2 RTemp=R ÷, and using ViewHeight as the reference point of view window
ViewRefValue;
Because constituting line graph at least needs 2 coordinate points.
A. the view window and RTemp according to the setting as reference carry out vector data as view control parameter
Adaptive abbreviation;
B. if there is 2 or 2 or more coordinate points to be retained after abbreviation, that is to say, that in the view control parameter
Under, at least two coordinate points can be shown when the vector data is shown in the view window for setting as reference
Come, then using RTemp as magnification ratio R corresponding to the initial value of the resolution ratio labelled amount of the vector datamin, will be described
The initial value of the resolution ratio labelled amount of line vector data is assigned a value of 1, and (1 is used as versus control, the resolution ratio as vector data
The initial value of labelled amount), the original coordinates point of the corresponding vector data of the coordinate points remained after the abbreviation
The value of resolution ratio labelled amount is set as 1, and terminates;
C. if less than 2 coordinate points are retained after abbreviation, RTemp is added into an incremental value, occurrence can basis
Actual conditions are set, and a is returned to step;
Step S53, the increment △ R of resolution ratio labelled amount is set;
It according to actual needs can be by RminIt, can also be using R ÷ ViewRefValue as increment △ R etc. as increment △ R
Deng.
Step S54, according to the initial value RminThe resolution of each coordinate points of the vector data is calculated with increment △ R
Rate labelled amount;
Assuming that magnification ratio is R, the initial value of R is Rmin, it is assumed that the initial value of versus control ResolutionLabel
It is 1, the resolution ratio labelled amount of vector data is indicated with versus control.
1, R value is increased into △ R, i.e. R=R+ △ R, the value of resolution ratio labelled amount is increased by 1, i.e. ResolutionLabel=
ResolutionLabel+1;
2, judge that the value that whether there is resolution ratio labelled amount corresponding to coordinate points in the coordinate points of the vector data is
0, if it does not exist, then terminating, if there is thening follow the steps 3;
3, adaptive to vector data progress as view control parameter as the view window and R of reference according to the setting
Answer abbreviation;
4, judge to divide corresponding to the coordinate points of the corresponding vector data of the coordinate points remained after the abbreviation
Whether the value of resolution labelled amount is 0, if it is 0, is set as ResolutionLabel, if it is greater than 0, is then retained original
The value of resolution ratio labelled amount.
5,1 is returned to step.
Case study on implementation disclosed above can reduce the data volume of vector data, because magnification ratio often uses double precision
It stores, needs 8 bytes, and use above-mentioned versus control as vector data resolution ratio labelled amount, then usually only need
A byte storage is wanted, data volume is effectively reduced.
Adaptive simplifying method in above-described embodiment can use following methods disclosed by the invention, specific steps packet
It includes:
A, according to view control parameter, the original coordinates of vector data are converted to obtain the view under view window coordinate system
Coordinate, the original coordinates point of the vector data correspond to the view coordinate points under the view window coordinate system;
B, abbreviation analysis is carried out to the view coordinate points with Douglas-Pu Kefa (Douglas-Peucker), point
Analyse whether the view coordinate points meet abbreviation condition;
By the view coordinate under the coordinate transform of vector data to view window coordinate system, abbreviation is carried out to vector data,
Spatial relationship guarantor when can guarantee to show in the view window determined by the preset view control parameter after abbreviation
Correct display is held, display effect is undistorted, can be by Douglas-Pu Ke according to the needs of actual displayed effect and compression ratio
The value of the distance threshold D of method (Douglas-Peucker) is assigned a value of the numerical value between 0 or 0 to 1;
C, based on the analysis results, abbreviation meets the original seat of the corresponding vector data of view coordinate points of the abbreviation condition
Punctuate.
A kind of method that the present invention discloses vector data abbreviation, process are as shown in Figure 6.
Step S61, the resolution ratio reference point for vector data described in abbreviation is determined;
Step S62, carry out vector data described in abbreviation according to the resolution ratio reference point for vector data described in abbreviation;
Specific steps as shown in fig. 7, comprises:
Step S621, resolution ratio labelled amount conduct corresponding to first coordinate points and this coordinate points of vector data is chosen
Currently pending coordinate points and currently resolution ratio labelled amount to be judged;
Step S622, it is described for described in abbreviation to judge whether the resolution ratio labelled amount currently to be judged is less than or equal to
The resolution ratio reference point of vector data executes step if so, currently pending coordinate points are added to coordinate point set
S623, if it is not, thening follow the steps S623;
Step S623, judge whether the currently pending coordinate points are last in the coordinate points of the vector data
A coordinate points, if it is not, S624 is thened follow the steps, if so, thening follow the steps S625;
Step S624, next coordinate points in vector data are chosen as currently pending coordinate points, and described in acquisition
The corresponding resolution ratio labelled amount of currently pending coordinate points is returned to step as currently resolution ratio labelled amount to be judged
S622;
Step S625, it using the coordinate points in the coordinate point set as the data after the vector data abbreviation, and ties
Beam.
The present invention discloses a kind of method for obtaining the resolution ratio reference point for vector data described in abbreviation, and specific steps are such as
Shown in Fig. 8, comprising:
Step S71, the view window width according to preset view control parameter and vector data as reference
ViewWidth and height ViewHeight calculates vector data view determined by the preset view control parameter
The resolution ratio labelled amount ResolutionLabel shown in window;
The preset view control parameter includes: the width RealViewWidth of view window, view window
The magnification ratio RealRadio of vector data in height RealViewHeight and view window.The width of view window
The RealViewWidth and height RealViewHeight of view window has determined the view window range of display vector data
(0,0, RealViewWidth, RealViewHeight) passes through the two such as the range of computer screen map display window
Parameter can determine the magnitude range of window for displaying images in actual view window.
The width and height of the value of RealRadio usually foundation view window, and shown in view window
The rectangular extent of vector data calculates, and the rectangular extent of the vector data shown in view window refers to this
Vector data in range is shown in view window, that is, the outsourcing for the vector data that can be shown in view window
Rectangle, specific value range are set according to actual display situation, and the width of the rectangular extent of the vector data is
VWidth is highly vHeight.
The calculation method of RealRadio is as follows:
R1=RealViewWidth ÷ vWidth;
R2=RealViewHeight ÷ vHeight;
If R1 is less than R2, R1 is assigned to RealRadio, R2 is otherwise assigned to RealRadio.
The calculation method of ResolutionLabel is as follows:
DRadioW=(ViewWidth*RealRadio)/RealViewWidth;
DRadioH=(ViewHeight*RealRadio)/RealViewHeight;
If dRadioW is greater than dRadioH, dRadioW value is assigned to ResolutionLabel
, dRadioH value is otherwise assigned to ResolutionLabel.
Step S72, it is shown in the view window determined by the preset view control parameter according to vector data
The resolution ratio labelled amount ResolutionLabel shown determines the resolution ratio reference point for vector data described in abbreviation.
If the resolution ratio labelled amount of the vector data uses magnification ratio R as resolution ratio labelled amount, will
ResolutionLabel is as the resolution ratio reference point for vector data described in abbreviation.If the ensuring that the vector number after abbreviation
It is undistorted according to being shown in the view window determined by the preset view control parameter, then by the vector data
Level-one bigger than ResolutionLabel or equal resolution ratio labelled amount are used as swearing described in abbreviation in resolution ratio labelled amount
Measure the resolution ratio reference point of data.
If the resolution ratio labelled amount of the vector data uses versus control as vector data resolution ratio mark
The amount of showing then subtracts the initial value R of the resolution ratio labelled amount of the vector data with ResolutionLabelminResulting value is
Kkk, if kkk is less than or is equal to 0, the resolution ratio reference point for vector data described in abbreviation is 1;If kkk is greater than
0, then by kkk divided by the increment △ R of the vector data resolution ratio labelled amount, resulting value is assumed to HHH, if HHH is whole
Number, then using HHH as the resolution ratio reference point for being used for vector data described in abbreviation;If there are also decimals by HHH, if requiring to ensure
Vector data after abbreviation shown in the view window determined by the preset view control parameter it is undistorted, then will
The integer value of HHH adds 1 otherwise can be directly by the integer of HHH as the resolution ratio reference point for vector data described in abbreviation
It is worth as the resolution ratio reference point for vector data described in abbreviation.
The present invention discloses a kind of method that vector data is drawn, and detailed process is as shown in Figure 9.
When vector data needs are shown in view window, if vector data is very fine or vector data is regarding
What is shown in figure window is smaller, it may appear that and multiple coordinate points of vector data are plotted in the same pixel of view window,
This is exactly the characteristic of possessed multiresolution when vector data is shown in view window, therefore can be mentioned by this characteristic
The drafting efficiency of high vector data.
Step S81, the view control parameter of the view window of display vector data is obtained;
The view control parameter includes: the height of the width RealViewWidth of view window, view window
The magnification ratio RealRadio of vector data in RealViewHeight and view window.The width of view window
The RealViewWidth and height RealViewHeight of view window has determined the view window range of display vector data
(0,0, RealViewWidth, RealViewHeight) passes through the two such as the range of computer screen map display window
Parameter can determine the magnitude range of window for displaying images in actual view window.
The width and height of the value of RealRadio usually foundation view window, and shown in view window
The rectangular extent of vector data calculates, and the rectangular extent of the vector data shown in view window refers to this
Vector data in range is shown in view window, that is, the outsourcing for the vector data that can be shown in view window
Rectangle, specific value range are set according to actual display situation, and the width of the rectangular extent of the vector data is
VWidth is highly vHeight.
Step S82, the view window width ViewWidth according to the view control parameter and vector data as reference
The resolution ratio that vector data is shown in the view window determined by the view control parameter is calculated with height ViewHeight
Labelled amount ResolutionLabel;
The calculation method of ResolutionLabel is as follows:
DRadioW=(ViewWidth*RealRadio)/RealViewWidth;
DRadioH=(ViewHeight*RealRadio)/RealViewHeight;
If dRadioW is greater than dRadioH, dRadioW value is assigned to ResolutionLabel
, dRadioH value is otherwise assigned to ResolutionLabel.
Step S83, the resolution for showing the vector data in the view window determined by the view control parameter
Rate labelled amount ResolutionLabel as vector data described in abbreviation resolution ratio reference point to the vector data
Letter;
What the view control parameter and vector data of the view window according to display vector data were shown in view window
Multi-resolution characteristics carry out abbreviation to vector data, when vector data is shown in the view window in the vector data
Fallen by the data abbreviation that other data are blocked, by vector data not display effect of the impact vector data in view window with
And the data abbreviation of spatial relationship falls between other vector datas.
Step S84, the vector data after abbreviation is drawn in the view window using drawing algorithm.
The present invention discloses a kind of selection method of vector data, and process is as shown in Figure 10.
Data volume in actual range of choice may be more than the data volume come out shown in view window, if
The data in range of choice are all directly taken out into carry out subsequent processing, in a network environment, will cause the decline of system performance,
Especially subsequent operation is to carry out data edition and highlight, and the present invention discloses a kind of method and step of vector data selection such as
Under:
Step S91, it obtains and records range of choice and alternative condition;
Vector data select it is most basic include click, frame choosing, circle choosing and polygon selection etc., the selection range clicked
It is exactly a coordinate points, clicks tolerance comprising one again sometimes, for example click to line vector data;The selection range of frame choosing
It is exactly rectangular area, the range of choice for enclosing choosing is often indicated with the radius of center point coordinate and circle;The choosing of polygon selection
Selecting range is exactly polygonal region.It is usually the method (such as comprising, intersection) chosen, restriction to certain class number for alternative condition
According to select etc., depending on specific actual conditions.The present invention will not enumerate, and protection scope includes all vectors
The selection situation of data.
Step S92, according to the range of choice and alternative condition to the vector data shown in view window into
Row selection processing;
It replaces all according with the Local Vector data for choosing condition are met in the vector data shown in view window
Close alternative condition vector data will participate in completing the vector data for having to all choose except operation.
If selection occurs in client, and vector data shown by client is the same as vector number corresponding to server end
According to comparing, the vector data if it is what is transmitted after server end abbreviation, compression processing, and after abbreviation can
Guarantee identical display effect and the spatial relationship with other vector datas in view window and before abbreviation, is existed using local
The vector data (even if this data is by abbreviation, compressed) of condition is chosen meeting of showing in window to replace all symbols
Conjunction chooses the vector data of condition without impact effect, such as highlights, and in no determination to the vector data chosen
Final operation before operation, (i.e. map dragging is tied not yet before terminating such as graphics edition, in such as map dragging process
Beam) etc. operation, server end can not be gone to carry out selection analysis to vector data, read the operation such as data, directly using locally
The data shown in the window can effectively mitigate pressure, the pressure of network transmission of server in this way, improve
The performance of whole system.
If vector data selection be clicked in view window with mouse or drawn with mouse polar plot come
Vector data is selected, because of the figure drawn in view window with mouse, resolution ratio shown by figure has been
It is highest, it is shown that all details of figure, therefore can directly with the mouse draw polar plot and view window on
The vector data shown carries out selection analysis;If it is by specifying some or certain vector datas to other vector datas
The vector data for being selected, and being shown in view window is by abbreviation, and even lossy compression (reduces data essence
Degree), then show two vector datas to contact with each other on view, may actually two vector datas be mutually from,
Therefore carrying out spatial relationship calculating jointly sometimes for server end could complete to the vector shown in view window
Data carry out the operation of selection.
The identification number for meeting the vector data of alternative condition in view window is added to and is chosen in set, as to choosing
The object operated that vector data is operated, when the view control parameter of view window changes, as map amplification,
The operations such as diminution, translation and rotation, need to judge the vector shown in view window according to the range of choice and alternative condition
Whether data, which meet, is chosen condition, chooses the data in set to be updated to described.
Step S93, after the processing carried out to the vector data chosen has been determined, then according to the range of choice
All vector datas for meeting and choosing condition are chosen with alternative condition.
For example check the attribute information for the vector data chosen, it needs to believe the attribute of all qualified vector datas
Breath all takes out, it is therefore desirable to all qualified vector datas is chosen according to the range of choice and alternative condition, so
Attribute information corresponding to the vector data chosen is taken out again afterwards.
The present invention discloses a kind of method that vector data spatial relationship calculates, and process is as shown in figure 11.
Pass through between abbreviation, compressed vector data and the complete vector data of server end primarily directed to client
How to carry out common spatial relationship to calculate, mitigate the pressure of server end, using the resource of client, carries out load balance,
Promote the performance of whole system.For the convenience of narration, original arrow will be referred to as to the vector data for the spatial relationship of being calculated
Data are measured, the original vector data are referred to as low resolution vector data by abbreviation, compressed vector data.
Step S101, low resolution vector data corresponding to the original vector data to the spatial relationship of being calculated carries out
Spatial relationship calculates, determine between original vector data certainly do not have with certain spatial relationship, certainly certain spatial relationship,
There may be certain spatial relationship;
Because client often inwhole vector data, and the existing vector data of client is the same as server end institute
Corresponding vector data is compared and precision is relatively low or vector data is by the data after abbreviation, and there are no include whole
Coordinate points, therefore the multi-resolution characteristics when data of client are server ends according to vector data display by abbreviation and
It is transferred to client after compression, the low resolution vector data can be judged to determine original vector number in client
Do not have certain spatial relationship with certain spatial relationship, certainly certainly between, there may be certain spatial relationship, if logical
Crossing low resolution vector data can judge between corresponding original vector data certainly with certain spatial relationship, affirmative
Without certain spatial relationship, spatial relationship calculating terminates.
Step S102, to the vector data that may have certain spatial relationship, carrying out analysis using original vector data is
It is no that there is certain spatial relationship.
Can there will likely be the original vector data of certain spatial relationship to get client and carry out spatial relationship calculating,
Server end can be allowed to carry out spatial relationship calculating.
A kind of method that the present invention discloses vector data editor, process are as shown in figure 12.
Step S111, obtain and record the alternative condition that selection vector data is edited;
To the editor of vector data, needs first to choose vector data, then the vector data chosen is edited.
Step S112, according to the alternative condition to meeting selector bar in the vector data shown in view window
The object to be operated that the vector data of part is operated as editing and processing;
It replaces all according with the Local Vector data for choosing condition are met in the vector data shown in view window
The vector data of alternative condition is closed to carry out the operation in editing process.
The identification number for meeting the vector data of alternative condition in view window is added to and is chosen in set, as to choosing
The object to be edited that vector data is edited, when the view control parameter of view window changes, as map amplification,
The operations such as diminution, translation and rotation, need to judge the vector shown in view window according to the range of choice and alternative condition
Whether data, which meet, is chosen condition, chooses the data in set to be updated to described.
If edit operation is to the edit operation of vector graphics by client come the vector data at editing server end,
And compared with the vector data corresponding to the server end of vector data shown by client, if it is passing through server end
It is transmitted after letter, compression processing, and the vector data after abbreviation can guarantee phase in view window and before abbreviation
With display effect and spatial relationship with other vector datas, using it is local show in the window meet and choose item
The vector data (even if this data is by abbreviation, compressed) of part replace it is all meet choose the vector data of condition without
Impact effect such as highlights, and before the edit operation for the vector data chosen is completed in no determination, such as rotation arrow
The operation such as (i.e. rotation is not over) in the graphic procedure that amount data are drawn can not go directly to make with server interaction
With the local data shown in the window, it can effectively mitigate pressure, the pressure of network transmission of server, mention
The performance of high whole system.
Step S113, it after the editing and processing carried out to the vector data chosen has been determined, obtains to vector number
According to edit instruction and editor parameter;
It is such as rotation editor to the edit instruction of vector data, then edits central point and rotation angle that parameter includes rotation
Degree;Edit instruction to vector data is mobile editor, then editing parameter includes the displacement along each reference axis.The present embodiment is not
It enumerates again.
Step S114, all vector datas for meeting and choosing condition are chosen according to the alternative condition, to described all
Meet and the vector data of condition is chosen according to the edit instruction to be and edit parameter and edit to vector data.
Such as in the condition for the selection vector data for obtaining client-side editing vector graphics, the Command And Edit ginseng of edit operation
Amount is subsequently transmitted to server end and carries out edit operation, reduces the interaction of data.
A kind of method that the present invention discloses vector data progressive transmission, process are as shown in figure 13, comprising:
Step S121, when needing to request incremental data, incremental data request is sent, includes view control in the request
Parameter;
Vector data progressive transmission method in the present embodiment is suitable for request transmitting terminal, when request transmitting terminal is judged to need
When requesting incremental data, incremental data request is sent to request receiving end, works as forward sight comprising request transmitting terminal in the request
Figure control parameter.
The view control parameter includes: the height of the width RealViewWidth of view window, view window
The magnification ratio RealRadio of vector data in RealViewHeight and view window.The width of view window
The RealViewWidth and height RealViewHeight of view window has determined the view window range of display vector data
(0,0, RealViewWidth, RealViewHeight) passes through the two such as the range of computer screen map display window
Parameter can determine the magnitude range of window for displaying images in actual view window.
The width and height of the value of RealRadio usually foundation view window, and shown in view window
The rectangular extent of vector data calculates, and the rectangular extent of the vector data shown in view window refers to this
Vector data in range is shown in view window, that is, the outsourcing for the vector data that can be shown in view window
Rectangle, specific value range are set according to actual display situation, and the width of the rectangular extent of the vector data is
VWidth is highly vHeight.
The calculation method of RealRadio is as follows:
R1=RealViewWidth ÷ vWidth;
R2=RealViewHeight ÷ vHeight;
If R1 is less than R2, R1 is assigned to RealRadio, R2 is otherwise assigned to RealRadio.
If view window width ViewWidth and height of the vector data as reference can be obtained in request transmitting terminal
ViewHeight can then calculate the resolution that vector data is shown in the view window determined by the view control parameter
Rate labelled amount ResolutionLabel then includes: vector data described as view control parameter, the view control parameter
The resolution ratio labelled amount ResolutionLabel shown in view window determined by view control parameter.And view window
The magnification ratio of vector data in width RealViewWidth, the height RealViewHeight of view window and view window
RealRadio can be not included in view control parameter.
The calculation method of ResolutionLabel is as follows:
DRadioW=(ViewWidth*RealRadio)/RealViewWidth;
DRadioH=(ViewHeight*RealRadio)/RealViewHeight;
If dRadioW is greater than dRadioH, dRadioW value is assigned to ResolutionLabel
, dRadioH value is otherwise assigned to ResolutionLabel.
If request transmitting terminal is cached with vector data, view control parameter further include: the vector data formerly cached
Identification number and the vector data formerly cached current highest resolution labelled amount.
Step S122, it receives and is obtained after being analyzed according to the resolution ratio labelled amount of the view control parameter and vector data
The incremental data obtained.
Receive the incremental data that request receiving end returns.
In vector data progressive transmission method disclosed in the present embodiment, request transmitting terminal when sending incremental data request,
The view control parameter for carrying the view window currently shown in the request, allows the receiving end foundation that calls request
The resolution ratio labelled amount that view control parameter and vector data are included is analyzed to obtain the incremental number for being suitable for active view window
According to the incremental data that ensure that lossless can be shown, while reduce volume of transmitted data, improve data transmission efficiency.
Another vector data progressive transmission method process disclosed by the invention is as shown in figure 14, and this method is suitable for request hair
Sending end, based on request transmitting terminal be cached with the vector data formerly cached the case where, comprising:
Step S131, according to view control parameter and vector data as the view window width ViewWidth of reference and
Height ViewHeight calculates the resolution ratio mark that vector data is shown in the view window determined by the view control parameter
The amount of showing ResolutionLabel;
Step S132, the current highest resolution labelled amount of the vector data formerly cached is obtained;
Step S133, it is described to judge whether the current highest resolution labelled amount of the vector data formerly cached is less than
The resolution ratio labelled amount that vector data is shown in the view window determined by the view control parameter
ResolutionLabel, if so, S134 is thened follow the steps, if it is not, then terminating;
Step S134, incremental data request is sent, includes view control parameter, the view control parameter in the request
In the current highest resolution labelled amount comprising the identification number of vector data and the vector data formerly cached that formerly cache;
Step S135, it receives and is obtained after being analyzed according to the resolution ratio labelled amount of the view control parameter and vector data
The incremental data obtained;
Step S136, the received incremental data is inserted into the vector data formerly cached.
If using versus control as the current of the vector data formerly cached in the vector data formerly cached
Highest resolution labelled amount, then step S132 is changed in the present embodiment: obtaining the current highest of the vector data formerly cached
Magnification ratio corresponding to resolution ratio labelled amount, as the maximum magnification ratio formerly cached;Step S133 is changed to: described in judgement
Whether it is less than vector data view determined by the view control parameter as the maximum magnification ratio formerly cached
The resolution ratio labelled amount ResolutionLabel shown in window, if so, S134 is thened follow the steps, if it is not, then terminating;
Due to requesting transmitting terminal to be cached with the vector data formerly cached at this time, so needing to insert received incremental data
Enter into the vector data formerly cached, realize data reconstruction, the data after reconstruction are as the corresponding display of active view window
Data.
The process disclosed by the invention received incremental data being inserted into the vector data formerly cached
As shown in figure 15, comprising:
Step S141, the location information and current highest resolution mark of the original coordinates point in the incremental data are obtained
Amount;
Step S142, according to the location information, the original coordinates point in the incremental data is inserted into described first
The corresponding position of the vector data of caching;
Step S143, the current highest resolution labelled amount for replacing the vector data formerly cached is in incremental data
The current highest resolution labelled amount for being included.
If using versus control as the current of the vector data formerly cached in the vector data formerly cached
Highest resolution labelled amount, the then current highest resolution labelled amount institute for the vector data that formerly caching needs record formerly to cache
Corresponding magnification ratio.
The process of another vector data progressive transmission method disclosed by the invention is as shown in figure 16, comprising:
Step S151, the incremental data request that request transmitting terminal is sent is received, includes view control parameter in the request;
Vector data progressive transmission method disclosed in the present embodiment is suitable for request receiving end.Its received data increment is asked
The type for the view control parameter asked is corresponding with the type in embodiment illustrated in fig. 13.When request Sender side Storage has formerly
When the vector data of caching, the view control parameter includes: the range of active view window, active view window amplification ratio
Example, the current highest resolution labelled amount of the identification number of the vector data first cached and the vector data formerly cached.If
Request transmitting terminal can obtain view window width ViewWidth and height ViewHeight of the vector data as reference, then may be used
To calculate the resolution ratio labelled amount that vector data is shown in the view window determined by the view control parameter
ResolutionLabel then includes: vector data in the view control as view control parameter, the view control parameter
The resolution ratio labelled amount ResolutionLabel shown in view window determined by parameter, the mark of the vector data first cached
The current highest resolution labelled amount of knowledge number and the vector data formerly cached.
Step S152, according to the resolution ratio labelled amount for requesting the view control parameter and vector data that include to vector
Data are analyzed and processed, and determine that the data for meeting increment condition in vector data are incremental data;
Step S153, the incremental data is sent to the request transmitting terminal.
Obtained incremental data is sent to request transmitting terminal.
In vector data progressive transmission method disclosed in the present embodiment, request receiving end is according to view control parameter to original
Vector data carries out abbreviation analysis, and will meet the data of incremental data condition in vector data as incremental data.This method
In, the analytic process of vector data is indicated according to the resolution ratio of view control parameter and vector data in incremental data request
Amount carries out, i.e., based on the actual displayed view window for requesting transmitting terminal, to guarantee that the incremental data obtained is sent to request
Transmitting terminal, the vector data after request transmitting terminal receives the incremental data and rebuilds can join according to view control is first passed through in advance
Several controlled display effects are shown, be can be realized lossless display, while only transmitting incremental data, are reduced significantly
Volume of transmitted data, improves data transmission efficiency.
The process of another vector data progressive transmission method disclosed by the invention is as shown in figure 17, and this method is suitable for request
Receiving end, based on request transmitting terminal be cached with the vector data formerly cached the case where, comprising:
Step S161, the incremental data request that request transmitting terminal is sent is received, includes view control parameter in the request;
Step S162, according to view control parameter and vector data as the view window width ViewWidth of reference and
Height ViewHeight calculates the resolution ratio mark that vector data is shown in the view window determined by the view control parameter
The amount of showing ResolutionLabel;
The resolution ratio labelled amount ResolutionLabel can also be calculated in request transmitting terminal, directly as view control
Parameter processed is sent to request receiving terminal, and the view control parameter then includes: that vector data is true in the view control parameter institute
The resolution ratio labelled amount ResolutionLabel shown in fixed view window, the identification number of the vector data first cached and
The current highest resolution labelled amount of the vector data first cached.
If the resolution ratio labelled amount ResolutionLabel is not calculated in request transmitting terminal, and as view
Control parameter is sent to request receiving terminal, then the view control parameter includes: the range of active view window, active view window
Mouth magnification ratio RealRadio, the current best result of the identification number of the vector data first cached and the vector data formerly cached
Resolution labelled amount.
The range of active view window includes: the height of the width RealViewWidth of view window, view window
RealViewHeight。
The calculation method of ResolutionLabel is as follows:
DRadioW=(ViewWidth*RealRadio)/RealViewWidth;
DRadioH=(ViewHeight*RealRadio)/RealViewHeight;
If dRadioW is greater than dRadioH, dRadioW value is assigned to ResolutionLabel
, dRadioH value is otherwise assigned to ResolutionLabel.
Step S163, it is shown in the view window determined by the preset view control parameter according to vector data
The resolution ratio labelled amount ResolutionLabel shown determines the resolution ratio reference point for vector data described in abbreviation as working as
Preceding resolution ratio reference point carries out abbreviation to the vector data with current resolution reference point, obtains current abbreviation result;
Step S164, use the current highest resolution labelled amount of the vector data formerly cached as first resolution ratio reference
Value, carries out abbreviation to the vector data with first resolution ratio reference point, obtains first abbreviation result;
Step S165, determine that the data for meeting increment condition in the current abbreviation result are incremental data;
The detailed process of the step includes:
Determine in the current abbreviation result, and not the coordinate points of the vector data in the first abbreviation result and
This coordinate points is in incremental data carried out by the location information in the vector data;
Simultaneously using the current resolution reference point as the current highest resolution labelled amount of incremental data.
Step S166, the incremental data is sent to request transmitting terminal.
The process of another vector data progressive transmission method disclosed by the invention is as shown in figure 18, and this method is suitable for request
Receiving end, based on request transmitting terminal be cached with the vector data formerly cached the case where, comprising:
Step S171, the incremental data request that request transmitting terminal is sent is received, includes view control parameter in the request;
Step S172, according to view control parameter and vector data as the view window width ViewWidth of reference and
Height ViewHeight calculates the resolution ratio mark that vector data is shown in the view window determined by the view control parameter
The amount of showing ResolutionLabel;
The resolution ratio labelled amount ResolutionLabel can also be calculated in request transmitting terminal, directly as view control
Parameter processed is sent to request receiving terminal, and the view control parameter then includes: that vector data is true in the view control parameter institute
The resolution ratio labelled amount ResolutionLabel shown in fixed view window, the identification number of the vector data first cached and
The current highest resolution labelled amount of the vector data first cached.
If the resolution ratio labelled amount ResolutionLabel is not calculated in request transmitting terminal, and as view
Control parameter is sent to request receiving terminal, then the view control parameter includes: the range of active view window, active view window
Mouth magnification ratio RealRadio, the current best result of the identification number of the vector data first cached and the vector data formerly cached
Resolution labelled amount.
The range of active view window includes: the height of the width RealViewWidth of view window, view window
RealViewHeight。
The calculation method of ResolutionLabel is as follows:
DRadioW=(ViewWidth*RealRadio)/RealViewWidth;
DRadioH=(ViewHeight*RealRadio)/RealViewHeight;
If dRadioW is greater than dRadioH, dRadioW value is assigned to ResolutionLabel
, dRadioH value is otherwise assigned to ResolutionLabel.
Step S173, it is shown in the view window determined by the preset view control parameter according to vector data
The resolution ratio labelled amount ResolutionLabel shown determines the resolution ratio reference point for vector data described in abbreviation as working as
Preceding resolution ratio reference point;
Step S174, use the current highest resolution labelled amount of the vector data formerly cached as first resolution ratio reference
Value;
Step S175, the vector data is analyzed according to the current resolution reference point and first resolution ratio reference point,
To obtain the data for meeting increment condition as incremental data.
The detailed process of the step is as shown in figure 19, comprising:
Step S1751, resolution ratio labelled amount corresponding to first coordinate points and this coordinate points of vector data is chosen to make
For currently pending coordinate points and currently resolution ratio labelled amount to be judged;
Step S1752, judge whether the resolution ratio labelled amount currently to be judged is less than or equal to current resolution reference
It is worth and is greater than first resolution ratio reference point, if so, currently pending coordinate points are added to coordinate point set, executes step
S1753, if it is not, thening follow the steps S1753;
Step S1753, judge whether the currently pending coordinate points are last in the coordinate points of the vector data
One coordinate points, if it is not, S1754 is thened follow the steps, if so, thening follow the steps S1755;
Step S1754, next coordinate points in vector data are chosen as currently pending coordinate points, and described in acquisition
The corresponding resolution ratio labelled amount of currently pending coordinate points is returned to step as currently resolution ratio labelled amount to be judged
S1752;
Step S1755, the position by the coordinate points and this coordinate points in the coordinate point set in the vector data
Incremental data of the information as the vector data, and terminate.
Simultaneously using the current resolution reference point as the current highest resolution labelled amount of incremental data.
Step S176, the incremental data is sent to request transmitting terminal.
If the resolution ratio labelled amount of the vector data uses versus control as vector data resolution ratio mark
The amount of showing then needs using after converting the current resolution reference point, and the method for transformation is as follows:
Assuming that the current resolution reference point ResolutionLabel, subtracts the vector with ResolutionLabel
The initial value R of the resolution ratio labelled amount of dataminResulting value is kkk, if kkk is less than or is equal to 0, current resolution
Rate reference point is 1;It is resulting by kkk divided by the increment △ R of the vector data resolution ratio labelled amount if kkk is greater than 0
Value is assumed to HHH, if HHH is integer, then using HHH as current resolution reference point;If there are also decimals by HHH, if wanted
It asks the vector data after ensuring abbreviation to show in the view window determined by the preset view control parameter not lose
Very, then 1 is added to be used as current resolution reference point the integer value of HHH, it otherwise, can be directly using the integer value of HHH as current
Resolution ratio reference point.If also using versus control as the vector data formerly cached in the vector data formerly cached
Current highest resolution labelled amount, then need using the transformed current resolution reference point as the current of incremental data
Highest resolution labelled amount.
When requesting transmitting terminal not cache vector data, does not then deposit the identification number of the vector data first cached and formerly delay
The current highest resolution labelled amount for the vector data deposited, therefore also do not include in view control parameter.Request receiving end exists
After receiving incremental data request, according to view control parameter by the original vector data of request according to the view window currently shown
The view control parameter of mouth carries out abbreviation, and obtained data are incremental data.It, will after request transmitting terminal receives incremental data
Incremental data needs data to be shown as active view window, is shown, and cached, in order in this, as
Vector data is first cached, subsequent progressive transmission processing is carried out.
The present invention discloses a kind of processing unit of vector data, structure is as shown in figure 20, comprising:
Coordinate points acquiring unit 201, for obtaining the coordinate points of vector data;
Generation unit 202 generates vector data minimum data tissue unit for the coordinate points according to the vector data
Resolution ratio labelled amount.
The present embodiment merely discloses its preferably implementation, and specific work process please refers to any one in Fig. 1-5
Process shown in width is not repeating herein.
The invention also discloses a kind of vector data abbreviation device, structure is as shown in figure 21, comprising:
First determination unit 211, for determining the resolution ratio reference point for vector data described in abbreviation;
First selection unit 212, for choosing resolution corresponding to first coordinate points and this coordinate points of vector data
Rate labelled amount resolution ratio labelled amount to be judged as currently pending coordinate points and currently:
First judging unit 213, for judging it is described whether the resolution ratio labelled amount currently to be judged is less than or equal to
For the resolution ratio reference point of vector data described in abbreviation, if so, currently pending coordinate points are added to coordinate point set;
Second judgment unit 214, for judge the currently pending coordinate points whether be the vector data coordinate
The last one coordinate points in point, if it is not, then performing the next step suddenly, if so, executing the coordinate in the coordinate point set
It puts as the data after the vector data abbreviation, and end step;
Second selection unit 215, for choosing next coordinate points in vector data as currently pending coordinate points,
And it obtains the corresponding resolution ratio labelled amount of the currently pending coordinate points and is held as currently resolution ratio labelled amount to be judged, return
Row judges whether the resolution ratio labelled amount currently to be judged is less than or equal to the resolution for vector data described in abbreviation
Rate reference point step;
Second determination unit 216, for using the coordinate points in the coordinate point set as the vector data abbreviation after
Data, and terminate.
The present embodiment merely discloses its preferably implementation, and specific work process please refers to any one in Fig. 6-8
Process shown in width is not repeating herein.
The invention also discloses a kind of vector data drawing apparatus, structure is as shown in figure 22, comprising:
Parameter acquiring unit 221, the view control parameter of the view window for obtaining display vector data;
Computing unit 222, for the view window width according to the view control parameter and vector data as reference
ViewWidth and height ViewHeight calculates vector data and shows in the view window determined by the view control parameter
Resolution ratio labelled amount ResolutionLabel;
Abbreviation unit 223, for showing the vector data in the view window determined by the view control parameter
The resolution ratio labelled amount ResolutionLabel shown as vector data described in abbreviation resolution ratio reference point to the vector number
According to progress abbreviation;
Drawing unit 224, for drawing the vector data after abbreviation in the view window using drawing algorithm
System.
The present embodiment merely discloses its preferably implementation, and specific work process please refers to process shown in Fig. 9,
This is not being repeated.
The invention also discloses a kind of selection device of vector data, structure is as shown in figure 23, comprising:
Range of choice and condition acquiring unit 231, for obtaining and recording range of choice and alternative condition;
Processing unit 232 is selected, for showing according to the range of choice and alternative condition in view window
Vector data carry out selection processing;
Selected cell 233, for after the processing carried out to the vector data chosen has been determined, then according to described in
Range of choice and alternative condition come choose it is all meet choose the vector data of condition.
The present embodiment merely discloses its preferably implementation, and specific work process please refers to process shown in Fig. 9,
This is not being repeated.
The invention also discloses a kind of vector data spatial relationship computing device, structure is as shown in figure 24, comprising:
Spatial relationship determination unit 241, for low point corresponding to the original vector data to the spatial relationship of being calculated
Resolution vector data carries out spatial relationship calculating, determines between original vector data there is certain spatial relationship, affirmative certainly not
With certain spatial relationship, there may be certain spatial relationship;
Analytical unit 242, for being carried out using original vector data to the vector data that may have certain spatial relationship
Analyse whether that there is certain spatial relationship.
The present embodiment merely discloses its preferably implementation, and specific work process please refers to process shown in Figure 10,
It is not repeating herein.
The invention also discloses a kind of vector data editing device, structure is as shown in figure 25, comprising:
Recording unit 251 is obtained, the alternative condition edited for obtaining and recording selection vector data;
Selecting unit 252, for according to the alternative condition to being accorded in the vector data shown in view window
Close the object to be operated that the vector data of alternative condition is operated as editing and processing;
Edit instruction and editor's parameter acquiring unit 253, for being carried out to the vector data chosen having determined
Editing and processing after, obtain to the edit instruction of vector data and editor's parameter;
Edit cell 254, for chosen according to the alternative condition it is all meet choose the vector data of condition, to institute
State it is all meet choose the vector data of condition according to the edit instruction to be and edit parameter and edit to vector data.
The present embodiment merely discloses its preferably implementation, and specific work process please refers to process shown in Figure 12,
It is not repeating herein.
The invention also discloses a kind of vector data progressive transmission devices, are suitable for client, and structure is as shown in figure 26,
Include:
Incremental data request transmitting unit 261, for when needing to request incremental data, sending incremental data request, institute
It states in request comprising control parameter;
Incremental data receiving unit 262, for receiving the resolution ratio mark according to the view control parameter and vector data
The incremental data that the amount of showing obtains after being analyzed.
The present embodiment merely discloses its preferably implementation, and specific work process please refers to any in Figure 13-15
Process shown in one width is not repeating herein.
The present invention discloses another vector data progressive transmission devices, are suitable for server end, structure is as schemed
Shown in 27, comprising:
Incremental data request reception unit 271, the incremental data request sent for receiving request transmitting terminal, the increment
It include control parameter in request of data;
Analysis and processing unit 272, for the resolution ratio according to the view control parameter and vector data for requesting to include
Labelled amount is analyzed and processed vector data, determines that the data for meeting increment condition in vector data are incremental data;
Transmission unit 273, for sending the incremental data to the request transmitting terminal.
The present embodiment merely discloses its preferably implementation, and specific work process please refers to any in Figure 16-17
Process shown in one width is not repeating herein.
A kind of vector data processing method and processing device disclosed by the invention can be set in computer, also can be set
In mobile phone or other equipment.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part
It is bright.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.