CN106383828B - A kind of drawing practice and electronic equipment - Google Patents
A kind of drawing practice and electronic equipment Download PDFInfo
- Publication number
- CN106383828B CN106383828B CN201610705438.9A CN201610705438A CN106383828B CN 106383828 B CN106383828 B CN 106383828B CN 201610705438 A CN201610705438 A CN 201610705438A CN 106383828 B CN106383828 B CN 106383828B
- Authority
- CN
- China
- Prior art keywords
- information
- motion vector
- data information
- static
- geodata
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
Abstract
The invention discloses a kind of drawing practice and electronic equipments, comprising: geodata information corresponding with a region is loaded in the GIS platform;Static polar plot is drawn according to the static data information in the geodata information;Motion vector figure is drawn according to the dynamic data information in the geodata information, and the motion vector figure is stored in the buffer area of the electronic equipment;The motion vector figure is read from the buffer area, and loads the motion vector figure on the static polar plot, to obtain the area map in the region.The technical solution provided through the invention solves the GIS platform of the electronic equipment in the prior art technical problem lower there are drawing efficiency.
Description
Technical field
The present invention relates to electronic technology field, in particular to a kind of drawing practice and electronic equipment.
Background technique
With the continuous development and application of information technology, the display and processing of more and more large size geography information are depended on
GIS platform, it is also more diversified to the utilization of GIS platform, by traditional function such as single display electronic map, generation statistical graphs
Can, gradually to multi-field, more scientific developments such as intelligent transportation, smart city, war deductions.
Currently, in the prior art, although some GIS platforms solve the problems, such as that drawing element dynamics updates efficiency, still
For certain special screnes, need the element drawn will be according to on-site actual situations dynamic change and increase and decrease, in this way to tradition
GIS platform cause very large overhead in element management aspect, cause drawing efficiency to reduce.
As it can be seen that the GIS platform of the electronic equipment technical problem lower there are drawing efficiency in the prior art.
Summary of the invention
The embodiment of the present invention provides a kind of drawing practice and electronic equipment, for solving electronic equipment in the prior art
The GIS platform technical problem lower there are drawing efficiency, to reach the technical effect for improving GIS platform drawing efficiency.
The embodiment of the present application provides a kind of drawing practice, is applied to an electronic equipment, and the electronic equipment is equipped with ground
Manage information system GIS platform, which comprises
Geodata information corresponding with a region is loaded in the GIS platform;
Static polar plot is drawn according to the static data information in the geodata information;
Motion vector figure is drawn according to the dynamic data information in the geodata information, and by the motion vector figure
It is stored in the buffer area of the electronic equipment;
The motion vector figure is read from the buffer area, and the dynamic arrow is loaded on the static polar plot
Spirogram, to obtain the area map in the region.
Optionally, it is described load corresponding with region geodata information in the GIS platform after, the method
Further include:
According to the corresponding data volume of the geodata information, raster map layer is created, wherein the raster map layer is for holding
Carry image information;
According to the quantity of the raster map layer, determine distributed computing grid thread number and the buffer area.
Optionally, the static data information according in the geodata information draws static polar plot, comprising:
Host computer grid process obtains the static data information in the geodata information according to prefixed time interval;
When the static data information is the first static data information, the host computer grid process is according to described first
Static data information draws the first static map vector.
Optionally, the dynamic data information according in the geodata information draws motion vector figure, and by institute
Motion vector figure is stated to be stored in the buffer area of the electronic equipment, comprising:
The distributed computing grid thread obtains in real time and calculates the dynamic data information in the geodata information,
Dynamic data information after being calculated;
Motion vector is drawn according to the dynamic data information after the calculating by the graphics module in the electronic equipment
Figure;
The motion vector figure is stored in the buffer area.
Optionally, the graphics module by the electronic equipment is drawn according to the dynamic data information after the calculating
Dynamic polar plot, comprising:
Obtain the mapping relations between latitude and longitude coordinates and pixel coordinate;
According to the mapping relations, the first latitude and longitude coordinates corresponding with the center of the first object are mapped as first
Pixel coordinate, wherein first object is at least one object corresponding with the dynamic data information after the calculating
Any object;
The first size and first object for obtaining first object are on the display unit of the electronic equipment
Position;
According to the mapping relations, the size and the position, by first object in addition to the center
At least one second latitude and longitude coordinates of at least one second position be mapped as at least one second pixel coordinate;
Motion vector figure is drawn according to first pixel coordinate and at least one described second pixel coordinate.
Optionally, the method also includes:
Raster map layer corresponding with the distribution grid thread is overlapped, superimposed raster map layer is obtained.
Optionally, described that the motion vector figure is obtained from the buffer area, and add on the static polar plot
The motion vector figure is carried, to obtain the area map in the region, comprising:
The host computer grid thread obtains the motion vector figure according to prefixed time interval from the buffer area,
Wherein, the motion vector figure is carried by the superimposed raster map layer.
The motion vector figure is loaded on the static polar plot, to obtain the area map in the region.
On the other hand, the embodiment of the present application also provides a kind of electronic equipment, is equipped with Distribution GIS platform, institute
Stating electronic equipment includes:
Shell;
Graphics module is arranged in the shell;
Processing unit is connect with the graphics module, for loading geography corresponding with a region in the GIS platform
Data information;Static polar plot is drawn according to the static data information in the geodata information;According to the geodata
Dynamic data information in information draws motion vector figure, and the motion vector figure is stored in the buffering of the electronic equipment
In region;And the motion vector figure is read from the buffer area, and load the dynamic on the static polar plot
Polar plot, to obtain the area map in the region.
Optionally, it is described load corresponding with region geodata information in the GIS platform after, the processing
Device is also used to:
According to the corresponding data volume of the geodata information, raster map layer is created, wherein the raster map layer is for holding
Carry image information;
According to the quantity of the raster map layer, determine distributed computing grid thread number and the buffer area.
Optionally, the processing unit is used for:
According to prefixed time interval obtain the static number in the geodata information by host computer grid process it is believed that
Breath;
When the static data information is the first static data information, the host computer grid process is according to described first
Static data information draws the first static map vector.
Optionally, the processing unit is used for:
It is obtained in real time by the distributed computing grid thread and calculates the dynamic data in the geodata information
Information, the dynamic data information after being calculated;
Motion vector figure is drawn according to the dynamic data information after the calculating by the graphics module;
The motion vector figure is stored in the buffer area.
Optionally, the processing unit is used for:
Obtain the mapping relations between latitude and longitude coordinates and pixel coordinate;
According to the mapping relations, the first latitude and longitude coordinates corresponding with the center of the first object are mapped as first
Pixel coordinate, wherein first object is at least one object corresponding with the dynamic data information after the calculating
Any object;
The first size and first object for obtaining first object are on the display unit of the electronic equipment
Position;
According to the mapping relations, the size and the position, by first object in addition to the center
At least one second latitude and longitude coordinates of at least one second position be mapped as at least one second pixel coordinate;
Motion vector figure is drawn according to first pixel coordinate and at least one described second pixel coordinate.
Optionally, the processing unit is also used to:
Raster map layer corresponding with the distribution grid thread is overlapped, superimposed raster map layer is obtained.
Optionally, the processing unit is used for:
Obtain the dynamic arrow from the buffer area according to prefixed time interval by the host computer grid thread
Spirogram, wherein the motion vector figure is carried by the superimposed raster map layer.
The motion vector figure is loaded on the static polar plot, to obtain the area map in the region.
On the other hand, the embodiment of the present application also provides a kind of electronic equipment, is equipped with Distribution GIS platform, institute
Stating electronic equipment includes:
First loading unit, for loading geodata information corresponding with a region in the GIS platform;
First drawing unit, for drawing static polar plot according to the static data information in the geodata information;
Second drawing unit, for drawing motion vector figure according to the dynamic data information in the geodata information,
And the motion vector figure is stored in the buffer area of the electronic equipment;
First acquisition unit, for reading the motion vector figure from the buffer area, and in the static vector
The motion vector figure is loaded on figure, to obtain the area map in the region.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects
Fruit:
One, due to the technical solution in the embodiment of the present application, geography corresponding with a region is loaded in the GIS platform
Data information;Static polar plot is drawn according to the static data information in the geodata information;According to the geodata
Dynamic data information in information draws motion vector figure, and the motion vector figure is stored in the buffering of the electronic equipment
In region;The motion vector figure is read from the buffer area, and the dynamic arrow is loaded on the static polar plot
Spirogram, to obtain the area map in the region.It i.e. will not be as in the prior art, for certain special screnes, needing to draw
Element traditional GIS platform will be caused in element management aspect in this way according to on-site actual situations dynamic change and increase and decrease
Very large overhead causes drawing efficiency to reduce, and in technical solution, it is that will load data to be divided into static data and dynamic number
According to being drawn respectively according to static data and dynamic data, and be managed respectively, to avoid GIS platform in element management
Compared with large overhead caused by aspect, thus it is possible to effectively solve the GIS platform of electronic equipment in the prior art, that there are drawing efficiencies is low
The technical issues of, to reach the technical effect for improving drawing efficiency.
Two, due to the technical solution in the embodiment of the present application, host computer grid process obtains institute according to prefixed time interval
State the static data information in geodata information;When the static data information is the first static data information, the master
Computation grid process draws the first static map vector according to the first static data information.I.e. in the technical scheme, right
It in the drafting of static map vector, only when static data information changes, is just drawn, to avoid to containing quiet
The distributed grid region of state data is updated, and improves the technical effect for drawing efficiency further to reach.
Three, due to the technical solution in the embodiment of the present application, the distributed computing grid thread is obtained and is calculated in real time
Dynamic data information in the geodata information, the dynamic data information after being calculated;By in the electronic equipment
Graphics module according to after the calculating dynamic data information draw motion vector figure;The motion vector figure is stored in institute
It states in buffer area.It i.e. in the technical scheme, is the dynamic calculated in real time by distributed computing grid thread in map scene
Data, and the geodata use of information for needing to draw is drawn and develops class realization, when not only reached the operation of mitigation GIS platform
Load, while enrich draw effect multifarious technical effect.
Detailed description of the invention
Fig. 1 is a kind of specific implementation flow chart for drawing processing method that the embodiment of the present application one provides;
The specific implementation flow chart of step S103 in a kind of drawing processing method that Fig. 2 provides for the embodiment of the present application one;
Fig. 3 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present application two provides;
Fig. 4 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present application three provides.
Specific embodiment
Technical solution provided by the embodiments of the present application, the GIS platform for solving electronic equipment in the prior art, which exists, draws
The technical issues of figure low efficiency, to reach the technical effect for improving drawing efficiency.
Technical solution in the embodiment of the present application is in order to solve the above technical problems, general thought is as follows:
Geodata information corresponding with a region is loaded in the GIS platform;
Static polar plot is drawn according to the static data information in the geodata information;
Motion vector figure is drawn according to the dynamic data information in the geodata information, and by the motion vector figure
It is stored in the buffer area of the electronic equipment;
The motion vector figure is read from the buffer area, and the dynamic arrow is loaded on the static polar plot
Spirogram, to obtain the area map in the region.
In the above-mentioned technical solutions, geodata information corresponding with a region is loaded in the GIS platform;According to institute
It states the static data information in geodata information and draws static polar plot;According to the dynamic data in the geodata information
Information draws motion vector figure, and the motion vector figure is stored in the buffer area of the electronic equipment;Delay from described
It rushes in region and reads the motion vector figure, and load the motion vector figure on the static polar plot, described in obtaining
The area map in region.It i.e. will not be as in the prior art, for certain special screnes, needing the element drawn will be according to scene
Actual conditions dynamic change and increase and decrease cause very large overhead in element management aspect to traditional GIS platform in this way, cause to draw
Efficiency reduces, and in technical solution, it is that will load data to be divided into static data and dynamic data, respectively according to static data
It is drawn with dynamic data, and is managed respectively, to avoid GIS platform compared with large overhead caused by the element management aspect,
Thus it is possible to which the technical problem that the GIS platform for effectively solving electronic equipment in the prior art is low there are drawing efficiency, is mentioned with reaching
The technical effect of high drawing efficiency.
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Apply embodiment, for those of ordinary skill in the art, without creative efforts, can also basis mention
The attached drawing of confession obtains other attached drawings.
Embodiment one
Referring to FIG. 1, a kind of drawing practice provided for the embodiment of the present application one, comprising:
S101: geodata information corresponding with a region is loaded in the GIS platform;
S102: static polar plot is drawn according to the static data information in the geodata information;
S103: motion vector figure is drawn according to the dynamic data information in the geodata information, and by the dynamic
Polar plot is stored in the buffer area of the electronic equipment;
S104: the motion vector figure is read from the buffer area, and on the static polar plot described in load
Motion vector figure, to obtain the area map in the region.
A kind of drawing practice provided by the embodiments of the present application can be applied to the electricity for being equipped with Distribution GIS platform
Sub- equipment, the electronic equipment may include the network equipment or user equipment, wherein the network equipment includes but is not limited to single network
Server, the server group of multiple network servers composition or being made of a large amount of hosts or network server based on cloud computing
Cloud;The electronic equipment may be user equipment, and including but not limited to any one can pass through keyboard, mouse, remote control with user
The modes such as device, touch tablet or voice-operated device carry out the electronic equipment of human-computer interaction, such as: smart phone, tablet computer or pen
Remember this computer.
GIS platform is the software that can be provided storage, display, analyze geographical data function in the embodiment of the present application.Specifically
It can be ArcGIS, Supermap or MapGIS or be other types of GIS platform, not make in the embodiment of the present application specific
It limits.
Step S101 is first carried out in the embodiment of the present application: being loaded correspondingly with a region in the GIS platform
Manage data information.
Geodata information in the embodiment of the present application can be divided into non-electrical subdata, such as: plane-table operation data, engineering
Measurement data, notes, aviation, remote sensing photograph, various statistics etc.;Geodata information can also be electronic data, such as: whole station
Instrument, GPS data geophysics, geochemistry remotely-sensed data etc., or be other data etc., in the embodiment of the present application for ground
The source of reason data information is not especially limited.
During specific implementation, after obtaining corresponding geodata information, then the geodata information that will acquire
Be loaded onto GIS module, obtain load data after, will also to load data analyze, such as: will load data be divided into it is quiet
State data information and dynamic data information.It in the embodiment of the present application can be according to preset rules, with the parameter set
It is compared, specifically such as: when having trees, flowers and plants, road, river in the geodata information of acquisition, then by corresponding number
According to as static data;There are vehicle, Hang Renshi in the geodata information of acquisition, using these corresponding data as dynamic number
According to.
In the embodiment of the present application, after loading geodata information corresponding with a region in GIS platform, the side
Method further include:
According to the corresponding data volume of the geodata information, raster map layer is created, wherein the raster map layer is for holding
Carry image information;
According to the quantity of the raster map layer, determine distributed computing grid thread number and the buffer area.
After loading corresponding geodata information, then grid are created according to the precision of the geodata information of load
Trrellis diagram layer.During specific implementation, when the map datum of load is park, since the object for including in park is more, such as:
River, trees, flowers and plants etc. do not need specifically to refine to river, trees, flowers and plants etc. for country map, because
This, the precision of the corresponding geodata information of country map will be lower than the data essence of the corresponding geodata information of park map
Degree.When loading the geodata information in park, corresponding raster map layer number will be more than the geography of load country map as a result,
The number of corresponding raster map layer when data information.
It in the embodiment of the present application, will also be according to the data of the geodata information of load after creating raster map layer
Amount determines distribution computation grid thread and the buffer area for buffer user data.Such as: certain grid drawings calculate number
It is smaller according to measuring, then it is incorporated into neighbouring grid thread buffer, drawing data amount is determined according to threshold value, such as some grid minimum threshold
10 entities are preset as, 200 entities are up to, lower than a physical quantities, then merge such as neighbouring grid thread, if being more than 200
A entity then splits the grid.
In the embodiment of the present application, the corresponding grid of a raster map layer, the corresponding distribution of a grid calculate grid
Ruling journey.During specific implementation, distributed computing grid thread is used for dynamic multi-objective geography information, such as: vehicle, row
The dynamic of people etc. is calculated and is drawn.
After executing the step S101, S102 is thened follow the steps: according to the static data in the geodata information
Information draws static polar plot.
During specific implementation, during the specific implementation of step S102, specifically comprise the following steps:
Host computer grid process obtains the static data information in the geodata information according to prefixed time interval;
When the static data information is the first static data information, the host computer grid process is according to described first
Static data information draws the first static map vector.
In the embodiment of the present application, geodata information is loaded in first time, and obtains the static state in geodata information
After data information, it is static that host computer grid thread then utilizes the GIS platform in electronic equipment to be drawn according to static data information
Map vector.
After first time draws static map vector, host computer grid thread is in addition to utilizing GIS platform to rendered
Static map vector carry out except maintenance and management, obtained in the geodata information that newly loads according further to prefixed time interval
New static data information, and by new static data information with first time obtain static data information be compared, if
There is no variations, then without drawing;If changing, such as: since extension needs, parking lot being moved by original location A
B location is moved to, at this moment, host computer grid thread will the first static data according to new static data information, i.e., in the application
Information is drawn, and the first static map vector is obtained.
In the embodiment of the present application, after carrying out static vector drawing for the first time, only occur in static data information
It when variation, is just drawn, to avoid being updated the distributed raster data containing static data, is mentioned with reaching again
Height draws the technical effect of efficiency.
In the application implementation, after executing the step S102, S103 is thened follow the steps: being believed according to the geodata
Dynamic data information in breath draws motion vector figure, and the motion vector figure is stored in the buffer area of the electronic equipment
In domain.
In the embodiment of the present application, for the specific implementation process of step S103, referring to FIG. 2, specifically including following step
It is rapid:
S201: the distributed computing grid thread obtains in real time and calculates the dynamic data in the geodata information
Information, the dynamic data information after being calculated;
S202: dynamic is drawn according to the dynamic data information after the calculating by the graphics module in the electronic equipment
Polar plot;
S203: the motion vector figure is stored in the buffer area.
In the embodiment of the present application, step S201 is first carried out: the distributed computing grid thread is obtained and is counted in real time
Calculate the dynamic data information in the geodata information, the dynamic data information after being calculated.
During specific implementation, dynamic data in the distributed real-time zoning scene of grid thread, such as: vehicle,
Aircraft, pedestrian etc. obtain position or state of the object in region scene etc. after calculating, specifically such as: obtaining in region scene
The latitude and longitude coordinates of first object one tree;Either obtain the state in full bloom etc. of the second object flower in region scene.
After executing the step S201, then follow the steps S202: by the graphics module in the electronic equipment according to
Dynamic data information after the calculating draws motion vector figure.
In the embodiment of the present application, for the specific implementation process of step S202, specifically comprise the following steps:
Obtain the mapping relations between latitude and longitude coordinates and pixel coordinate;
According to the mapping relations, the first latitude and longitude coordinates corresponding with the center of the first object are mapped as first
Pixel coordinate, wherein first object is at least one object corresponding with the dynamic data information after the calculating
Any object;
The first size and first object for obtaining first object are on the display unit of the electronic equipment
Position;
According to the mapping relations, the size and the position, by first object in addition to the center
At least one second latitude and longitude coordinates of at least one second position be mapped as at least one second pixel coordinate;
Motion vector figure is drawn according to first pixel coordinate and at least one described second pixel coordinate.
During specific implementation, the dynamic data information after calculating is passed to before graphics module drawn, also
Coordinate conversion is carried out, i.e., is mapped the latitude and longitude coordinates of image data by latitude and longitude coordinates and the mapping relations of pixel coordinate
It can be carried out in the embodiment of the present application by the coordinates translation interface such as arcgis, hypergraph, opencpn for screen pixels coordinate
Coordinate conversion.
During specific implementation, coordinate conversion is broadly divided into two steps, and first step is corresponding for dynamic data information
At least one object in the first object, such as: vehicle, pedestrian center coordinate transform, specifically, such as vehicle
The latitude and longitude coordinates (36 degree, 36 degree) of central point, the height of the display screen of electronic equipment are at this moment 40cm, width 60cm turn
Screen pixels coordinate after change is then (24cm, 24cm).
Continue to continue to use the example above, second step is then the coordinate conversion of the key point of the first subject vehicle, specific real
The specific size for also relating to the first object during now and position on the screen.
After carrying out coordinate conversion, then by the graphics module in electronic equipment, such as: opengl, GDI+ draw soft
Part is realized, while can also handle graph data using GPU, thereby increase the real-time of multiple target drafting, customer service biography
The single defect of GIS platform element species of uniting itself, reaches the technical effect of abundant element species.
In the embodiment of the present application, after executing the step S202, S203 is thened follow the steps: by the motion vector figure
It is stored in the buffer area.
During specific implementation, buffer area is stored in by motion vector figure is drawn in distributed computing grid thread
In, to wait host computer grid thread to carry out unified update to drawing image, make the operation on foreground and the place of backstage complex figure
Reason is not interfere with each other, to reach the technical effect for improving and drawing efficiency.
In the embodiment of the present application, after motion vector figure being stored in buffer area, the method also includes:
Raster map layer corresponding with the distribution grid thread is overlapped, superimposed raster map layer is obtained.
During specific implementation, raster map layer corresponding with distributed computing grid thread is overlapped, wait lead
Computation grid thread loads on motion vector figure on raster map layer, after reading motion vector figure in buffer area with shape
At complete figure.
After executing the step S103, S104 is thened follow the steps: the motion vector is read from the buffer area
Figure, and the motion vector figure is loaded on the static polar plot, to obtain the area map in the region.
In the embodiment of the present application, for the specific implementation process of step S104, specifically comprise the following steps:
The host computer grid thread obtains the motion vector figure according to prefixed time interval from the buffer area,
Wherein, the motion vector figure is carried by the superimposed raster map layer.
The motion vector figure is loaded on the static polar plot, to obtain the area map in the region.
In the embodiment of the present application, time interval can be determined according to the area type of actual loaded, as: if load
Area type is park, due in geodata information corresponding with park based on static data information, data are more
New speed is slower, so, prefixed time interval can be 12 hours, 24 hours or 48 hours etc., those of ordinary skill in the art
It can be set, be not especially limited in the embodiment of the present application according to actual needs;And if the area type loaded is height
Build bridge, due in geodata information corresponding with overpass based on dynamic data information, the renewal speed of data compared with
Fastly, so, prefixed time interval can be 30 minutes, 1 hour, 2 hours or other time interval, those of ordinary skill in the art
It can be set, be not especially limited in the embodiment of the present application according to actual needs.
Embodiment two
Referring to FIG. 3, the embodiment of the present application also provides a kind of electronic equipment, Distribution GIS platform is installed, is wrapped
It includes:
Shell 30;
Graphics module 31 is arranged in the shell 30;
Processing unit 32, it is corresponding with a region for being loaded in the GIS platform with the graphics module 31 processing
Geodata information;Static polar plot is drawn according to the static data information in the geodata information;According to the geography
Dynamic data information in data information draws motion vector figure, and the motion vector figure is stored in the electronic equipment
In buffer area;And the motion vector figure is read from the buffer area, and on the static polar plot described in load
Motion vector figure, to obtain the area map in the region.
Optionally, it is described load corresponding with region geodata information in the GIS platform after, the processing
Device 32 is also used to:
Create raster map layer, wherein the raster map layer is used for carry image information;
According to the quantity of the raster map layer, determine distributed computing grid thread number and the buffer area.
Optionally, the processing unit 32 is used for:
According to prefixed time interval obtain the static number in the geodata information by host computer grid process it is believed that
Breath;
When the static data information is the first static data information, the host computer grid process is according to described first
Static data information draws the first static map vector.
Optionally, the processing unit 32 is used for:
It is obtained in real time by the distributed computing grid thread and calculates the dynamic data in the geodata information
Information, the dynamic data information after being calculated;
Motion vector figure is drawn according to the dynamic data information after the calculating by the graphics module;
The motion vector figure is stored in the buffer area.
Optionally, the processing unit 32 is used for:
Obtain the mapping relations between latitude and longitude coordinates and pixel coordinate;
According to the mapping relations, the first latitude and longitude coordinates corresponding with the center of the first object are mapped as first
Pixel coordinate, wherein first object is at least one object corresponding with the dynamic data information after the calculating
Any object;
The first size and first object for obtaining first object are on the display unit of the electronic equipment
Position;
According to the mapping relations, the size and the position, by first object in addition to the center
At least one second latitude and longitude coordinates of at least one second position be mapped as at least one second pixel coordinate;
Motion vector figure is drawn according to first pixel coordinate and at least one described second pixel coordinate.
Optionally, the processing unit 32 is also used to:
Raster map layer corresponding with the distribution grid thread is overlapped, superimposed raster map layer is obtained.
Optionally, the processing unit 32 is used for:
Obtain the dynamic arrow from the buffer area according to prefixed time interval by the host computer grid thread
Spirogram, wherein the motion vector figure is carried by the superimposed raster map layer.
The motion vector figure is loaded on the static polar plot, to obtain the area map in the region.
Embodiment three
Referring to FIG. 4, Distribution GIS platform is installed the embodiment of the present application also provides a kind of electronic equipment,
Include:
First loading unit 40, for loading geodata information corresponding with a region in the GIS platform;
First drawing unit 41, for drawing static vector according to the static data information in the geodata information
Figure;
Second drawing unit 42, for drawing motion vector according to the dynamic data information in the geodata information
Figure, and the motion vector figure is stored in the buffer area of the electronic equipment;
Second loading unit 43, for reading the motion vector figure from the buffer area, and in the static arrow
The motion vector figure is loaded on spirogram, to obtain the area map in the region.
Optionally, it is described load corresponding with region geodata information in the GIS platform after, the electronics
Equipment further include:
First creating unit, for creating raster map layer according to the corresponding data volume of the geodata information, wherein
The raster map layer is used for carry image information;
First determination unit determines the number of distributed computing grid thread for the quantity according to the raster map layer
And the buffer area.
Optionally, first drawing unit 41, comprising:
First obtains module, believes for obtaining the geodata according to prefixed time interval by host computer grid process
Static data information in breath;
First drafting module is used for when the static data information is the first static data information, the host computer grid
Lattice process draws the first static map vector according to the first static data information.
Optionally, second drawing unit 42, comprising:
First computing module, for being obtained in real time by the distributed computing grid thread and calculating the geodata
Dynamic data information in information, the dynamic data information after being calculated;
Second drafting module, for by the graphics module in the electronic equipment according to the dynamic data after the calculating
Information draws motion vector figure;
First memory module, for the motion vector figure to be stored in the buffer area.
Optionally, second drafting module is also used to:
Obtain the mapping relations between latitude and longitude coordinates and pixel coordinate;
According to the mapping relations, the first latitude and longitude coordinates corresponding with the center of the first object are mapped as first
Pixel coordinate, wherein first object is at least one object corresponding with the dynamic data information after the calculating
Any object;
The first size and first object for obtaining first object are on the display unit of the electronic equipment
Position;
According to the mapping relations, the size and the position, by first object in addition to the center
At least one second latitude and longitude coordinates of at least one second position be mapped as at least one second pixel coordinate;
Motion vector figure is drawn according to first pixel coordinate and at least one described second pixel coordinate.
Optionally, the electronic equipment further include:
Second obtains module, for raster map layer corresponding with the distribution grid thread to be overlapped, is folded
Raster map layer after adding.
Optionally, second loading unit, comprising:
Third obtains module, for by the host computer grid thread according to prefixed time interval from the buffer area
It is middle to obtain the motion vector figure, wherein the motion vector figure is carried by the superimposed raster map layer.
4th obtains module, for loading the motion vector figure on the static polar plot, to obtain the region
Area map.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects
Fruit:
One, due to the technical solution in the embodiment of the present application, geography corresponding with a region is loaded in the GIS platform
Data information;Static polar plot is drawn according to the static data information in the geodata information;According to the geodata
Dynamic data information in information draws motion vector figure, and the motion vector figure is stored in the buffering of the electronic equipment
In region;The motion vector figure is read from the buffer area, and the dynamic arrow is loaded on the static polar plot
Spirogram, to obtain the area map in the region.It i.e. will not be as in the prior art, for certain special screnes, needing to draw
Element traditional GIS platform will be caused in element management aspect in this way according to on-site actual situations dynamic change and increase and decrease
Very large overhead causes drawing efficiency to reduce, and in technical solution, it is that will load data to be divided into static data and dynamic number
According to being drawn respectively according to static data and dynamic data, and be managed respectively, to avoid GIS platform in element management
Compared with large overhead caused by aspect, thus it is possible to effectively solve the GIS platform of electronic equipment in the prior art, that there are drawing efficiencies is low
The technical issues of, to reach the technical effect for improving drawing efficiency.
Two, due to the technical solution in the embodiment of the present application, host computer grid process obtains institute according to prefixed time interval
State the static data information in geodata information;When the static data information is the first static data information, the master
Computation grid process draws the first static map vector according to the first static data information.I.e. in the technical scheme, right
It in the drafting of static map vector, only when static data information changes, is just drawn, to avoid to containing quiet
The distributed grid region of state data is updated, and improves the technical effect for drawing efficiency further to reach.
Three, due to the technical solution in the embodiment of the present application, the distributed computing grid thread is obtained and is calculated in real time
Dynamic data information in the geodata information, the dynamic data information after being calculated;By in the electronic equipment
Graphics module according to after the calculating dynamic data information draw motion vector figure;The motion vector figure is stored in institute
It states in buffer area.It i.e. in the technical scheme, is the dynamic calculated in real time by distributed computing grid thread in map scene
Data, and the geodata use of information for needing to draw is drawn and develops class realization, when not only reached the operation of mitigation GIS platform
Load, while enrich draw effect multifarious technical effect.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of drawing processing method in the embodiment of the present application can be stored in
CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions quilt corresponding with drawing processing method in storage medium
One electronic equipment reads or is performed, and includes the following steps:
Geodata information corresponding with a region is loaded in the GIS platform;
Static polar plot is drawn according to the static data information in the geodata information;
Motion vector figure is drawn according to the dynamic data information in the geodata information, and by the motion vector figure
It is stored in the buffer area of the electronic equipment;
The motion vector figure is read from the buffer area, and the dynamic arrow is loaded on the static polar plot
Spirogram, to obtain the area map in the region.
Optionally, the storage medium is also stored with other computer instruction, which exists
And step: the corresponding computer instruction of load geodata information corresponding with a region in the GIS platform is held
It is performed after row, which specifically comprises the following steps: during being specifically performed
Create raster map layer, wherein the raster map layer is used for carry image information;
According to the quantity of the raster map layer, determine distributed computing grid thread number and the buffer area.
Optionally, stored in the storage medium and step: the static number according in the geodata information
It is believed that breath draws static polar plot, corresponding computer instruction specifically comprises the following steps: during being specifically performed
Host computer grid process obtains the static data information in the geodata information according to prefixed time interval;
When the static data information is the first static data information, the host computer grid process is according to described first
Static data information draws the first static map vector.
Optionally, stored in the storage medium and step: the dynamic number according in the geodata information
It is believed that breath draws motion vector figure, and the motion vector figure is stored in the buffer area of the electronic equipment, it is corresponding
Computer instruction specifically comprises the following steps: during being specifically performed
The distributed computing grid thread obtains in real time and calculates the dynamic data information in the geodata information,
Dynamic data information after being calculated;
Motion vector is drawn according to the dynamic data information after the calculating by the graphics module in the electronic equipment
Figure;
The motion vector figure is stored in the buffer area.
Optionally, stored in the storage medium and step: the graphics module root by the electronic equipment
The corresponding computer instruction of motion vector figure is drawn during being specifically performed according to the dynamic data information after the calculating, tool
Body includes the following steps:
Obtain the mapping relations between latitude and longitude coordinates and pixel coordinate;
According to the mapping relations, the first latitude and longitude coordinates corresponding with the center of the first object are mapped as first
Pixel coordinate, wherein first object is at least one object corresponding with the dynamic data information after the calculating
Any object;
The first size and first object for obtaining first object are on the display unit of the electronic equipment
Position;
According to the mapping relations, the size and the position, by first object in addition to the center
At least one second latitude and longitude coordinates of at least one second position be mapped as at least one second pixel coordinate;
Motion vector figure is drawn according to first pixel coordinate and at least one described second pixel coordinate.
Optionally, it is also stored with other computer instruction in the storage medium, the other computer instruction
During being specifically performed, specifically comprise the following steps:
Raster map layer corresponding with the distribution grid thread is overlapped, superimposed raster map layer is obtained.
Optionally, stored in the storage medium and step: described that the dynamic arrow is obtained from the buffer area
Spirogram, and the motion vector figure is loaded on the static polar plot, to obtain the area map in the region, corresponding meter
The instruction of calculation machine specifically comprises the following steps: during being specifically performed
The host computer grid thread obtains the motion vector figure according to prefixed time interval from the buffer area,
Wherein, the motion vector figure is carried by the superimposed raster map layer.
The motion vector figure is loaded on the static polar plot, to obtain the area map in the region.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (11)
1. a kind of drawing practice, is applied to an electronic equipment, the electronic equipment is equipped with Distribution GIS platform, institute
The method of stating includes:
Geodata information corresponding with a region is loaded in the GIS platform;
Static polar plot is drawn according to the static data information in the geodata information;
Motion vector figure is drawn according to the dynamic data information in the geodata information, and the motion vector figure is stored
In the buffer area of the electronic equipment;
The motion vector figure is read from the buffer area, and loads the motion vector on the static polar plot
Figure, to obtain the area map in a region;
Wherein, it is described load corresponding with region geodata information in the GIS platform after, the method is also wrapped
It includes:
According to the corresponding data volume of the geodata information, raster map layer is created, wherein the raster map layer is for carrying figure
As information;
According to the quantity of the raster map layer, determine distributed computing grid thread number and the buffer area;
Wherein, the static data information according in the geodata information draws static polar plot, comprising:
Host computer grid process obtains the static data information in the geodata information according to prefixed time interval;
When the static data information is the first static data information, the host computer grid process is static according to described first
Data information draws the first static map vector;Wherein, the first static data information is the geodata of load for the first time
Static data information in information, or to be drawn in the geodata information newly loaded after static map vector in first time
New static data information.
2. the method as described in claim 1, which is characterized in that the dynamic number according in the geodata information it is believed that
Breath draws motion vector figure, and the motion vector figure is stored in the buffer area of the electronic equipment, comprising:
Distributed computing grid thread obtains in real time and calculates the dynamic data information in the geodata information, is calculated
Dynamic data information afterwards;
Motion vector figure is drawn according to the dynamic data information after the calculating by the graphics module in the electronic equipment;
The motion vector figure is stored in the buffer area.
3. method according to claim 2, which is characterized in that the graphics module by the electronic equipment is according to institute
It states the dynamic data information after calculating and draws motion vector figure, comprising:
Obtain the mapping relations between latitude and longitude coordinates and pixel coordinate;
According to the mapping relations, the first latitude and longitude coordinates corresponding with the center of the first object are mapped as the first pixel
Coordinate, wherein first object is any at least one object corresponding with the dynamic data information after the calculating
Object;
Obtain the position of the first size and first object of first object on the display unit of the electronic equipment
It sets;
According to the mapping relations, the size and the position, in addition to the center extremely by first object
At least one second latitude and longitude coordinates of few second position are mapped as at least one second pixel coordinate;
Motion vector figure is drawn according to first pixel coordinate and at least one described second pixel coordinate.
4. method as claimed in claim 3, which is characterized in that the method also includes:
Raster map layer corresponding with the distributed computing grid thread is overlapped, superimposed raster map layer is obtained.
5. method as claimed in claim 4, which is characterized in that described to obtain the motion vector from the buffer area
Figure, and the motion vector figure is loaded on the static polar plot, to obtain the area map in a region, comprising:
The host computer grid thread obtains the motion vector figure according to prefixed time interval from the buffer area,
In, the motion vector figure is carried by the superimposed raster map layer;
The motion vector figure is loaded on the static polar plot, to obtain the area map in a region.
6. a kind of electronic equipment, is equipped with Distribution GIS platform, the electronic equipment includes:
Shell;
Graphics module is arranged in the shell;
Processing unit is used to load geodata corresponding with a region in the GIS platform with graphics module processing
Information;Static polar plot is drawn according to the static data information in the geodata information;According to the geodata information
In dynamic data information draw motion vector figure, and the motion vector figure is stored in the buffer area of the electronic equipment
In;And the motion vector figure is read from the buffer area, and load the motion vector on the static polar plot
Figure, to obtain the area map in a region;
Wherein, it is described load corresponding with region geodata information in the GIS platform after, the processing unit is also
For:
According to the corresponding data volume of the geodata information, raster map layer is created, wherein the raster map layer is for carrying figure
As information;
According to the quantity of the raster map layer, determine distributed computing grid thread number and the buffer area;
Wherein, the processing unit is used for:
The static data information in the geodata information is obtained according to prefixed time interval by host computer grid process;
When the static data information is the first static data information, the host computer grid process is static according to described first
Data information draws the first static map vector;Wherein, the first static data information is the geodata of load for the first time
Static data information in information, or to be drawn in the geodata information newly loaded after static map vector in first time
New static data information.
7. electronic equipment as claimed in claim 6, which is characterized in that the processing unit is used for:
Obtain and calculate the dynamic data information in the geodata information in real time by the distributed computing grid thread,
Dynamic data information after being calculated;
Motion vector figure is drawn according to the dynamic data information after the calculating by the graphics module;
The motion vector figure is stored in the buffer area.
8. electronic equipment as claimed in claim 7, which is characterized in that the processing unit is used for:
Obtain the mapping relations between latitude and longitude coordinates and pixel coordinate;
According to the mapping relations, the first latitude and longitude coordinates corresponding with the center of the first object are mapped as the first pixel
Coordinate, wherein first object is any at least one object corresponding with the dynamic data information after the calculating
Object;
Obtain the position of the first size and first object of first object on the display unit of the electronic equipment
It sets;
According to the mapping relations, the size and the position, in addition to the center extremely by first object
At least one second latitude and longitude coordinates of few second position are mapped as at least one second pixel coordinate;
Motion vector figure is drawn according to first pixel coordinate and at least one described second pixel coordinate.
9. electronic equipment as claimed in claim 8, which is characterized in that the processing unit is also used to:
Raster map layer corresponding with the distributed computing grid thread is overlapped, superimposed raster map layer is obtained.
10. electronic equipment as claimed in claim 9, which is characterized in that the processing unit is used for:
The motion vector figure is obtained from the buffer area according to prefixed time interval by the host computer grid thread,
Wherein, the motion vector figure is carried by the superimposed raster map layer;
The motion vector figure is loaded on the static polar plot, to obtain the area map in a region.
11. a kind of electronic equipment is equipped with Distribution GIS platform, including
First loading unit, for loading geodata information corresponding with a region in the GIS platform;
First drawing unit, for drawing static polar plot according to the static data information in the geodata information;
Second drawing unit, for drawing motion vector figure according to the dynamic data information in the geodata information, and will
The motion vector figure is stored in the buffer area of the electronic equipment;
First acquisition unit, for reading the motion vector figure from the buffer area, and on the static polar plot
The motion vector figure is loaded, to obtain the area map in a region;
Wherein, the electronic equipment further include:
First creating unit, for creating raster map layer, wherein described according to the corresponding data volume of the geodata information
Raster map layer is used for carry image information;
First determination unit determines number and the institute of distributed computing grid thread for the quantity according to the raster map layer
State buffer area;
Wherein, first drawing unit, comprising:
First obtains module, for being obtained in the geodata information by host computer grid process according to prefixed time interval
Static data information;
First drafting module, for the static data information be the first static data information when, the host computer grid into
Journey draws the first static map vector according to the first static data information;Wherein, the first static data information is the
The static data information in geodata information once loaded, or newly to add after first time draws static map vector
New static data information in the geodata information of load.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610705438.9A CN106383828B (en) | 2016-08-22 | 2016-08-22 | A kind of drawing practice and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610705438.9A CN106383828B (en) | 2016-08-22 | 2016-08-22 | A kind of drawing practice and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106383828A CN106383828A (en) | 2017-02-08 |
CN106383828B true CN106383828B (en) | 2019-11-05 |
Family
ID=57916913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610705438.9A Active CN106383828B (en) | 2016-08-22 | 2016-08-22 | A kind of drawing practice and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106383828B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107193923B (en) * | 2017-05-16 | 2021-01-29 | 中国科学院遥感与数字地球研究所 | Method and system for quickly superposing vectors in two-dimensional geographic space |
CN107423071A (en) * | 2017-08-07 | 2017-12-01 | 苏州速显微电子科技有限公司 | A kind of high efficiency man-machine interface drawing practice based on static figure layer |
CN110443861A (en) * | 2018-05-04 | 2019-11-12 | 沈阳美行科技有限公司 | A kind of method, apparatus that global map is drawn and correlation navigation terminal |
CN108776691A (en) * | 2018-06-05 | 2018-11-09 | 四川凯普顿信息技术股份有限公司 | A kind of optimization method and system of space diagram aggregation |
CN109241069B (en) * | 2018-08-23 | 2020-01-10 | 中南大学 | Road network rapid updating method and system based on track adaptive clustering |
CN109745705B (en) * | 2018-12-29 | 2020-04-17 | 苏州玩友时代科技股份有限公司 | 2d game map editing method and device |
CN111486854A (en) * | 2019-01-29 | 2020-08-04 | 阿里巴巴集团控股有限公司 | Method, system, equipment and storage medium for drawing roads in electronic map |
CN115375789B (en) * | 2022-10-24 | 2023-03-10 | 山东捷瑞数字科技股份有限公司 | Method and system for generating dynamic texture based on scalable vector graphics |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2493037B (en) * | 2011-11-24 | 2013-08-07 | Chersoft Ltd | Communicating electronic map data |
CN103150328B (en) * | 2013-01-05 | 2016-06-22 | 武汉中地数码科技有限公司 | A kind of integrated approach utilizing data base's autodraft |
CN103714213B (en) * | 2013-12-30 | 2017-05-10 | 四川九洲电器集团有限责任公司 | Parallel drawing method for complicated geographic information |
-
2016
- 2016-08-22 CN CN201610705438.9A patent/CN106383828B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106383828A (en) | 2017-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106383828B (en) | A kind of drawing practice and electronic equipment | |
CN103455624B (en) | A kind of global multidimensional remote sensing image Map Service of Network implementation method of lightweight | |
CN101388043B (en) | OGC high performance remote sensing image map service method based on small picture | |
CN105261066B (en) | A kind of three-dimensional geographic information system real-time rendering multithreading distribution and control method | |
CN102117497B (en) | Method and system for three-dimensional terrain modeling | |
CN103606192A (en) | Wind field visual display method based on three-dimensional virtual globe | |
CN104183016B (en) | A kind of construction method of quick 2.5 dimension building model | |
CN104835202A (en) | Quick three-dimensional virtual scene constructing method | |
CN103325068A (en) | Method for drawing real-time dynamic three-dimensional power grid contamination area distribution diagram | |
CN105956165B (en) | A kind of big file storage organization method of the tile type of three-dimensional modeling data | |
CN101408990B (en) | Progressive compression and transmission method for urban architecture model | |
CN110111408A (en) | Large scene based on graphics quickly seeks friendship method | |
CN104504742A (en) | Three-dimensional military mark plotting method based on electronic sand table system | |
CN112308970A (en) | Preprocessing method and device for parametric modeling of power transmission overhead line based on GIS | |
CN101976468A (en) | Method and system for visualizing multiresolution dynamic landform | |
CN104267940A (en) | Quick map tile generation method based on CPU+GPU | |
CN105354882A (en) | Method for constructing big data architecture based three-dimensional panoramic display platform for large-spatial-range electricity transmission | |
CN103714213B (en) | Parallel drawing method for complicated geographic information | |
CN106294484B (en) | A kind of method and device updating electronic map data | |
CN106373175A (en) | Terrain height graph data loading method | |
CN102314798B (en) | Method and device for automatically simplifying shape points of polygonal surface elements of electronic map | |
CN108375806A (en) | The acquisition methods and device of weather-map | |
CN104299262B (en) | A kind of three-dimensional cloud analogy method based on velocity field streamline | |
CN102364522B (en) | Large-scale weather volume data drawing method based on global division | |
CN103675763B (en) | A kind of based on hardware-accelerated vector quantization VTS radar video rendering method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |