Embodiment 1
The embodiment of the present application provides a kind of methods of exhibiting of data correlation relation, is used to provide a kind of to association
The scheme that incidence relation between data is shown.
The executive agent of the methods of exhibiting of the data correlation relation that the embodiment of the present application is provided can be, but not limited to
It is the terminals such as mobile phone, panel computer, PC (Personal Computer, PC) and intelligent television
In at least one.Additionally, the application journey installed on the executive agent, or terminal device of the method
Sequence in itself, such as browser.
Described executive agent do not constitute the restriction to the application, for ease of description, hereafter in this way
Executive agent is for as a example by web browser, the implementation method to the method is introduced.It is appreciated that the party
The executive agent of method is a kind of exemplary explanation for web browser, is not construed as to the method
Limit.
The method implements schematic flow sheet as shown in figure 1, mainly comprising the steps:
Step 11, according to associated data, generates the basic displaying model for showing associated data;
The embodiment of the present application is from user's request, it is contemplated that on the one hand, user can wish to enter associated data
Row displaying, to know specific associated data;On the other hand, user is further desirable to the pass to associated data
Connection relation is shown, to know between specifically which associated data there is association.Therefore, the application
In embodiment, the basic displaying model for showing associated data can be generated according to associated data, with full
Sufficient user wishes the demand being shown to associated data.For the incidence relation, in the embodiment of the present application
Can be indicated with " linked character " hereinafter described, the generating mode of " linked character " is as detailed below,
Here is omitted.
Wherein, the basic displaying model, is the model for data to be carried out with visual presentation;Can be
The model (e.g., sector diagram and block diagram etc.) of two dimension, or the model of three-dimensional are (e.g., three-dimensional
Sphere model etc.).
At present, with the continuous intensification of globalization degree, business, the culture of different company (or personal)
And daily exchange also increasingly tend to internationalization.In this case, the associated data of generation is often
Can be shown by the earth model of 3 D stereo (Three-Dimensional, 3D).
Therefore, in one embodiment, for being shown to the associated data produced in the case of above-mentioned
Basic displaying model can be 3D models, and the 3D models can be the 3D models of the earth.Accordingly,
The associated data can be the data for representing geographical position.
It should be noted that in one embodiment, the specific implementation of step 11 can include:
According to the data type of associated data, it is determined that the type of displaying model substantially;According to the basic displaying mould for determining
The type of type, obtains the model parameter for generating basic displaying model;According to the model parameter and
The associated data, the basic displaying model of generation.For example, it is assumed that being respectively two on the earth with associated data
As a example by the position coordinates in city, then data type (position coordinates) according to the associated data can be true
Surely the type for being used for the basic displaying model of associated data can be " earth model ", and then can obtain life
Model parameter into needed for earth model, such that it is able to the position coordinate data according to described two cities, with
And the model parameter needed for generation earth model, generate the basic displaying mould for the associated data for showing
Type.Wherein, mould of the basic displaying model of generation comprising the position coordinate data corresponding to described two cities
Type feature, the aspect of model such as can be the location point on earth model.In the embodiment of the present application, can be with
Pre-save the types of different basic displaying models and the mapping relations of corresponding model parameter, so as to it is determined that
After going out the type of basic displaying model, corresponding model parameter can be obtained according to the mapping relations.
For earth model, in the prior art, webGL technologies can be often used, generation can be opened up
Show the 3D earth models on webpage.Using webGL technologies, browser can directly pass through HTML
Script realizes the making of webpage three-dimensional stereo model, is supported without any other browser plug-in.Wherein,
The WebGL technologies have been more ripe correlation techniques, thus on how to pass through WebGL technology realities
The drafting of existing network page three-dimensional stereo model, here is omitted.
Step 12, in the aspect of model included from basic displaying model, it is determined that corresponding with the associated data
The aspect of model;
It should be noted that for showing that the basic displaying model of associated data is generated according to associated data
, thus the aspect of model corresponding with the associated data that the basic displaying model often has, then close
Connection data can be represented by the aspect of model corresponding with the associated data on basic displaying model.
Such as, as a example by showing model for block diagram substantially, mould corresponding with associated data in the block diagram
Type is characterized as the height of block diagram middle column body;Then can by block diagram show different height cylinder,
Show the purpose of different associated datas to reach.Also such as, as a example by showing model for sphere model substantially,
The aspect of model corresponding with associated data is the location point on sphere in the sphere model.
It is assumed that by performing step 11, the basic displaying model of generation is the 3D models of the earth, then step
12 specific implementation, can include:In the location point included from the 3 D stereo earth model, really
Fixed location point corresponding with the associated data, and determine defined location point in the three-dimensional stereo model
Positional information.
For example, with the departure place data in certain airline flight course line and the data instance of destination, it is assumed that
Certain line of flight of the airline is " Beijing --- New York ", and departure place data are " Beijing geographical coordinate ",
Destination data is " New York geographic coordinate ", in order to show setting out for the course line on 3D earth models
Ground and destination, can be according to the departure place data and destination data, in the 3D earth mould
In type, it is determined that " Beijing geographical coordinate " and " New York geographic coordinate " corresponding location point.
Step 13, according to the aspect of model for determining, generates for representing incidence relation between the associated data
Linked character;
Wherein, the linked character can refer to, the feature for representing incidence relation between associated data.
Such as, it is the spy for representing incidence relation between the associated data for connecting the line segment of associated data
Levy.
In one embodiment, when the basic displaying model generated by step 11 is 3D earth models,
It is corresponding with the associated data in the aspect of model that the 3D earth models determined by step 12 are included
The aspect of model for the location point on 3D earth spheres positional information when, according to the aspect of model for determining,
The linked character for representing incidence relation between the associated data is generated, can specifically be included:According to true
Positional information of the fixed location point in the 3D earth models, generates for as Drawing of Curve benchmark
The positional information of each datum mark.
In order to more obviously on the 3D earth models show between the expression associated data
The linked character of incidence relation, in one embodiment, the embodiment of the present application generation for as curve
The position for drawing each datum mark of benchmark meets:Outside the 3 D stereo earth model.
For example, still with the departure place data in certain airline flight course line with destination data as associated data is
Example a, it is assumed that line of flight of the airline is " Beijing --- New York ", departure place data are " north
Capital geographical coordinate ", destination data is " New York geographic coordinate ", by performing the association that step 13 is generated
Feature, can be the curve for representing the departure place data and destination data incidence relation.
Because in real world, the flying height of aircraft is often have certain limitation, thus actual airplane
The distance of airline distance earth sphere of flight be often fixed range.Therefore, in 3D earth models
The linked character of incidence relation between the expression associated data of upper generation, often with certain limitation bar
Part, in one embodiment, the embodiment of the present application can be by setting ultimate range, with the satisfaction for generating
Restrictive condition, represent the linked character of incidence relation between associated data, method specifically includes:Set most
Big distance;According to the ultimate range for setting, it is determined that for the position letter of the datum mark as Drawing of Curve benchmark
Breath.
Take up an official post 1 point and the length of a curve outside spheroid in view of connection sphere, described in be connected
Even point, curve chord length is relevant, therefore, in one embodiment, the ultimate range is set
Specific method can include:It is determined that the chord length between location point corresponding with the associated data;Judge described
Whether chord length is less than the radius of the 3D earth models;When judged result is to be, according to the chord length and
First preset multiple, determines the ultimate range;When judged result is no, according to the radius and second
Preset multiple, determines the ultimate range.
Such as, still by taking the departure place data in above-mentioned airline course line and destination data as an example, it is assumed that the boat
The course line of empty company is respectively:" Beijing --- Tokyo ", " Beijing --- New York ", by performing step 12,
" Beijing ", " Tokyo " and " New York " corresponding location point respectively is determined on 3D earth models, and
It is determined that the length (L) of the corresponding location point string of connection above-mentioned " Beijing ", " Tokyo " and " New York " difference.
Assuming that determining the chord length L of the corresponding location point in Beijing location point corresponding with Tokyo1Less than 3D earth moulds
The radius (R) of type, can now set the second preset multiple is:0.2;Can then set connection Beijing with
The junction curve of location point of the Tokyo on the 3D earth models is apart from the ultimate range of sphere:0.2L.
Assuming that determining the chord length L of the corresponding location point in Beijing location point corresponding with New York2More than 3D earth moulds
The radius R of type, can now set the first preset multiple is:0.5;Connection Beijing and New York can be then set
The junction curve of the location point on the 3D earth models is apart from the ultimate range of sphere:0.5R.From
And can ensure, the height in Beijing and 2 points of Tokyo of curve distance sphere is represented on connection 3D earth models
Degree is no more than the height limitation scope for setting.
At present, people draw the path of lines often by operation mouse when using computer graphics,
And pass through mouse and drawn the effect for being often difficult arrival Freehandhand-drawing.Entered by operating mouse to make up
Row draws the above mentioned problem for occurring, and people have invented Bezier, used as the basic tool of computer graphics.
The Bezier (B é zier curve), is the mathematic curve for being applied to X-Y scheme application program.
Existing mapping software accurately can draw out curve by Bezier.Bezier is by line
What section and node were constituted, can be by four nodes (starting point, terminal and two controls on controlling curve
Node processed) to create, editing graph.As shown in Fig. 2 what is wherein played an important role is to be located at curve center
Control line.Control line is virtual, and centre intersects (crosspoint is also called intermediate point) with Bezier,
Two ends are control nodes.During the control node at mobile two ends Bezier change bent curvature of a curve (bending
Degree);During mobile intermediate point (the namely control line of mobile virtual), Bezier is in start node
Uniform movement is done in the case of being locked with terminal node;And the Bezier can be by Bezier
Formula (including linear Bezier formula, secondary Bezier formula and Cubic kolmogorov's differential system are public
Formula), obtained with the numerical value of stabilization.
Wherein, the Cubic kolmogorov's differential system formula, can be by four point P0 as shown in Figure 3,
P1, P2, P3 define Cubic kolmogorov's differential system in three dimensions.Curve originates in P0 and moves towards P1, and
P3 is come from the direction of P2.Cubic kolmogorov's differential system formula is general as shown in following formula [1]:
B (t)=P0(1-t)3+3P1t(1-t)2+3P2t2(1-t)+P3t3 [1]
Wherein, P0With P3Represent the Origin And Destination of the curve, P1With P2Represent two controls of the curve
Point, B (t) is the distance for the distance between reference sphere as the Drawing of Curve benchmark, and t is described three
Independent variable in secondary Bezier formula, it is assumed that the number of the datum mark is N, is set traversed
The number of datum mark is i, then t=i/N.
Based on above-mentioned situation, in one embodiment, can be by Cubic kolmogorov's differential system formula, and root
According to the ultimate range for setting, it is determined that for the positional information of the datum mark as Drawing of Curve benchmark, specific bag
Include:The value for setting the Origin And Destination in Cubic kolmogorov's differential system formula is equal to 0;According to the ultimate range,
It is respectively provided with two values at control point in Cubic kolmogorov's differential system formula;It is public according to Cubic kolmogorov's differential system
Formula, and positional information of the location point corresponding with the associated data in the three-dimensional stereo model, meter
Calculate the positional information of the datum mark.
It should be noted that because the curve is location point corresponding with associated data on connection sphere
Curve, so the Origin And Destination of the curve is the point on 3D earth surfaces;Therefore, it can set described
The value of P0 and P3 is equal to 0 in Cubic kolmogorov's differential system formula;P1 can also be set for the ultimate range
/ 2nd of (being referred to as MaxDesc afterwards), setting P2 is the ultimate range MaxDesc;Then can be with
Formula [1] is converted into following formula [2]:
B (t)=3*MaxDesc/2*i/N* (1-i/N)2+3*MaxDesc*(i/N)2*(1-i/N) [2]
And according to the formula, calculate respectively for drawing each distance between reference 3D earth tables on the curve
The distance in face, so that it is determined that the positional information of each datum mark.
Also, it should be noted that being likely to not merely there was only a kind of incidence relation between associated data.Such as,
A states include to B states export goods, the then incidence relation for existing between A states and B states:" A states --- B
The outlet incidence relation of state ", and " B states --- A states " import incidence relation;Also such as, certain boat
There are two course lines in empty company between " Beijing " and " New York ", respectively " Beijing --- New York " and
" New York --- Beijing ", above-mentioned two course lines represent that departure place is " knob for " Beijing " and departure place respectively
About ".In order to can be on the 3D earth models, by incidence relation different between identical associated data
Difference displaying is carried out, in one embodiment, the embodiment of the present application can be by being respectively provided with three shellfish plugs
The value at two control points (P1 and P2) in your curve equation, to change between the statement associated data
The shape of the curve of different incidence relations, can specifically include following two situations:
Situation 1:The value for being arranged close to the control point of terminal is equal to described apart from maximum, and has been arranged close to
The value at the control point of point is less than the value near the control point of terminal;P2=MaxDesc can be set,
P1=MaxDesc/2.
Situation 2:The value for being arranged close to the control point of starting point is equal to described apart from maximum, and is arranged close to end
The value at the control point of point is less than the value near the control point of starting point;P1=MaxDesc can be set,
P2=MaxDesc/2.
For example, as a example by two course lines by airline between " Beijing " and " New York ", can set
P1=MaxDesc, P2=MaxDesc/2, and according to Cubic kolmogorov's differential system formula, calculate for drawing
Represent incidence relation (departure place between " Beijing " and " New York ":Beijing --- destination:New York)
The positional information of the datum mark of curve;And P1=MaxDesc/2, P2=MaxDesc can be set, according to three
Secondary Bezier formula, calculates and (is set out with " New York " incidence relation for drawing expression " Beijing "
Ground:New York --- destination:Beijing) curve datum mark positional information.By such mode,
With two different curves for causing to be drawn out on 3D earth surfaces, as shown in figure 4, dotted line represents one
Bar represents one from New York to Beijing course line from the course line in Beijing to New York, solid line.
Step 14, displaying is associated by basic displaying model and the linked character.
Wherein, the association displaying, can refer to will basic displaying model and linked character be illustrated in it is same
In interface.To show model substantially for as a example by 3D earth models, to represent incidence relation between associated data
Linked character be the curve for connecting location point of the associated data on the 3D earth models as a example by, then will
The concrete mode that the 3D earth models and the linked character are associated displaying includes:In the 3D earth
On model, it is determined that with the location point corresponding to two end points of curve;According to the phase of curve and the location point
To position relationship, the 3D earth models and curve are shown in same interface, as shown in Figure 5.
Or, the association displaying, it is also possible to refer to the association according to incidence relation between expression associated data
Feature, the linked character is drawn on basic displaying model, so as to reach basic displaying model and pass
Connection feature is illustrated in the purpose at same interface.For example, still to show model as 3D earth models, table substantially
The linked character for showing incidence relation between associated data is connection associated data on the 3D earth models
As a example by the curve of location point, the 3D earth models and the linked character are associated displaying displaying
Concrete mode, sphere that can be by specified drawing tool in the 3D earth models draws the expression
The curve of linked character.For example assume that the 3D earth models are generated by 3D mapping softwares, then
Can be by the Drawing of Curve instrument (e.g., pen tool etc.) on the software, in the 3D earth models
Sphere draws the curve for representing linked character.
It should be noted that the embodiment of the present application can also be by different terminals, to basic displaying model and institute
State linked character and be associated displaying, can specifically include two kinds:
Mode 1:Basic displaying model and the linked character are locally being associated displaying.
Can be shown on local presentation device, for example, with the executive agent net of the embodiment of the present application
As a example by page browsing device, the browser can generate basic displaying model and the linked character, and at this
Displaying is associated on the webpage of browser.
Mode 2:Basic displaying model and the linked character are sent to terminal device and are associated displaying.
The basic displaying model for generating and the linked character can be sent to other-end equipment, so that
Obtain the terminal device and displaying is associated to the basic displaying model for receiving and the linked character.
It should be noted that the executive agent of the embodiment of the present application can also be server, then server can be with
The exhibition method that pass-through mode 2 is provided, end is sent to by the basic displaying model for generating and the linked character
End equipment is associated displaying.
The methods of exhibiting of the data correlation relation provided using the embodiment of the present application 1, can be by associated data
The basic displaying model for showing the associated data is generated, the model from the basic displaying model of generation is special
In levying, it is determined that the aspect of model corresponding with associated data, and then according to the aspect of model for determining, generating is used for
Represent the linked character of incidence relation between the associated data, and by basic displaying model and associating for generating
Feature is associated displaying, right such that it is able to reach the linked character by basic displaying model and generation
The purpose that the incidence relation of data is shown.
Embodiment 2
The application implements to provide a kind of exhibiting device of data correlation relation, is used to provide a kind of to incidence number
The scheme that incidence relation between is shown.The concrete structure schematic diagram of the device is as shown in fig. 6, bag
Include basic displaying model generation unit 21, aspect of model determining unit 22, linked character generation unit 23 with
And display unit 24.
Wherein, basic displaying model generation unit 21, for according to associated data, generating for showing association
The basic displaying model of data.
Aspect of model determining unit 22, for from the basic displaying aspect of model that includes of model, it is determined that
The aspect of model corresponding with the associated data.
Linked character generation unit 23, for according to the aspect of model for determining, generating for representing the association
The linked character of incidence relation between data.
Display unit 24, for basic displaying model and the linked character to be associated into displaying.
In one embodiment, basic displaying model generation unit 21, is used for:When the associated data,
During for the data for representing geographical position, according to associated data, the 3 D stereo for showing associated data is generated
Model.
In one embodiment, aspect of model determining unit 22, is used for:When basic displaying model generation is single
When unit is for the three-dimensional stereo model for generating the earth, from the location point that the 3 D stereo earth model is included
In, it is determined that location point corresponding with the associated data, and determine defined location point in the 3 D stereo
Positional information in model.
In one embodiment, linked character generation unit 23, is used for:According to defined location point in institute
The positional information in three-dimensional stereo model is stated, the position for each datum mark as Drawing of Curve benchmark is generated
Information;Wherein, the position of each datum mark meets:Outside the 3 D stereo earth model.
In one embodiment, linked character generation unit 23, is used for:Ultimate range is set;According to setting
The ultimate range put, it is determined that for the positional information of the datum mark as Drawing of Curve benchmark.
In one embodiment, linked character generation unit 23, is used for:It is determined that with the associated data pair
Chord length between the location point answered;Judge the chord length whether less than the half of the 3 D stereo earth model
Footpath;When judged result is to be, according to the chord length and the first preset multiple, the ultimate range is determined;
When judged result is no, according to the radius and the second preset multiple, the ultimate range is determined.
In one embodiment, linked character generation unit 23, is used for:It is public that Cubic kolmogorov's differential system is set
The value of the Origin And Destination in formula is equal to 0;According to the ultimate range, Cubic kolmogorov's differential system is respectively provided with
Two values at control point in formula;According to Cubic kolmogorov's differential system formula, and with the associated data pair
Positional information of the location point answered in the three-dimensional stereo model, calculates the positional information of the datum mark.
In one embodiment, linked character generation unit 23, is used for:It is arranged close to the control point of terminal
Value be equal to it is described apart from maximum, and be arranged close to starting point control point value less than near terminal control
The value of point;Or be arranged close to the value at the control point of starting point and be equal to described apart from maximum, and it is arranged close to terminal
Control point value less than near the control point of starting point value.
In one embodiment, display unit 24, are used for:Model and the linked character will substantially be shown
Locally it is being associated displaying;Or basic displaying model and the linked character are sent to terminal device and carried out
Association displaying.
In one embodiment, the associated data, including following at least one:Goods allocation data;
Staff redeployment data.
The exhibiting device of the data correlation relation provided using the embodiment of the present application 2, can be by associated data
The basic displaying model for showing the associated data is generated, the model from the basic displaying model of generation is special
In levying, it is determined that the aspect of model corresponding with associated data, and then according to the aspect of model for determining, generating is used for
Represent the linked character of incidence relation between the associated data, and by basic displaying model and associating for generating
Feature is associated displaying, right such that it is able to reach the linked character by basic displaying model and generation
The purpose that the incidence relation of data is shown.
The present invention is produced with reference to method according to embodiments of the present invention, equipment (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can by computer program instructions realize flow chart and
/ or block diagram in each flow and/or the flow in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions to all-purpose computer, special-purpose computer, insertion can be provided
The processor of formula processor or other programmable data processing devices is producing a machine so that by calculating
The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one
The device of the function of being specified in individual flow or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or the treatment of other programmable datas to set
In the standby computer-readable memory for working in a specific way so that storage is in the computer-readable memory
Instruction produce include the manufacture of command device, the command device realization in one flow of flow chart or multiple
The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made
Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place
Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of being specified in flow or multiple one square frame of flow and/or block diagram or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/defeated
Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by appointing
What method or technique realizes information Store.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read-only storage (ROM), electrically erasable are read-only
Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage
(CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be calculated
The information that equipment is accessed.Defined according to herein, computer-readable medium does not include temporary computer-readable matchmaker
Body (transitory media), such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, commodity or equipment including a series of key elements are not only wrapped
Include those key elements, but also other key elements including being not expressly set out, or also include for this process,
Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by sentence " including
One ... " key element that limits, it is not excluded that in the process including the key element, method, commodity or set
Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.And, the application can be used and wherein include calculating at one or more
Machine usable program code computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM,
Optical memory etc.) on implement computer program product form.
Embodiments herein is the foregoing is only, the application is not limited to.For this area skill
For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle
Any modification, equivalent substitution and improvements of work etc., within the scope of should be included in claims hereof.