CN103714562B - A kind of determination method and device of complex region graphical pointv - Google Patents
A kind of determination method and device of complex region graphical pointv Download PDFInfo
- Publication number
- CN103714562B CN103714562B CN201310739282.2A CN201310739282A CN103714562B CN 103714562 B CN103714562 B CN 103714562B CN 201310739282 A CN201310739282 A CN 201310739282A CN 103714562 B CN103714562 B CN 103714562B
- Authority
- CN
- China
- Prior art keywords
- summit
- coordinate
- screen
- complex region
- geographical coordinate
- 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
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The embodiment of the invention discloses the determination method and device of a kind of complex region graphical pointv, screen Outsourcing area is obtained by summit geographical coordinate is converted to set up the summit screen coordinate of corresponding relation, in smaller range, the process avoiding the geographical coordinate point obtaining complex region is the most complicated, thus solve the technical problem that amount of calculation is bigger, the method comprise the steps that the summit geographical coordinate obtaining complex region, the summit screen coordinate that summit geographical coordinate is converted to set up corresponding relation obtains screen Outsourcing area, the point screen coordinate of the screen Outsourcing area of extraction is converted to set up the some geographical coordinate of corresponding relation, judge whether some geographical coordinates belong in complex region, if, then determine a little for graphical pointv.
Description
Technical field
The present embodiments relate to image display technology field, particularly relate to a kind of complex region graphical pointv
Determine method and device.
Background technology
GIS-Geographic Information System (GIS, Geographic Information System) is a comprehensive branch of learning,
Of science with cartography and remote sensing and computer science in combination, it is widely applied to different fields,
It is the computer system for inputting, store, inquire about, analyze and show geodata, especially at GIS
Processing vector graphics in system, the regional graphics of display complexity received much concern in recent years, were vowed by OGR(
Amount file read-write instrument) obtain the geographic coordinate information of vector graphics, and use the side that rendering engine provides
Method can be drawn out a little, line, face, thus realizes the display of complex region.
The current technology drawing complex region, such as draws concave edge shape, polygon with holes etc. figure,
Draw these regional development and technology and be by the trigonometric ratio in region, i.e. complex figure is decomposed into a large amount of triangle,
Then by showing the method viewing area of triangle.
But, the technology drawing complex region of this breakdown, owing to data processing needs is very big, because of
This, cause the technical problem that amount of calculation is bigger.
Summary of the invention
Embodiments provide the determination method and device of a kind of complex region graphical pointv, by pushing up
Point geographical coordinate is converted to set up the summit screen coordinate of corresponding relation and obtains screen Outsourcing area, relatively
In little scope, it is to avoid the process of the geographical coordinate point obtaining complex region is the most complicated, thus solves
The technical problem that amount of calculation is bigger.
The determination method of a kind of complex region graphical pointv that the embodiment of the present invention provides, including:
Obtain the summit geographical coordinate of complex region;
Be converted to set up the summit screen coordinate of corresponding relation and obtain screen by described summit geographical coordinate
Outsourcing area;
The point screen coordinate of the described screen Outsourcing area extracted is converted to set up the some ground of corresponding relation
Reason coordinate;
Judge whether described some geographical coordinate belongs in described complex region, if, it is determined that described point is
Graphical pointv.
Alternatively, also include before obtaining the summit geographical coordinate of complex region setting up after storage determines
The data cell of described graphical pointv.
Alternatively, the summit geographical coordinate obtaining complex region specifically includes by using OGR to resolve reception
The described summit geographical coordinate of complex region described in the vector file acquisition of information arrived.
Alternatively, the summit screen coordinate described summit geographical coordinate being converted to set up corresponding relation obtains
Take screen Outsourcing area to specifically include:
The geographical outsourcing rectangular area of complex region is obtained according to described summit geographical coordinate;
The summit screen coordinate that described summit geographical coordinate is converted to set up corresponding relation obtains outside screen
Bag rectangular area.
Optionally it is determined that described some geographical coordinate is also to include the institute of described data cell after graphical pointv
State graphical pointv to be tied in the array of rendering engine so that rendering engine carries out batch according to described array and paints
System.
The determination device of a kind of complex region graphical pointv that the embodiment of the present invention provides, including:
Acquiring unit, for obtaining the summit geographical coordinate of complex region;
Territory element, for being converted to set up the summit screen of corresponding relation by described summit geographical coordinate
Coordinate also obtains screen Outsourcing area;
Converting unit, has for the some screen coordinate of the described screen Outsourcing area extracted is converted to foundation
The point geographical coordinate of corresponding relation;
Judging unit, is used for judging whether described some geographical coordinate belongs in described complex region, if so,
Then determine that described point is graphical pointv.
Alternatively, also include:
Data cell, the described graphical pointv after storage determines.
Alternatively, acquiring unit specifically includes:
For being resolved described in complex region described in the vector file acquisition of information received by use OGR
Summit geographical coordinate.
Alternatively, territory element specifically includes:
First area subelement, for obtaining the geographical outsourcing of complex region according to described summit geographical coordinate
Rectangular area;
Second area subelement, for being converted to set up the top of corresponding relation by described summit geographical coordinate
Point screen coordinate obtains screen outsourcing rectangular area.
Alternatively, described device also includes:
Binding unit, for the described graphical pointv of described data cell is tied in the array of rendering engine,
Make rendering engine carry out batch according to described array to draw.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
A kind of determination method embodiments providing complex region graphical pointv includes: first obtain multiple
The summit geographical coordinate in miscellaneous region, is then converted to set up the summit of corresponding relation by summit geographical coordinate
Screen coordinate also obtains screen Outsourcing area, is then turned by the some screen coordinate of the screen Outsourcing area of extraction
It is changed to set up the some geographical coordinate of corresponding relation, finally judges whether some geographical coordinates belong to complex region
In, if, it is determined that put as graphical pointv, in the present embodiment, by being converted to build by summit geographical coordinate
The vertical summit screen coordinate having corresponding relation obtains screen Outsourcing area, thus reduces the amount of calculation of data,
Just can be in smaller range, it is achieved the process of the geographical coordinate point obtaining complex region is simplified,
Solve the technical problem that amount of calculation is bigger further.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below,
Accompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art,
On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a reality of the determination method of a kind of complex region graphical pointv of offer in the embodiment of the present invention
Execute the schematic flow sheet of example;
Another of determination method of the Fig. 2 a kind of complex region graphical pointv for providing in the embodiment of the present invention
The schematic flow sheet of embodiment;
Another of determination method of the Fig. 3 a kind of complex region graphical pointv for providing in the embodiment of the present invention
The schematic flow sheet of embodiment;
Fig. 4 is a reality of the determination device of a kind of complex region graphical pointv of offer in the embodiment of the present invention
Execute the structural representation of example;
Another of determination device of the Fig. 5 a kind of complex region graphical pointv for providing in the embodiment of the present invention
The structural representation of embodiment;
Another of determination device of the Fig. 6 a kind of complex region graphical pointv for providing in the embodiment of the present invention
The structural representation of embodiment.
Detailed description of the invention
Embodiments provide the determination method and device of a kind of complex region graphical pointv, by pushing up
Point geographical coordinate is converted to set up the summit screen coordinate of corresponding relation and obtains screen Outsourcing area, relatively
In little scope, it is to avoid the process of the geographical coordinate point obtaining complex region is the most complicated, thus solves
The technical problem that amount of calculation is bigger.
For making the goal of the invention of the present invention, feature, the advantage can be the most obvious and understandable, below will
In conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground describes, it is clear that the embodiments described below are only a part of embodiment of the present invention, and not all
Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creativeness
The all other embodiments obtained under work premise, broadly fall into the scope of protection of the invention.
Refer to Fig. 1, of the determination method of a kind of complex region graphical pointv that the embodiment of the present invention provides
Embodiment includes:
101, the summit geographical coordinate of complex region is obtained;
In the present embodiment, when, after the instruction receiving complex region to be drawn, needing first to obtain complex region,
Obtain the summit geographical coordinate of complex region again, it is to be understood that this complex region can be geometry pair
As, record has the summit constituting this complex region, and aforesaid summit geographical coordinate can be 4 summits,
Such as summit geographical coordinate is respectively A point coordinates<120.0010,30.2010>, B point coordinates
<120.0030,30.2010>, C point coordinates<120.0010,30.2000>, D point coordinates
<120.0030,30.2000>, are not specifically limited herein.
The summit screen coordinate that 102, summit geographical coordinate is converted to set up corresponding relation obtains outside screen
Bag region;
After obtaining the summit geographical coordinate of complex region, being converted into summit geographical coordinate to set up therewith has
The summit screen coordinate of corresponding relation, then obtains the Outsourcing area of screen according to summit screen coordinate value,
It should be noted that this Outsourcing area can be the quadrilateral area according to four summit screen coordinate definition,
Making complex region belong in this Outsourcing area, such as summit geographical coordinate is respectively A point coordinates
<120.0010,30.2010>, B point coordinates<120.0030,30.2010>, C point coordinates
<120.0010,30.2000>, D point coordinates<120.0030,30.2000>, it is converted into four points after screen coordinate
Screen coordinate value be respectively A1 point coordinates<100,50>, B1 point coordinates<200,50>, C1 point coordinates
<200,100>, D1 point coordinates<100,50>, according to aforesaid four screen coordinate value, just get four limits
The screen Outsourcing area of shape, is not specifically limited herein.
103, the some screen coordinate of the screen Outsourcing area of extraction is converted to set up the some ground of corresponding relation
Reason coordinate;
In the present embodiment, after getting screen Outsourcing area, extract owning in this screen Outsourcing area
The screen coordinate of screen point, it should be noted that this screen point can be pixel, can include n
Individual, after the screen coordinate being extracted screen point, be converted to set up therewith by the screen coordinate of screen point
There is the some geographical coordinate of corresponding relation.
104, judge whether some geographical coordinates belong in complex region, the most then perform step 105, if
No, then perform step 106;
After the some screen coordinate of screen is converted to set up therewith the some geographical coordinate of corresponding relation, sentence
Whether this geographical coordinate disconnected belongs to the complex region obtained in step 101, if this geographical coordinate belongs to
Complex region, then perform step 105, if this geographical coordinate is not belonging to complex region, then perform step
106。
105, determine that a geographical coordinate is graphical pointv;
In the present embodiment, when judging that determining this geographical coordinate belongs to complex region, it is determined that this point is
The graphical pointv of complex region.
106, default command is performed.
In the present embodiment, when judging that this geographical coordinate is not belonging to complex region, then perform default command,
Such as this default command can be to return a notice representing negative, does not specifically limit herein.
A kind of determination method embodiments providing complex region graphical pointv includes: obtain complex area
The summit geographical coordinate in territory, is converted to set up the summit screen coordinate of corresponding relation by summit geographical coordinate
Obtaining screen Outsourcing area, the some screen coordinate of the screen Outsourcing area of extraction is converted to foundation correspondence
The point geographical coordinate of relation, it is judged that whether some geographical coordinate belongs in complex region, if, it is determined that point
For graphical pointv, in the present embodiment, by summit geographical coordinate is converted to set up the summit of corresponding relation
Screen coordinate obtains screen Outsourcing area, thus reduces the amount of calculation of data, just can be in smaller range
In, it is achieved the process of the geographical coordinate point obtaining complex region is simplified, and solves calculating further
Measure bigger technical problem.
The above is that the process of the determination method to a kind of complex region graphical pointv that the embodiment of the present invention provides is entered
The description that row is detailed, below by being described in detail the process obtaining screen Outsourcing area, refers to
Fig. 2, another embodiment bag of the determination method of a kind of complex region graphical pointv that the embodiment of the present invention provides
Include:
201, by using OGR to resolve the ground, summit of the vector file acquisition of information complex region received
Reason coordinate;
In the present embodiment, when receiving in vector file to be drawn after the instruction of complex region, need first to lead to
Cross and use OGR to resolve the vector file information received, and obtain complex region, then obtain complex region
Summit geographical coordinate, it is to be understood that this complex region can be geometric object, record have composition
The summit of this complex region, aforesaid summit geographical coordinate can be 4 summits, and such as summit geography is sat
Mark is respectively A point coordinates<120.0010,30.2010>, B point coordinates<120.0030,30.2010>, and C point is sat
Mark<120.0010,30.2000>, D point coordinates<120.0030,30.2000>, it is not specifically limited herein.
202, the geographical outsourcing rectangular area of complex region is obtained according to summit geographical coordinate;
After obtaining the summit geographical coordinate of complex region, according to summit geographic coordinate values, obtain complex area
The geographical outsourcing rectangular area in territory, such as summit geographical coordinate is respectively A point coordinates
<120.0010,30.2010>, B point coordinates<120.0030,30.2010>, C point coordinates
<120.0010,30.2000>, D point coordinates<120.0030,30.2000>, it is not specifically limited herein, according to
Aforesaid four geographic coordinate values, just get the geographical Outsourcing area of rectangle.
The summit screen coordinate that 203, summit geographical coordinate is converted to set up corresponding relation obtains outside screen
Bag rectangular area;
After obtaining the summit geographical coordinate of complex region, being converted into summit geographical coordinate to set up therewith has
The summit screen coordinate of corresponding relation, then obtains the rectangle outsourcing district of screen according to summit screen coordinate value
Territory, it should be noted that this rectangle Outsourcing area can be the square according to four summit screen coordinate definition
Shape region so that complex region belongs in this Outsourcing area, such as summit geographical coordinate is respectively A point and sits
Mark<120.0010,30.2010>, B point coordinates<120.0030,30.2010>, C point coordinates
<120.0010,30.2000>, D point coordinates<120.0030,30.2000>, it is converted into four points after screen coordinate
Screen coordinate value be respectively A1 point coordinates<100,50>, B1 point coordinates<200,50>, C1 point coordinates
<200,100>, D1 point coordinates<100,50>, according to aforesaid four screen coordinate value, just get four limits
The screen Outsourcing area of shape, is not specifically limited herein.
204, the some screen coordinate of the screen Outsourcing area of extraction is converted to set up the some ground of corresponding relation
Reason coordinate;
This step is identical with the content of the step 103 in the embodiment shown in earlier figures 1, the most superfluous
State.
205, judge whether some geographical coordinates belong in complex region, the most then perform step 206, if
No, then perform step 207;
This step is identical with the content of the step 104 in the embodiment shown in earlier figures 1, the most superfluous
State.
206, determine that a geographical coordinate is graphical pointv;
This step is identical with the content of the step 105 in the embodiment shown in earlier figures 1, the most superfluous
State.
207, default command is performed.
This step is identical with the content of the step 106 in the embodiment shown in earlier figures 1, the most superfluous
State.
In the present embodiment, sit by summit geographical coordinate is converted to set up the summit screen of corresponding relation
Mark obtains screen Outsourcing area, thus reduces the amount of calculation of data, just can be real in smaller range
The process of the geographical coordinate point now obtaining complex region is simplified, and solves amount of calculation further bigger
Technical problem, meanwhile, by use OGR resolve vector file method so that obtain complex region
Efficiency be improved further.
The above is to be described in detail the process obtaining screen Outsourcing area, below will be to determining drafting
The process drawing complex region after Dian is described in detail, and refers to Fig. 3, and the embodiment of the present invention provides
Another embodiment of a kind of determination method of complex region graphical pointv includes:
301, the data cell of the graphical pointv after storage determines is set up;
In the present embodiment, when needing to carry out complex region drafting according to the complex region graphical pointv got,
Before determining graphical pointv, need to set up the data that may be used for storing a large amount of graphical pointv coordinate data
Unit, such as this data cell can be to preserve data structure data, are not specifically limited herein.
It should be noted that the graphical pointv of this data cell storage is real-time during determining graphical pointv
Storage.
302, by using OGR to resolve the ground, summit of the vector file acquisition of information complex region received
Reason coordinate;
In the present embodiment, when receiving in vector file to be drawn after the instruction of complex region, need first to lead to
Cross and use OGR to resolve the vector file information received, and obtain complex region, then obtain complex region
Summit geographical coordinate, it is to be understood that this complex region can be geometric object, record have composition
The summit of this complex region, aforesaid summit geographical coordinate can be 4 summits, and such as summit geography is sat
Mark is respectively A point coordinates<120.0010,30.2010>, B point coordinates<120.0030,30.2010>, and C point is sat
Mark<120.0010,30.2000>, D point coordinates<120.0030,30.2000>, it is not specifically limited herein.
303, the geographical outsourcing rectangular area of complex region is obtained according to summit geographical coordinate;
After obtaining the summit geographical coordinate of complex region, according to summit geographic coordinate values, obtain complex area
The geographical outsourcing rectangular area in territory, such as summit geographical coordinate is respectively A point coordinates
<120.0010,30.2010>, B point coordinates<120.0030,30.2010>, C point coordinates
<120.0010,30.2000>, D point coordinates<120.0030,30.2000>, it is not specifically limited herein, according to
Aforesaid four geographic coordinate values, just get the geographical Outsourcing area of rectangle.
The summit screen coordinate that 304, summit geographical coordinate is converted to set up corresponding relation obtains outside screen
Bag rectangular area;
After obtaining the summit geographical coordinate of complex region, being converted into summit geographical coordinate to set up therewith has
The summit screen coordinate of corresponding relation, then obtains the rectangle outsourcing district of screen according to summit screen coordinate value
Territory, it should be noted that this rectangle Outsourcing area can be the square according to four summit screen coordinate definition
Shape region so that complex region belongs in this Outsourcing area, such as summit geographical coordinate is respectively A point and sits
Mark<120.0010,30.2010>, B point coordinates<120.0030,30.2010>, C point coordinates
<120.0010,30.2000>, D point coordinates<120.0030,30.2000>, it is converted into four points after screen coordinate
Screen coordinate value be respectively A1 point coordinates<100,50>, B1 point coordinates<200,50>, C1 point coordinates
<200,100>, D1 point coordinates<100,50>, according to aforesaid four screen coordinate value, just get four limits
The screen Outsourcing area of shape, is not specifically limited herein.
305, the some screen coordinate of the screen Outsourcing area of extraction is converted to set up the some ground of corresponding relation
Reason coordinate;
This step is identical with the content of the step 103 in the embodiment shown in earlier figures 1, the most superfluous
State.
306, judge whether some geographical coordinates belong in complex region, the most then perform step 307, if
No, then perform step 309;
This step is identical with the content of the step 104 in the embodiment shown in earlier figures 1, the most superfluous
State.
307, determine that a geographical coordinate is graphical pointv;
This step is identical with the content of the step 105 in the embodiment shown in earlier figures 1, the most superfluous
State.
308, the graphical pointv of data cell is tied in the array of rendering engine;
In the present embodiment, when the graphical pointv of complex region all determines, and the graphical pointv determined is stored in number
After unit, when needing according to graphical pointv, complex region to be drawn, will be stored in painting of data cell
System point is tied in the array of rendering engine so that rendering engine carries out batch according to array and draws, display
Complex region, this rendering engine can be such as OpenGLES.
309, default command is performed.
This step is identical with the content of the step 106 in the embodiment shown in earlier figures 1, the most superfluous
State.
In the present embodiment, sit by summit geographical coordinate is converted to set up the summit screen of corresponding relation
Mark obtains screen Outsourcing area, thus reduces the amount of calculation of data, just can be real in smaller range
The process of the geographical coordinate point now obtaining complex region is simplified, and solves amount of calculation further bigger
Technical problem, meanwhile, by use OGR resolve vector file method so that obtain complex region
Efficiency be improved further, and by preserving the graphical pointv determined in real time, will drafting in high volume
Point is tied in rendering engine array, thus, it is achieved that draw and demonstrate complex region at a high speed.
The above is to be described in detail the process drawing complex region after determining graphical pointv, for ease of reason
Solve, with a concrete application scenarios, the embodiment shown in Fig. 3 will be described in detail below, the present invention
Another embodiment of the determination method of a kind of complex region graphical pointv that embodiment provides includes:
In the present embodiment, when needing to carry out complex region drafting according to the complex region graphical pointv got,
Before determining graphical pointv, need to set up the data that may be used for storing a large amount of graphical pointv coordinate data
Unit, such as this data cell can be to preserve data structure data, are not specifically limited herein.
It should be noted that the graphical pointv of this data cell storage is real-time during determining graphical pointv
Storage.
When receiving in vector file to be drawn after the instruction of complex region, need to first pass through use OGR and solve
The vector file information that analysis receives, and obtain complex region, then the summit geography obtaining complex region is sat
Mark, it is to be understood that this complex region can be geometric object, record has this complex region of composition
Summit, aforesaid summit geographical coordinate can be that 4 summits, such as summit geographical coordinate are respectively A point
Coordinate<120.0010,30.2010>, B point coordinates<120.0030,30.2010>, C point coordinates
<120.0010,30.2000>, D point coordinates<120.0030,30.2000>, it is not specifically limited herein, obtains
After the summit geographical coordinate of complex region, according to summit geographic coordinate values, obtain the geography of complex region
Outsourcing rectangular area, such as summit geographical coordinate are respectively A point coordinates<120.0010,30.2010>, B point
Coordinate<120.0030,30.2010>, C point coordinates<120.0010,30.2000>, D point coordinates
<120.0030,30.2000>, are not specifically limited herein, according to aforesaid four geographic coordinate values, just obtain
Get the geographical Outsourcing area of rectangle, after obtaining the summit geographical coordinate of complex region, summit is geographical
Coordinate Conversion becomes to set up therewith has the summit screen coordinate of corresponding relation, then according to summit screen coordinate value
Obtain the rectangle Outsourcing area of screen, it should be noted that this rectangle Outsourcing area can be according to four
The rectangular area of summit screen coordinate definition so that complex region belongs in this Outsourcing area, such as summit
Geographical coordinate is respectively A point coordinates<120.0010,30.2010>, B point coordinates
<120.0030,30.2010>, C point coordinates<120.0010,30.2000>, D point coordinates
<120.0030,30.2000>, after being converted into screen coordinate, the screen coordinate value of four points is respectively A1 point seat
Mark<100,50>, B1 point coordinates<200,50>, C1 point coordinates<200,100>, D1 point coordinates<100,50>,
According to aforesaid four screen coordinate value, just get the screen Outsourcing area of tetragon, the most do not do and have
Body limits, and after getting screen outsourcing rectangular area, extracts owning in this screen outsourcing rectangular area
The screen coordinate of screen point, it should be noted that this screen point can be pixel, can include n
Individual, after the screen coordinate being extracted screen point, be converted to set up therewith by the screen coordinate of screen point
There is the some geographical coordinate of corresponding relation, the some screen coordinate of screen is converted to set up therewith corresponding relation
Some geographical coordinate after, it is judged that whether this geographical coordinate belongs to receives by using OGR to resolve
Vector file information, the complex region of acquisition, if this geographical coordinate belongs to complex region, it is determined that should
Point is the graphical pointv of complex region, at this time, it may be necessary to real-time is saved in data cell by the graphical pointv determined
In, after the graphical pointv of complex region all determines, and after the graphical pointv determined is stored in data cell,
When needing to draw complex region according to graphical pointv, the graphical pointv that will be stored in data cell is tied to
In the array of rendering engine so that rendering engine carries out batch according to array and draws, and shows complex region,
Such as use rendering engine OpenGLES glDrawArrays(GL_POINTS) interface according to guarantor
There is the graphical pointv in the array of data cell to carry out drawing in batches, complex region is just drawn and is shown,
Specifically do not limit herein, when this geographical coordinate of aforesaid judgement is not belonging to complex region, then perform silent
Accept one's fate order, such as this default command can be return one represent negative notice, can be false order,
Specifically do not limit herein.
In the present embodiment, sit by summit geographical coordinate is converted to set up the summit screen of corresponding relation
Mark obtains screen Outsourcing area, thus reduces the amount of calculation of data, just can be real in smaller range
The process of the geographical coordinate point now obtaining complex region is simplified, and solves amount of calculation further bigger
Technical problem, meanwhile, by use OGR resolve vector file method so that obtain complex region
Efficiency be improved further, and by preserving the graphical pointv determined in real time, will drafting in high volume
Point is tied in rendering engine array, it is achieved thereby that draw and demonstrate complex region at a high speed.
Refer to Fig. 4, of the determination device of a kind of complex region graphical pointv that the embodiment of the present invention provides
Embodiment includes:
Acquiring unit 401, for obtaining the summit geographical coordinate of complex region;
Territory element 402, sits for summit geographical coordinate is converted to set up the summit screen of corresponding relation
Mark obtains screen Outsourcing area;
Converting unit 403, for the some screen coordinate of the screen Outsourcing area of extraction is converted to foundation have right
The point geographical coordinate that should be related to;
Judging unit 404, is used for judging whether a geographical coordinate belongs in complex region, if, it is determined that
Point is graphical pointv.
In the present embodiment, by territory element, summit geographical coordinate is converted to set up the top of corresponding relation
Point screen coordinate obtains screen Outsourcing area, thus reduces the amount of calculation of data, just can be at less model
In enclosing, it is achieved the process of the geographical coordinate point obtaining complex region is simplified, and solves meter further
The technical problem that calculation amount is bigger.
The above is each unit of the determination device to a kind of complex region graphical pointv that the embodiment of the present invention provides
Function be described in detail, the function of additional data cell and binding unit will be carried out in detail below
Thin description, refers to Fig. 5, the determination device of a kind of complex region graphical pointv that the embodiment of the present invention provides
Another embodiment include:
Acquiring unit 501, for obtaining the summit geographical coordinate of complex region.
Wherein, acquiring unit 501, believe specifically for the vector file received by using OGR to resolve
Breath obtains the summit geographical coordinate of complex region.
Territory element 502, sits for summit geographical coordinate is converted to set up the summit screen of corresponding relation
Mark obtains screen Outsourcing area;
Wherein, territory element 502 may further include:
First area subelement 5021, for obtaining the geographical outsourcing of complex region according to summit geographical coordinate
Rectangular area;
Second area subelement 5022, for being converted to set up the top of corresponding relation by summit geographical coordinate
Point screen coordinate obtains screen outsourcing rectangular area.
Converting unit 503, for the some screen coordinate of the screen Outsourcing area of extraction is converted to foundation have right
The point geographical coordinate that should be related to.
Judging unit 504, is used for judging whether a geographical coordinate belongs in complex region, if, it is determined that
Point is graphical pointv.
In the present embodiment, by territory element, summit geographical coordinate is converted to set up the top of corresponding relation
Point screen coordinate obtains screen Outsourcing area, thus reduces the amount of calculation of data, just can be at less model
In enclosing, it is achieved the process of the geographical coordinate point obtaining complex region is simplified, and solves meter further
The technical problem that calculation amount is bigger, meanwhile, the method that acquiring unit resolves vector file by using OGR,
The efficiency obtaining complex region is improved further.
The above is that the function to additional data cell and binding unit is described in detail, and refers to figure
6, another embodiment bag of the determination device of a kind of complex region graphical pointv that the embodiment of the present invention provides
Include:
Data cell 601, the graphical pointv after storage determines.
Acquiring unit 602, for obtaining the summit geographical coordinate of complex region.
Wherein, acquiring unit 602, believe specifically for the vector file received by using OGR to resolve
Breath obtains the summit geographical coordinate of complex region.
Territory element 603, sits for summit geographical coordinate is converted to set up the summit screen of corresponding relation
Mark obtains screen Outsourcing area;
Wherein, territory element 603 can further include:
First area subelement 6031, for obtaining the geographical outsourcing of complex region according to summit geographical coordinate
Rectangular area;
Second area subelement 6032, for being converted to set up the top of corresponding relation by summit geographical coordinate
Point screen coordinate obtains screen outsourcing rectangular area.
Converting unit 604, for the some screen coordinate of the screen Outsourcing area of extraction is converted to foundation have right
The point geographical coordinate that should be related to.
Judging unit 605, is used for judging whether a geographical coordinate belongs in complex region, if, it is determined that
Point is graphical pointv.
Binding unit 606, for the graphical pointv of data cell 601 is tied in the array of rendering engine,
Make rendering engine carry out batch according to array to draw.
In the present embodiment, by territory element, summit geographical coordinate is converted to set up the top of corresponding relation
Point screen coordinate obtains screen Outsourcing area, thus reduces the amount of calculation of data, just can be at less model
In enclosing, it is achieved the process of the geographical coordinate point obtaining complex region is simplified, and solves meter further
The technical problem that calculation amount is bigger, meanwhile, the method that acquiring unit resolves vector file by using OGR,
The efficiency obtaining complex region is improved further, and is preserved in real time really by data cell
Fixed graphical pointv, is tied to high-volume graphical pointv in rendering engine array by binding unit, thus real
Show and drawn and demonstrate complex region at a high speed.
Those skilled in the art is it can be understood that arrive, and for convenience and simplicity of description, above-mentioned retouches
The specific works process of the system stated, device and unit, is referred to the correspondence in preceding method embodiment
Process, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, device and
Method, can realize by another way.Such as, device embodiment described above is only shown
Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing
There to be other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another
System, or some features can ignore, or do not perform.Another point, shown or discussed each other
Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit
Or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit can be or may not be physical location, i.e. may be located at a place,
Or can also be distributed on multiple NE.Can select according to the actual needs part therein or
The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit,
Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a list
In unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ software function list
The form of unit realizes.
If described integrated unit realizes and as independent production marketing using the form of SFU software functional unit
Or when using, can be stored in a computer read/write memory medium.Based on such understanding, this
The part that the most in other words prior art contributed of technical scheme of invention or this technical scheme
Completely or partially can embody with the form of software product, this computer software product is stored in one
In storage medium, including some instructions with so that computer equipment (can be personal computer,
Server, or the network equipment etc.) perform completely or partially walking of method described in each embodiment of the present invention
Suddenly.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. the various media that can store program code.
The above, above example only in order to technical scheme to be described, is not intended to limit;
Although being described in detail the present invention with reference to previous embodiment, those of ordinary skill in the art should
Work as understanding: the technical scheme described in foregoing embodiments still can be modified by it, or to it
Middle part technical characteristic carries out equivalent;And these amendments or replacement, do not make appropriate technical solution
Essence depart from various embodiments of the present invention technical scheme spirit and scope.
Claims (10)
1. the determination method of a complex region graphical pointv, it is characterised in that including:
Obtain the summit geographical coordinate of complex region;
Be converted to set up the summit screen coordinate of corresponding relation and obtain screen by described summit geographical coordinate
Outsourcing area;
The point screen coordinate of the described screen Outsourcing area extracted is converted to set up the some ground of corresponding relation
Reason coordinate;
Judge whether described some geographical coordinate belongs in described complex region, if, it is determined that described point is
Graphical pointv.
Method the most according to claim 1, it is characterised in that the summit obtaining complex region is geographical
Also include before coordinate:
Set up the data cell of the described graphical pointv after storage determines.
Method the most according to claim 1, it is characterised in that the summit obtaining complex region is geographical
Coordinate specifically includes:
The described summit of complex region described in the vector file acquisition of information received by using OGR to resolve
Geographical coordinate.
Method the most according to claim 1, it is characterised in that described summit geographical coordinate is changed
Specifically include for setting up to have the summit screen coordinate of corresponding relation and obtain screen Outsourcing area:
The geographical outsourcing rectangular area of complex region is obtained according to described summit geographical coordinate;
The summit screen coordinate that described summit geographical coordinate is converted to set up corresponding relation obtains outside screen
Bag rectangular area.
Method the most according to claim 2, it is characterised in that after determining that described point is graphical pointv
Also include:
The described graphical pointv of described data cell is tied in the array of rendering engine so that rendering engine
Carry out batch according to described array to draw.
6. the determination device of a complex region graphical pointv, it is characterised in that including:
Acquiring unit, for obtaining the summit geographical coordinate of complex region;
Territory element, for being converted to set up the summit screen of corresponding relation by described summit geographical coordinate
Coordinate also obtains screen Outsourcing area;
Converting unit, has for the some screen coordinate of the described screen Outsourcing area extracted is converted to foundation
The point geographical coordinate of corresponding relation;
Judging unit, is used for judging whether described some geographical coordinate belongs in described complex region, if so,
Then determine that described point is graphical pointv.
Device the most according to claim 6, it is characterised in that also include:
Data cell, the described graphical pointv after storage determines.
Device the most according to claim 6, it is characterised in that acquiring unit specifically includes:
For being resolved described in complex region described in the vector file acquisition of information received by use OGR
Summit geographical coordinate.
Device the most according to claim 6, it is characterised in that territory element specifically includes:
First area subelement, for obtaining the geographical outsourcing of complex region according to described summit geographical coordinate
Rectangular area;
Second area subelement, for being converted to set up the top of corresponding relation by described summit geographical coordinate
Point screen coordinate obtains screen outsourcing rectangular area.
Device the most according to claim 7, it is characterised in that described device also includes:
Binding unit, for the described graphical pointv of described data cell is tied in the array of rendering engine,
Make rendering engine carry out batch according to described array to draw.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310739282.2A CN103714562B (en) | 2013-12-26 | 2013-12-26 | A kind of determination method and device of complex region graphical pointv |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310739282.2A CN103714562B (en) | 2013-12-26 | 2013-12-26 | A kind of determination method and device of complex region graphical pointv |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103714562A CN103714562A (en) | 2014-04-09 |
CN103714562B true CN103714562B (en) | 2016-09-28 |
Family
ID=50407503
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310739282.2A Active CN103714562B (en) | 2013-12-26 | 2013-12-26 | A kind of determination method and device of complex region graphical pointv |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103714562B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104697537A (en) * | 2015-02-10 | 2015-06-10 | 柳州市金旭节能科技有限公司 | Non-standard traffic small district map matching method |
CN112966548B (en) * | 2021-01-18 | 2023-10-27 | 中国农业科学院农业信息研究所 | Soybean plot identification method and system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101887592A (en) * | 2010-07-30 | 2010-11-17 | 中国测绘科学研究院 | Drawing method for vector graphic map symbols |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6693637B2 (en) * | 2001-12-31 | 2004-02-17 | Intel Corporation | Method and apparatus for determining bins to be updated for polygons, including lines |
-
2013
- 2013-12-26 CN CN201310739282.2A patent/CN103714562B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101887592A (en) * | 2010-07-30 | 2010-11-17 | 中国测绘科学研究院 | Drawing method for vector graphic map symbols |
Non-Patent Citations (1)
Title |
---|
嵌入式GIS提高矢量地图显示速度的软件方法实现;胡泽明 等;《测绘科学》;20071130;第32卷(第6期);第113-115页,第208页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103714562A (en) | 2014-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107358649B (en) | Processing method and device of terrain file | |
CN103279980B (en) | Based on the Leaf-modeling method of cloud data | |
Wang et al. | Integration of Google Maps/Earth with microscale meteorology models and data visualization | |
CN104463856B (en) | The ground extracting method of the outdoor scene three dimensional point cloud based on normal vector ball | |
Ruzinoor et al. | A review on 3D terrain visualization of GIS data: techniques and software | |
CN112990086A (en) | Remote sensing image building detection method and device and computer readable storage medium | |
CN102270236A (en) | Rasterized geographic information system (GIS)-based spatial relationship judging method and system | |
CN102314696B (en) | Vectorization method for raster data of remote sensing images | |
CN106202237B (en) | Industrial project area map drawing method and system | |
Shen et al. | A new approach to simplifying polygonal and linear features using superpixel segmentation | |
CN109859109A (en) | A kind of Serial Scale PDF map seamless organization and display methods | |
Ellul et al. | Investigating approaches to improving rendering performance of 3D city models on mobile devices | |
KR20230044520A (en) | Topographic map construction method, device, electronic device and readable recording medium | |
CN103714562B (en) | A kind of determination method and device of complex region graphical pointv | |
CN115272887A (en) | Coastal zone garbage identification method, device and equipment based on unmanned aerial vehicle detection | |
CN104299255A (en) | Three-dimensional terrain model rendering method | |
CN111798554A (en) | Rendering parameter determination method, device, equipment and storage medium | |
CN115393872A (en) | Method, device and equipment for training text classification model and storage medium | |
Ackerman et al. | Geospatial capabilities of HEC-RAS for model development and mapping | |
CN116681959B (en) | Machine learning-based frontal line identification method and device, storage medium and terminal | |
CN102800125B (en) | Large-scale point cloud selection method for supporting lasso | |
CN108375806A (en) | The acquisition methods and device of weather-map | |
CN107993242A (en) | Based on airborne LiDAR point cloud shortage of data zone boundary extracting method | |
JP7375149B2 (en) | Positioning method, positioning device, visual map generation method and device | |
CN114037792B (en) | Method for dynamically generating million-magnitude underground pipeline model under Unreal Engine platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Kezhu road high tech Industrial Development Zone, Guangzhou city of Guangdong Province, No. 233 510670 Patentee after: Wei Chong group Limited by Share Ltd Address before: 510663 No. 6, color road, hi tech Industrial Development Zone, Guangdong, Guangzhou, China Patentee before: Guangdong Weichuangshixun Science and Technology Co., Ltd. |