CN106409129A - Road condition drawing method and road condition drawing device - Google Patents

Road condition drawing method and road condition drawing device Download PDF

Info

Publication number
CN106409129A
CN106409129A CN201611090102.2A CN201611090102A CN106409129A CN 106409129 A CN106409129 A CN 106409129A CN 201611090102 A CN201611090102 A CN 201611090102A CN 106409129 A CN106409129 A CN 106409129A
Authority
CN
China
Prior art keywords
road
point
whole section
node
title
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.)
Granted
Application number
CN201611090102.2A
Other languages
Chinese (zh)
Other versions
CN106409129B (en
Inventor
谭其勇
郭胜敏
孙亚夫
夏曙东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING PALMGO INFORMATION TECHNOLOGY Co Ltd
Original Assignee
BEIJING PALMGO INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by BEIJING PALMGO INFORMATION TECHNOLOGY Co Ltd filed Critical BEIJING PALMGO INFORMATION TECHNOLOGY Co Ltd
Priority to CN201611090102.2A priority Critical patent/CN106409129B/en
Publication of CN106409129A publication Critical patent/CN106409129A/en
Application granted granted Critical
Publication of CN106409129B publication Critical patent/CN106409129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/003Maps
    • G09B29/006Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes
    • G09B29/007Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes using computer methods

Abstract

The invention discloses a road condition drawing method and a road condition drawing device. The problem that a drawn road is not as smooth as the actual road and there are blunt bifurcates at the joints of different road sections in the prior art can be solved. The method comprises the following steps: S1, acquiring the GIS data of a whole section of road to be drawn, extracting the latitudes and longitudes of the interior points of the whole section of road, and projecting the interior points to a display region according to the latitudes and longitudes of the interior points; S2, if judging and knowing that the whole section of road is a one-way road and continuously and reversely changes in a short distance, repairing the interior points of the whole section of road by use of a quadratic Bessel equation, and generating exterior points based on the interior points of the whole section of road; S3, processing the interior points and the exterior points by use of PATH in the programming language to get a road model, and drawing a road contour in the display region based on the road model; and S4, performing road condition drawing and road node name drawing on the road contour.

Description

Road conditions method for drafting and device
Technical field
The present invention relates to survey field is and in particular to a kind of road conditions method for drafting and device.
Background technology
With the made rapid progress of global Surveying Engineering, GIS information is obtained for point-device data supporting in the whole world, with Even more a hundred flowers blossom for road ways of presentation based on GIS data, and cartographic information has even more been accomplished ultimate attainment by Ge Jia technology company. Such as, Google Maps refines to Back ground Information, there is provided comprehensive and detailed map guides, and arrives greatly the version in any one continent Figure all can be received to the greatest extent in eye, and the little direction to certain building house all marks without the slightest error.
In recent years, Cartographic Technique had been accepted extensively by people and had used, because it is just met for the spy to the world for the people Rope and craving for.But thing no hundred is good, and people is no same, everyone more or less has opinion and the demand of oneself in using.Such as exist During using navigating, or being when checking highway or urban road, being more desirable to obtain a kind of more abstract sketch, remove The strong information of interference around road, knows the basic configuration of road and the traffic information of road at a glance.This figure With road likeness in form but nisi accurate, information is more simple, directly perceived and prominent.
User with Baidu as representative, is now the drafting scheme of former data straight line connection using extensive scheme, that is, is based on A series of coordinate informations based on longitude and latitude that existing GIS data provides for road, and road node data, these are counted According to being converted into two-dimensional plane coordinate, reuse the development language of each platform, plane coordinates point is joined end to end one by one, then with overstriking The form of line forms road pattern.After the GIS data collection of this scheme, typically through smoking dilute process, so road Data is on the low side, is directly connected to cause road shape stiff strange.It is illustrated in figure 1 the road figure (right figure) that this scheme obtains With the schematic diagram of real road figure (left figure) it can be seen that the road that this scheme obtains is not so good as real road smooths and actual Road has larger discrepancy in prototype.And for drawing road conditions, this scheme difference road conditions is all using different line segments even Connect, junction can have a factitious bifurcated, final attractive in appearance of impact.It is illustrated in figure 2 the connection diagram of different road conditions sections, As can be seen that the junction of different road conditions sections occurs in that stiff bifurcated in Fig. 2.
Content of the invention
In view of the shortcomings of the prior art and defect, the present invention provides a kind of road conditions method for drafting and device.
On the one hand, the embodiment of the present invention proposes a kind of road conditions method for drafting, including:
S1, obtain the GIS data of whole section of road to be drawn, extract the longitude of interior point and the latitude of described whole section of road, And described interior point is projected viewing area by the longitude according to described interior point and latitude;
If S2 judge to know described whole section of road as one-way road and in short distance continuous inverse change, using two Secondary Bessel equation is to point in described whole section of road benefit, and generates exterior point based on the interior point of described whole section of road;
S3, using the PATH in programming language, described interior point and exterior point are processed, obtain road model, and described It is based on described road model in viewing area and draw road profile;
S4, described road profile is carried out with road conditions drafting and road nodename draw.
On the other hand, the embodiment of the present invention proposes a kind of road conditions drawing apparatus, including:
Projecting unit, for obtaining the GIS data of whole section of road to be drawn, extracts the warp of the interior point of described whole section of road Degree and latitude, and described interior point is projected viewing area by the longitude according to described interior point and latitude;
Signal generating unit, if for judging to know that described whole section of road continuously reversely become as one-way road and in short distance Change, then using secondary Bessel equation to point in described whole section of road benefit, and exterior point is generated based on the interior point of described whole section of road;
First drawing unit, for being processed to described interior point and exterior point using the PATH in programming language, is obtained Road model, and it is based on described road model drafting road profile in described viewing area;
Second drawing unit, draws for described road profile is carried out with road conditions drafting and road nodename.
Road conditions method for drafting provided in an embodiment of the present invention and device, obtain the GIS number of whole section of road to be drawn first According to extracting the longitude of interior point of described whole section of road and latitude, and the longitude according to described interior point and latitude will described interior point throwing It is mapped to viewing area;If judge afterwards to know described whole section of road as one-way road and in short distance continuous inverse change, Using secondary Bessel equation to point in described whole section of road benefit, and exterior point is generated based on the interior point of described whole section of road;Then Using the PATH in programming language, described interior point and exterior point are processed, obtain road model, and in described viewing area Road profile is drawn based on described road model;Finally road conditions drafting is carried out to described road profile and road nodename is painted System, on the one hand, whole section of road is mended with interior point it can be ensured that obtaining a smooth road by using secondary Bessel equation, The abstract road that drafting obtains is made to have higher compatible degree with real road, on the other hand, by road understanding is become two-sided flat The model of row, extracts interior point and exterior point, the Path that interior point and exterior point are added to programming language complete completing the exhibition of road Now work, can solve the problem that the junction of the different road conditions sections that prior art exists occurs the problem of stiff bifurcated.
Brief description
Fig. 1 is the signal of a kind of road figure (right figure) that obtains of existing drafting scheme and real road figure (left figure) Figure;
Fig. 2 is the connection diagram of the different road conditions sections that a kind of existing drafting scheme obtains;
Fig. 3 is the schematic flow sheet of road conditions method for drafting one embodiment of the present invention;
Fig. 4 is the schematic diagram of the partly interior point of road before and after point in mending in another embodiment of road conditions method for drafting of the present invention;
Fig. 5 is the structural representation of road conditions drawing apparatus one embodiment of the present invention.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is explicitly described it is clear that described embodiment is the present invention A part of embodiment, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not having The every other embodiment being obtained under the premise of making creative work, broadly falls into the scope of protection of the invention.
Referring to Fig. 3, the present embodiment discloses a kind of road conditions method for drafting, including:
S1, obtain the GIS data of whole section of road to be drawn, extract the longitude of interior point and the latitude of described whole section of road, And described interior point is projected viewing area by the longitude according to described interior point and latitude;
The road information that can obtain from GIS (Geographic Information System, GIS-Geographic Information System) For the form of longitude and latitude+node+road conditions, when carrying out drawing it is necessary first to interior point is projected two-dimensional display area.Need It is noted that the trend of road node (generally being unilateral road centre to take a little) gathering GIS is referred to as original point, it is Simple flow, this point is also interior point.Interior position to outside road (i.e. towards road single towards when road right Side) translation, translation distance is road original width, obtains a sequence of points, and these points are referred to as exterior point.Described interior point projects aobvious Show region Formula of Coordinate System Transformation be { x1, y1 }={ ((x-minlon)/(maxlon-minlon)) * r0*x, ((x- Minlat)/(maxlat-minlat)) * r0*y, wherein, x1 and y1 be respectively in the abscissa in described viewing area for the point and Ordinate, x and y is respectively longitude and the latitude of interior point, minlon and maxlon is respectively the warp of the interior point of described whole section of road The minimum of a value of degree and maximum, minlat and maxlat is respectively the minimum of a value of latitude of interior point and the maximum of described whole section of road Value, r0 is the pantograph ratio of interior point.
It should be noted that planar, for naked eyes or be difficult to observe after the interior point-rendering of hypotelorism, or effect And inconspicuous, thus, in order to improve drafting speed, when drawing, point in these can be rejected, the calculation that the present invention uses Method can be classical Douglas-Pu Ke algorithm.The basic ideas of this algorithm are:One is virtually connected directly to point in the first and last of road Line, seeks the distance of all interior points and this straight line, and finds out maximum range value dmax, by dmax compared with limit difference D:If dmax<D, In the centre of road, point is all cast out;If dmax >=D, retain the corresponding interior point of dmax, and with this interior point as boundary, in road Point is divided into two parts, to this two parts Reusability the method, until no point can be cast out.
If S2 judge to know described whole section of road as one-way road and in short distance continuous inverse change, using two Secondary Bessel equation is to point in described whole section of road benefit, and generates exterior point based on the interior point of described whole section of road;
In the present embodiment, the PATH that method for drafting adopts is secondary Bezier or multiple Bezier, if short The situation of continuous inverse change in the distance, and curve occurs serious distortion, for solving this problem, needs by mending point Method remedies aberration problems.It should be noted that the condition mending point includes:(1) road is reverse;(2) reversely violent.Judging When whether road meets the condition mending point, needs are firstly for whole section of road, according to trend of road, by every four continuous interior dot-dash It is divided into one group, for point in every group, adjacent interior point in this group is linked to be line segment two-by-two, is judged according to each group line segment afterwards. Illustrate whether road meets the deterministic process of the condition mending point with specific example below, and when meeting, how to mend mistake a little Journey.Such as, for interior point A, B, C, the D shown in left figure in Fig. 4, calculate consecutive points in point A, B, C, D respectively and connect the company being formed The slope L (AB) of line AB, BC, CD, L (BC), L (CD), if L (AB)>L (BC) and L (BC)<L (CD) then proves D point reversely, road If road is reversely or L (AB)<L (BC) and L (BC)>L (CD) then proves D point reversely, and road is reverse;Other situations then illustrate road Not reverse.After determining that road is reverse, need to judge whether reversely acutely, that is, to need to calculate outgoing vectorWith vector's Angle α and vectorWith vectorThe ratio of length L of angle β sum and line segment BC absolute valueWhether it is more than Threshold value A 0 (typically taking 0.6 times of road width), if more than it is determined that going out reversely violent, otherwise, it determines go out reversely inviolent. If it is determined that reversely violent, then calculate new interior point using secondary Bessel equation and be added between interior point A and D that (new is interior Often be spaced a unit distance in point between adjacent 2 points), and delete interior point B and C, mend between interior point A and D in formation after point Interior point is as shown in Fig. 4 right figure.
After putting in mending, need to generate corresponding exterior point according to the interior point of road, process can include:For each two phase Adjacent interior point, determines corresponding as point in this two with the point putting the width for described whole section of road for the distance in this two respectively Exterior point, wherein, this exterior point be located at this two in point line formed line segment right side.
S3, using the PATH in programming language, described interior point and exterior point are processed, obtain road model, and described It is based on described road model in viewing area and draw road profile;
In the present embodiment, described S3, can include:
All interior points are put in PATH using secondary bessel method positive sequence;
Point in last is connected to last exterior point;
By except other exterior points of last exterior point described, put into PATH using secondary bessel method inverted order;
Terminate PATH, so that interior exterior point is joined end to end, obtain described road model;
Using the paintbrush retouching edge mode, path filling is carried out to described road model, obtain described road profile.
S4, described road profile is carried out with road conditions drafting and road nodename draw.
Road conditions method for drafting provided in an embodiment of the present invention, obtains the GIS data of whole section of road to be drawn first, extracts The longitude of interior point of described whole section of road and latitude, and described interior point is projected display by the longitude according to described interior point and latitude Region;If judge afterwards to know described whole section of road as one-way road and in short distance continuous inverse change, using secondary Bessel equation is to point in described whole section of road benefit, and generates exterior point based on the interior point of described whole section of road;Followed by programming PATH in language is processed to described interior point and exterior point, obtains road model, and is based on described in described viewing area Road model draws road profile;Finally described road profile is carried out with road conditions drafting and road nodename is drawn, on the one hand, Whole section of road being mended with interior point it can be ensured that obtaining a smooth road by using secondary Bessel equation, so that drafting is obtained Abstract road and real road have higher compatible degree, on the other hand, by road understanding is become two-sided parallel model, carry Point and exterior point in taking out, the Path that interior point and exterior point are added to programming language complete completing the work that represents of road, can Solve the problems, such as that the junction of the different road conditions sections that prior art exists occurs stiff bifurcated.
On the basis of preceding method embodiment, described S4, can include:
Extract the node road condition data of described whole section of road from described GIS data, form road conditions array;
Between each two adjacent element in described road conditions array, intubating length is 0 intermediate color, obtains new road conditions Array;
Described new road conditions array is changed into corresponding color array;
Calculate the total length of one-way road, count the length of each node road conditions, and calculate length and the institute of each node road conditions State the ratio of total length, obtain road conditions ratio array;
Obtain the final position of each element in described color array according to described road conditions ratio array, and be based on described end Point position and color array generate color position array;
Obtain in first of described whole section of road principal direction point and point in last, according to point in described first and In last, point calculates the angle of described whole section of road;
Angle according to described color position array and whole section of road uses the paintbrush of fill pattern to fill described road Profile, completes the drafting of road conditions, and wherein, during drafting, described whole section of road is arranged to linear road.
In paintbrush, each color has start position, starting point color, final position and terminal colour.Using multiple face During color, need for color to be combined into array, color position is combined into data.In the present embodiment, it is 20KM's such as a certain length Road, 8KM road conditions green mark before this road, ensuing 5KM road conditions are identified with yellow, and 2KM road conditions afterwards are red Mark, last 5KM road conditions are identified with yellow, then can form road conditions array (G, Y, R, Y), and wherein, G represents green mark road Condition, Y represents yellow mark road conditions, and R represents red mark road conditions.Each segment description is G (0,0.4), Y (0.4,0.65), R respectively (0.65,0.75), Y (0.75,1), wherein, value in bracket, first is worth for start position, and second is worth for final position. If after paintbrush paints redness, paintbrush is red, want to draw green, objective can have one by the green process of red change, this mistake Journey is referred to as gradual change.Due to there is a gradual change between every two kinds of colors, but road conditions are directly to change to Huang from green, do not have gradual change Effect, thus need between each two color add length be 0 intermediate color, the road conditions array adding be (G, → Y, Y, → R, R, → Y, Y), corresponding color array is (green, yellow, yellow, red, red, yellow, yellow), retouches for each section State is G (0,0.4), → Y (0.4,0.4), Y (0.4,0.65), → R (0.65,0.65), R (0.65,0.75), → Y respectively (0.75,0.75), Y (0.75,1).Finally all data are sequentially stored in array and can get colour bits and put array, that is, (0// Starting point, the terminal of 0.4//G, the terminal of 0.4//→ Y, the terminal of 0.65//Y, the terminal of 0.65//→ R, the terminal of 0.75//R, The terminal of 0.75//→ Y, the terminal of 1//Y).It should be noted that each color has starting and terminal point, but paintbrush current location It is exactly starting point, so only needing to arrange starting point in the first step, other positions can not set starting point again.
On the basis of preceding method embodiment, described S4, can include:
S40, the longitude and latitude span of the described whole section of road of acquisition, determine text composition side according to described longitude and latitude span To;
If it should be noted that the longitude span of whole section of road be more than latitude span, the vertical typesetting of word, otherwise, level Typesetting.
S41, find out interior point at each node, the position of the interior point at each node is corresponded to as described whole section of road The initial position that the title of node shows;
S42, according to default font, font size information, calculate size shared by single Chinese character;
S43, for each node, the initial position being shown according to the title of this node and chi shared by single Chinese character Very little, determine the coffin shared by the title of this node, if the coffin shared by title of this node is known in detection Overlapping with the coffin presence shared by the title of other nodes of this near nodal, then by shared by the title of this node Coffin to the left or moves down predeterminable range according to described text composition direction compared to initial position, if detecting after mobile Know the coffin shared by the title of other nodes of the coffin shared by the title of this node and this near nodal Still suffer from overlap, then again by the coffin shared by the title of this node after movement according to described text composition direction compared to The opposite direction of an initial position moving direction forward moves predeterminable range, and duplicate detection, the process of reverse movement are until this section There is not weight with the coffin shared by the title of other nodes of this near nodal in the coffin shared by title of point Folded, then the now rectangle shared by the title of this node that the coffin shared by the title of this node is as finally determined Space, or until the coffin shared by title of this node exceeds viewing area border, then according to described text composition Direction increases display line number or the columns of the title of this node, re-executes step S43 until finally determining the name of this node Claim shared coffin or until the display line number after increasing or columns are more than the Chinese that the title of this node is comprised Character quantity, wherein, the first time result of calculation of described coffin is to arrange according to described word based on by the title of this node Version direction calculated with single file/columnar version typesetting, after once the equidirectional distance compared to initial position movement than previous Vice-minister, the distance of a direction kth time movement is equal with the distance of other direction kth time movement, and k is positive integer;
S44, the node of the coffin shared by title is finally determined for each, according to the title institute of this node The coffin taking calculates start position and the section row that title shows, is exercised with default picture according to described start position and section Title drawn by pen.
Firstly the need of explanation, described predeterminable range can be arranged as required to, and is such as set to 5 pixels.If civilian Word writing direction is horizontal typesetting, then move in the lateral direction in mobile corresponding coffin, be typically first moved to the left, and And corresponding coffin exceed viewing area border when increase be display line number, typically once increase a line;If word Writing direction is vertical typesetting, then vertically move in mobile corresponding coffin, typically first move up, and Increase when corresponding coffin is beyond viewing area border is display columns, typically once increases by row.For example, Such as the coffin M0 shared by the title of a certain node it is assumed that M0 about move back and forth during still suffer from weight Folded, and move to when the 8th time beyond viewing area border, then increase a line display line number, obtain showing that the rectangle that line number is 2 is empty Between M1, now, then to M1 about move back and forth, if left and right still suffers from overlap during moving back and forth, and when moving to the 9th time Beyond viewing area border, then increase a line display line number, obtain showing the coffin M2 that line number is 3, then, more left to M2 The right side moves back and forth, if left and right still suffers from overlap during moving back and forth, and moves to beyond viewing area border when the 10th time, Then increase a line display line number, obtain showing the coffin M3 that line number is 4, if the title of this node only includes 2 characters, because The display line number 3 of the coffin now obtaining is more than 2, then give up the coffin shared by the title of this node, if or The title of this node includes 4 characters, then again to M3 about move back and forth, if do not exist when left and right moves back and forth to the 2nd time weight Folded, then the position moving to the coffin shared by the title of this node for the 2nd time is as the final coffin determining.
On the basis of preceding method embodiment, described S2, can also include:
If judging to know described whole section of road as two-way road, picking out from described two-way road with reference to road, utilizing Described with reference to road, the non-interior point with reference to road is rectified a deviation;
If judging to know described whole section of road continuous inverse change in short distance, using secondary Bessel equation to institute State point in whole section of road benefit, and exterior point is generated based on the interior point of described whole section of road.
Road data because collecting might not be completely correct, and the both direction appearance being likely to result in a road is non- Normally interlocking, thus not being inconsistent with real road, therefore needing the interior point of two-way road is rectified a deviation.It is exemplified below. Such as it is assumed that the interior point sum of circuit a, b of the both direction of two-way road is respectively N (a) and N (b), the total drift angle of interior point (deviation angle sum of the line of interior point adjacent two-by-two) is respectively D (a) and D (b), as | N (a)-N (b) |<5, and D (a)<D When (b), select circuit a as with reference to road, otherwise select circuit b as with reference to road;As N (a)-N (b)>When 5, circuit a is selected to make It is with reference to road;As N (b)-N (a)>When 5, select circuit b as with reference to road.
Assume to determine that circuit a is with reference to road, then for non-with reference to point in each on road, make this interior point to reference on road The vertical line of the line of interior point adjacent two-by-two, the maximum length of calculated vertical line section, if judge to know that this maximum length is little In default numerical value (being traditionally arranged to be 10 pixels), then deviate from and move this interior point with reference to road, make this interior point to the shortest vertical line section Distance be this maximum length (it should be noted that this interior point moves all the time on the straight line that the shortest vertical line section is located), otherwise, Then keep this interior position constant.
Referring to Fig. 5, the present embodiment discloses a kind of road conditions drawing apparatus, including:
Projecting unit 1, for obtaining the GIS data of whole section of road to be drawn, extracts the interior point of described whole section of road Longitude and latitude, and described interior point is projected viewing area by the longitude according to described interior point and latitude;
Signal generating unit 2, if for judging to know that described whole section of road continuously reversely become as one-way road and in short distance Change, then using secondary Bessel equation to point in described whole section of road benefit, and exterior point is generated based on the interior point of described whole section of road;
First drawing unit 3, for being processed to described interior point and exterior point using the PATH in programming language, is obtained Road model, and it is based on described road model drafting road profile in described viewing area;
Second drawing unit 4, draws for described road profile is carried out with road conditions drafting and road nodename.
Road conditions drawing apparatus provided in an embodiment of the present invention, obtain the GIS data of whole section of road to be drawn first, extract The longitude of interior point of described whole section of road and latitude, and described interior point is projected display by the longitude according to described interior point and latitude Region;If judge afterwards to know described whole section of road as one-way road and in short distance continuous inverse change, using secondary Bessel equation is to point in described whole section of road benefit, and generates exterior point based on the interior point of described whole section of road;Followed by programming PATH in language is processed to described interior point and exterior point, obtains road model, and is based on described in described viewing area Road model draws road profile;Finally described road profile is carried out with road conditions drafting and road nodename is drawn, on the one hand, Whole section of road being mended with interior point it can be ensured that obtaining a smooth road by using secondary Bessel equation, so that drafting is obtained Abstract road and real road have higher compatible degree, on the other hand, by road understanding is become two-sided parallel model, carry Point and exterior point in taking out, the Path that interior point and exterior point are added to programming language complete completing the work that represents of road, can Solve the problems, such as that the junction of the different road conditions sections that prior art exists occurs stiff bifurcated.
Said apparatus can execute any one road conditions method for drafting aforementioned, thus can solve identical technical problem, Reach same technique effect.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or computer program Product.Therefore, the application can be using complete hardware embodiment, complete software embodiment or the reality combining software and hardware aspect Apply the form of example.And, the application can be using in one or more computers wherein including computer usable program code The upper computer program implemented of usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) produces The form of product.
The application is the flow process with reference to method, equipment (system) and computer program according to the embodiment of the present application Figure and/or block diagram are describing.It should be understood that can be by each stream in computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor instructing all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is to produce A raw machine is so that produced for reality by the instruction of computer or the computing device of other programmable data processing device The device of the function of specifying in present one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to Make the manufacture of device, this command device realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one The step of the function of specifying in individual square frame or multiple square frame.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating In any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant are intended to Comprising of nonexcludability, wants so that including a series of process of key elements, method, article or equipment and not only including those Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element that limited by sentence "including a ..." it is not excluded that Also there is other identical element including in the process of described key element, method, article or equipment.Term " on ", D score etc. refers to The orientation showing or position relationship are based on orientation shown in the drawings or position relationship, are for only for ease of the description present invention and simplification Description, rather than indicate or imply that the device of indication or element must have specific orientation, with specific azimuth configuration and behaviour Make, be therefore not considered as limiting the invention.Unless otherwise clearly defined and limited, term " installation ", " being connected ", " connection " should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected, or is integrally connected;Can be It is mechanically connected or electrically connect;Can be to be joined directly together it is also possible to be indirectly connected to by intermediary, can be two The connection of element internal.For the ordinary skill in the art, above-mentioned term can be understood as the case may be at this Concrete meaning in invention.
In the specification of the present invention, illustrate a large amount of details.Although it is understood that, embodiments of the invention can To put into practice in the case of there is no these details.In some instances, known method, structure and skill are not been shown in detail Art, so as not to obscure the understanding of this description.Similarly it will be appreciated that disclosing and help understand respectively to simplify the present invention One or more of individual inventive aspect, in the description to the exemplary embodiment of the present invention above, each of the present invention is special Levy and be sometimes grouped together in single embodiment, figure or descriptions thereof.However, should not be by the method solution of the disclosure Release be intended to following in reflection:I.e. the present invention for required protection requires than the feature being expressly recited in each claim more Many features.More precisely, as the following claims reflect, inventive aspect is less than single reality disclosed above Apply all features of example.Therefore, it then follows claims of specific embodiment are thus expressly incorporated in this specific embodiment, Wherein each claim itself is as the separate embodiments of the present invention.It should be noted that in the case of not conflicting, this Embodiment in application and the feature in embodiment can be mutually combined.The invention is not limited in any single aspect, It is not limited to any single embodiment, be also not limited to any combination and/or the displacement of these aspects and/or embodiment.And And, can be used alone each aspect of the present invention and/or embodiment or with other aspects one or more and/or its enforcement Example is used in combination.
Finally it should be noted that:Various embodiments above only in order to technical scheme to be described, is not intended to limit;To the greatest extent Pipe has been described in detail to the present invention with reference to foregoing embodiments, it will be understood by those within the art that:Its according to So the technical scheme described in foregoing embodiments can be modified, or wherein some or all of technical characteristic is entered Row equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology The scope of scheme, it all should be covered in the middle of the claim of the present invention and the scope of specification.

Claims (10)

1. a kind of road conditions method for drafting is it is characterised in that include:
S1, obtain the GIS data of whole section of road to be drawn, extract the longitude of interior point and the latitude of described whole section of road, and root Described interior point is projected viewing area by longitude and latitude according to described interior point;
If S2 judge to know described whole section of road as one-way road and in short distance continuous inverse change, using secondary shellfish Sai Er equation is to point in described whole section of road benefit, and generates exterior point based on the interior point of described whole section of road;
S3, using the PATH in programming language, described interior point and exterior point are processed, obtain road model, and in described display It is based on described road model in region and draw road profile;
S4, described road profile is carried out with road conditions drafting and road nodename draw.
2. method according to claim 1 is it is characterised in that described interior point projects the Formula of Coordinate System Transformation of viewing area For { x1, y1 }={ ((x-minlon)/(maxlon-minlon)) * r0*x, ((x-minlat)/(maxlat-minlat)) * R0*y }, wherein, x1 and y1 is respectively the abscissa in described viewing area for the interior point and ordinate, x and y is respectively the warp of interior point Degree and latitude, minlon and maxlon is respectively the minimum of a value of longitude of interior point and the maximum of described whole section of road, minlat It is respectively minimum of a value and the maximum of the latitude of the interior point of described whole section of road with maxlat, r0 is the pantograph ratio of interior point.
3. method according to claim 1 and 2 is it is characterised in that after described S1, also include:
Described interior point is carried out take out dilute, to reject partly interior point;
Wherein, described S2, including:
If judge to know described whole section of road as one-way road and in short distance continuous inverse change, using secondary Bezier Equation to take out dilute after described whole section of road mend in point.
4. method according to claim 3 is it is characterised in that described S2, including:
Determine and mend point position, wherein, each is mended point position and is determined by point in continuous four;
Calculate new interior point using secondary Bessel equation, by the end of point in described described continuous four new of interior point addition Between point, and the interior point of non-end points removes in putting in described continuous four.
5. method according to claim 3 is it is characterised in that described S2, including:
For the adjacent interior point of each two, determine and put the point of the width for described whole section of road for the distance and make with this two respectively Put corresponding exterior point in this two, wherein, the right side of this exterior point line segment that point line is formed in this two.
6. method according to claim 1 is it is characterised in that described S3, including:
All interior points are put in PATH using secondary bessel method positive sequence;
Point in last is connected to last exterior point;
By except other exterior points of last exterior point described, put into PATH using secondary bessel method inverted order;
Terminate PATH, so that interior exterior point is joined end to end, obtain described road model;
Using the paintbrush retouching edge mode, path filling is carried out to described road model, obtain described road profile.
7. method according to claim 1 is it is characterised in that described S4, including:
Extract the node road condition data of described whole section of road from described GIS data, form road conditions array;
Between each two adjacent element in described road conditions array, intubating length is 0 intermediate color, obtains new road conditions array;
Described new road conditions array is changed into corresponding color array;
Calculate the total length of one-way road, count the length of each node road conditions, and it is total with described to calculate the length of each node road conditions The ratio of length, obtains road conditions ratio array;
Obtain the final position of each element in described color array according to described road conditions ratio array, and be based on described terminal position Put and generate color position array with color array;
Obtain and put in first of described whole section of road principal direction and point in last, according to point in described first with finally In one, point calculates the angle of described whole section of road;
Angle according to described color position array and whole section of road uses the paintbrush of fill pattern to fill described road profile, Complete the drafting of road conditions, wherein, during drafting, described whole section of road is arranged to linear road.
8. method according to claim 1 is it is characterised in that described S4, including:
S40, the longitude and latitude span of the described whole section of road of acquisition, determine text composition direction according to described longitude and latitude span;
S41, find out interior point at each node, using the position of the interior point at each node as described whole section of road corresponding node The initial position that shows of title;
S42, according to default font, font size information, calculate size shared by single Chinese character;
S43, for each node, the initial position being shown according to the title of this node and size shared by single Chinese character, Determine the coffin shared by the title of this node, if detection is known the coffin shared by title of this node and is somebody's turn to do The coffin shared by the title of other nodes of near nodal exists overlapping, then by the rectangle shared by the title of this node Space to the left or moves down predeterminable range according to described text composition direction compared to initial position, knows if detecting after mobile Coffin shared by the title of this node is still deposited with the coffin shared by the title of other nodes of this near nodal In overlap, then again by the coffin shared by the title of this node after movement according to described text composition direction compared to initial The opposite direction of position moving direction forward moves predeterminable range, and duplicate detection, the process of reverse movement are until this node Coffin shared by title and the coffin shared by the title of other nodes of this near nodal do not exist overlapping, then The now coffin shared by the title of this node that the coffin shared by the title of this node is as finally determined, Or until the coffin shared by title of this node exceeds viewing area border, then increase according to described text composition direction Plus the display line number of the title of this node or columns, re-execute step S43 until finally determining shared by the title of this node Coffin or the display line number up to after increase or columns are more than the Chinese character number that the title of this node is comprised Amount, wherein, the first time result of calculation of described coffin be based on by the title of this node according to described text composition direction Calculated with single file/columnar version typesetting, after once the equidirectional distance compared to initial position movement than previous vice-minister, one The distance of direction kth time movement is equal with the distance of other direction kth time movement, and k is positive integer;
S44, the node of the coffin shared by title is finally determined for each, according to shared by the title of this node Coffin calculate start position and the section row that title shows, exercised according to described start position and section and painted with presetting paintbrush Title processed.
9. method according to claim 1, it is characterised in that described S2, also includes:
If judging to know described whole section of road as two-way road, pick out with reference to road from described two-way road, using described With reference to road, the non-interior point with reference to road is rectified a deviation;
If judging to know described whole section of road continuous inverse change in short distance, using secondary Bessel equation to described whole Point in Duan Daolu benefit, and exterior point is generated based on the interior point of described whole section of road.
10. a kind of road conditions drawing apparatus are it is characterised in that include:
Projecting unit, for obtaining the GIS data of whole section of road to be drawn, extract described whole section of road the longitude of interior point and Latitude, and described interior point is projected viewing area by the longitude according to described interior point and latitude;
Signal generating unit, if for judge to know described whole section of road as one-way road and in short distance continuous inverse change, Using secondary Bessel equation to point in described whole section of road benefit, and exterior point is generated based on the interior point of described whole section of road;
First drawing unit, for processing to described interior point and exterior point using the PATH in programming language, obtains road mould Type, and it is based on described road model drafting road profile in described viewing area;
Second drawing unit, draws for described road profile is carried out with road conditions drafting and road nodename.
CN201611090102.2A 2016-11-29 2016-11-29 Road conditions method for drafting and device Active CN106409129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611090102.2A CN106409129B (en) 2016-11-29 2016-11-29 Road conditions method for drafting and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611090102.2A CN106409129B (en) 2016-11-29 2016-11-29 Road conditions method for drafting and device

Publications (2)

Publication Number Publication Date
CN106409129A true CN106409129A (en) 2017-02-15
CN106409129B CN106409129B (en) 2019-02-05

Family

ID=58083897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611090102.2A Active CN106409129B (en) 2016-11-29 2016-11-29 Road conditions method for drafting and device

Country Status (1)

Country Link
CN (1) CN106409129B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107633018A (en) * 2017-08-23 2018-01-26 武汉理工光科股份有限公司 A kind of long distance oil pipeline quickly configuration method based on GIS
CN109410626A (en) * 2017-08-17 2019-03-01 杭州海康威视系统技术有限公司 Website marker method, device, electronic equipment and computer readable storage medium
CN110597428A (en) * 2019-09-12 2019-12-20 西安瑞特森信息科技有限公司 GIS data acquisition method
CN111223386A (en) * 2020-01-16 2020-06-02 深圳市中科智联科技有限公司 Electronic map lamp marking method, terminal and storage medium
CN112435573A (en) * 2020-11-24 2021-03-02 北京赛目科技有限公司 Map drawing method and device for automatic driving simulation test
CN112835504A (en) * 2021-02-05 2021-05-25 深圳市亿图软件有限公司 Thinking guide graph track processing method and device, computer equipment and storage medium
CN113390425A (en) * 2020-03-13 2021-09-14 北京四维图新科技股份有限公司 Map data processing method, map data processing device, map data processing equipment and storage medium
CN113936476A (en) * 2021-09-01 2022-01-14 深圳云天励飞技术股份有限公司 Signal lamp control method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006250875A (en) * 2005-03-14 2006-09-21 Alpine Electronics Inc Navigation device and method for correcting position of mobile body
CN101162154A (en) * 2007-11-06 2008-04-16 北京航空航天大学 Road network model based on virtual nodes
CN101640001A (en) * 2009-07-08 2010-02-03 北京交通大学 Simulation-system-oriented road network drawing device and method therefor
CN102998684A (en) * 2012-11-21 2013-03-27 厦门雅迅网络股份有限公司 Terminal positioning track fitting method based on Bezier curve
CN105205841A (en) * 2015-08-21 2015-12-30 通号通信信息集团有限公司 Map generation method and system of geographic information system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006250875A (en) * 2005-03-14 2006-09-21 Alpine Electronics Inc Navigation device and method for correcting position of mobile body
CN101162154A (en) * 2007-11-06 2008-04-16 北京航空航天大学 Road network model based on virtual nodes
CN101640001A (en) * 2009-07-08 2010-02-03 北京交通大学 Simulation-system-oriented road network drawing device and method therefor
CN102998684A (en) * 2012-11-21 2013-03-27 厦门雅迅网络股份有限公司 Terminal positioning track fitting method based on Bezier curve
CN105205841A (en) * 2015-08-21 2015-12-30 通号通信信息集团有限公司 Map generation method and system of geographic information system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109410626A (en) * 2017-08-17 2019-03-01 杭州海康威视系统技术有限公司 Website marker method, device, electronic equipment and computer readable storage medium
CN107633018B (en) * 2017-08-23 2020-11-17 武汉理工光科股份有限公司 Long-distance oil pipeline rapid configuration method based on GIS
CN107633018A (en) * 2017-08-23 2018-01-26 武汉理工光科股份有限公司 A kind of long distance oil pipeline quickly configuration method based on GIS
CN110597428A (en) * 2019-09-12 2019-12-20 西安瑞特森信息科技有限公司 GIS data acquisition method
CN110597428B (en) * 2019-09-12 2020-12-15 西安瑞特森信息科技有限公司 GIS data acquisition method
CN111223386A (en) * 2020-01-16 2020-06-02 深圳市中科智联科技有限公司 Electronic map lamp marking method, terminal and storage medium
CN113390425A (en) * 2020-03-13 2021-09-14 北京四维图新科技股份有限公司 Map data processing method, map data processing device, map data processing equipment and storage medium
CN113390425B (en) * 2020-03-13 2023-11-21 北京四维图新科技股份有限公司 Map data processing method, device, equipment and storage medium
CN112435573A (en) * 2020-11-24 2021-03-02 北京赛目科技有限公司 Map drawing method and device for automatic driving simulation test
CN112435573B (en) * 2020-11-24 2022-03-08 北京赛目科技有限公司 Map drawing method and device for automatic driving simulation test
CN112835504B (en) * 2021-02-05 2023-08-08 深圳市亿图软件有限公司 Thinking guide graph track processing method, thinking guide graph track processing device, computer equipment and storage medium
CN112835504A (en) * 2021-02-05 2021-05-25 深圳市亿图软件有限公司 Thinking guide graph track processing method and device, computer equipment and storage medium
CN113936476A (en) * 2021-09-01 2022-01-14 深圳云天励飞技术股份有限公司 Signal lamp control method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN106409129B (en) 2019-02-05

Similar Documents

Publication Publication Date Title
CN106409129A (en) Road condition drawing method and road condition drawing device
EP1855263B1 (en) Map display device
WO2019086055A2 (en) Intersection area road network data generation method and apparatus
EP3869157A1 (en) Method and device for constructing high-resolution map
CN106123898B (en) Indoor paths planning method based on picture parsing
EP2820633B1 (en) Three-dimensional traffic flow presentation
CN106802954A (en) Unmanned vehicle semanteme cartographic model construction method and its application process on unmanned vehicle
CN102692232A (en) Signposts in digital maps
CN110378293B (en) Method for producing high-precision map based on live-action three-dimensional model
CN110631601B (en) Path planning method based on non-display topological vector map
CN105136160A (en) Mobile terminal-augmented reality technology-based close range optimal bus station navigation method
CN108921943A (en) A kind of road threedimensional model modeling method based on lane grade high-precision map
CN111062958B (en) Urban road element extraction method
CN106682084B (en) The method and device widened is oriented to electronic map section
CN104931037A (en) Navigation prompting information generation method and device
CN109101743A (en) A kind of construction method of high-precision road net model
CN114509065B (en) Map construction method, system, vehicle terminal, server and storage medium
CN108388995A (en) A kind of method for building up of road asset management system and establish system
US20210270629A1 (en) Method and apparatus for selecting a path to a destination
CN106097408B (en) A kind of continuous multi-scale expression method and system of seashore line feature
US20230206625A1 (en) Method, apparatus, and system for pole extraction from optical imagery
KR101150347B1 (en) Manufacturing methods od digital map using spatial database
CN112017262B (en) Pavement marker generation method and device, storage medium and electronic equipment
CN114969944A (en) High-precision road DEM construction method
CN113447039A (en) High-precision road shortest path calculation method based on mapping information

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