CN106409129B - Road conditions method for drafting and device - Google Patents

Road conditions method for drafting and device Download PDF

Info

Publication number
CN106409129B
CN106409129B CN201611090102.2A CN201611090102A CN106409129B CN 106409129 B CN106409129 B CN 106409129B CN 201611090102 A CN201611090102 A CN 201611090102A CN 106409129 B CN106409129 B CN 106409129B
Authority
CN
China
Prior art keywords
road
point
interior point
whole section
node
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
Application number
CN201611090102.2A
Other languages
Chinese (zh)
Other versions
CN106409129A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Ecology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention discloses a kind of road conditions method for drafting and device, is able to solve the obtained road of the existing technology drawn not as good as the problem of real road is smooth and the junction of different road conditions sections will appear stiff bifurcated.This method comprises: S1, obtaining the GIS data of whole section of road to be drawn, the longitude and latitude of the interior point of the whole section of road are extracted, and the interior point is projected by display area according to the longitude of the interior point and latitude;If S2, judging to know that continuous inverse change, the secondary Bessel equation of use mend interior point to the whole section of road to the whole section of road as one-way road and in short distance, and based on the interior point of whole section of road generation exterior point;S3, the interior point and exterior point are handled using the PATH in programming language, obtains road model, and road profile is drawn based on the road model in the display area;S4, road conditions drafting and the drafting of road nodename are carried out to the road profile.

Description

Road conditions method for drafting and device
Technical field
The present invention relates to survey fields, and in particular to a kind of road conditions method for drafting and device.
Background technique
With the made rapid progress of global Surveying Engineering, GIS information has all obtained point-device data supporting in the whole world, with Road ways of presentation based on GIS data is even more that a hundred flowers blossom, and each technology company has even more accomplished cartographic information ultimate attainment. For example, Google Maps refines basic information, provides comprehensive and detailed map and guide, the big version to any one continent Figure can all be received in eye to the greatest extent, and the small direction to certain building house all marks without the slightest error.
In recent years, Cartographic Technique was accepted extensively and was used by people, because it is just met for spy of the people to the world Rope and craving.But thing is good without hundred, and for people without same, everyone more or less has oneself opinion and demand in.Such as It when using navigation, or is to prefer to obtain a kind of more abstract schematic diagram, removal when checking highway or urban road The strong information of interference around road knows the basic configuration of road and the traffic information of road at a glance.This figure It is similar to road but nisi accurate, information is more simple, intuitive and prominent.
Using Baidu as the user of representative, it is now the drafting scheme of former data straight line connection using extensive scheme, that is, is based on Existing GIS data is a series of coordinate informations and road node data based on longitude and latitude that road provides, these are counted According to two-dimensional plane coordinate is converted into, the development language of each platform is reused, plane coordinate point is joined end to end one by one, then with overstriking The form of line forms road pattern.After the GIS data acquisition of this scheme, usually by vacuating processing, so road Data are on the low side, are directly connected to will cause road shape stiff strange.The road figure (right figure) that scheme obtains thus as shown in Figure 1 With the schematic diagram of real road figure (left figure), it can be seen that the road that this scheme obtains is smooth not as good as real road, and practical There is biggish discrepancy in prototype for road.And to draw road conditions, this scheme difference road conditions is all connected using different line segments It connects, junction can have unnatural bifurcated, influence final beauty.It is illustrated in figure 2 the connection schematic diagram of different road conditions sections, As can be seen that there is stiff bifurcated in the junction of different road conditions sections in Fig. 2.
Summary 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, comprising:
S1, the GIS data for obtaining whole section of road to be drawn extract the longitude and latitude of the interior point of the whole section of road, And the interior point is projected by display area according to the longitude of the interior point and latitude;
If S2, judging to know the whole section of road continuous inverse change as one-way road and in short distance, two are used Secondary Bessel equation mends interior point to the whole section of road, and generates exterior point based on the interior point of the whole section of road;
S3, the interior point and exterior point are handled using the PATH in programming language, obtains road model, and described Road profile is drawn based on the road model in display area;
S4, road conditions drafting and the drafting of road nodename are carried out to the road profile.
On the other hand, the embodiment of the present invention proposes a kind of road conditions drawing apparatus, comprising:
Projecting unit extracts the warp of the interior point of the whole section of road for obtaining the GIS data of whole section of road to be drawn Degree and latitude, and the interior point is projected by display area according to the longitude of the interior point and latitude;
Generation unit, if for judging to know the whole section of road continuous reversed change as one-way road and in short distance Change, then interior point is mended to the whole section of road using secondary Bessel equation, and exterior point is generated based on the interior point of the whole section of road;
First drawing unit is obtained for being handled using the PATH in programming language the interior point and exterior point Road model, and road profile is drawn based on the road model in the display area;
Second drawing unit, for carrying out road conditions drafting and the drafting of road nodename to the road profile.
Road conditions method for drafting and device provided in an embodiment of the present invention obtain the GIS number of whole section of road to be drawn first According to, the longitude and latitude of the interior point of the extraction whole section of road, and thrown the interior point according to the longitude of the interior point and latitude It is mapped to display area;If judging to know the whole section of road continuous inverse change as one-way road and in short distance later, Interior point is mended to the whole section of road using secondary Bessel equation, and exterior point is generated based on the interior point of the whole section of road;Then The interior point and exterior point are handled using the PATH in programming language, obtain road model, and in the display area Road profile is drawn based on the road model;Road conditions drafting finally is carried out to the road profile and road nodename is drawn System, on the one hand, interior point is mended to whole section of road by using secondary Bessel equation, it can be ensured that a smooth road is obtained, The abstract road and real road for obtaining drafting have higher compatible degree, on the other hand, by putting down road understanding at two-sided Capable model extracts interior point and exterior point, the complete exhibition to complete road of the Path that interior point and exterior point are added in programming language It now works, is able to solve the problem of junction of different road conditions section of the existing technology will appear stiff bifurcated.
Detailed description of the invention
Fig. 1 is a kind of existing signal of the road figure (right figure) that drafting scheme obtains and real road figure (left figure) Figure;
Fig. 2 is a kind of existing connection schematic diagram for the different road conditions sections that drafting scheme obtains;
Fig. 3 is the flow diagram of one embodiment of road conditions method for drafting of the present invention;
Fig. 4 is the schematic diagram put in the part of point front and back road in mending in another embodiment of road conditions method for drafting of the present invention;
Fig. 5 is the structural schematic diagram of one embodiment of road conditions drawing apparatus of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical solution in the embodiment of the present invention is explicitly described, it is clear that described embodiment is the present invention A part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
Referring to Fig. 3, the present embodiment discloses a kind of road conditions method for drafting, comprising:
S1, the GIS data for obtaining whole section of road to be drawn extract the longitude and latitude of the interior point of the whole section of road, And the interior point is projected by display area according to the longitude of the interior point and latitude;
The available road information from GIS (Geographic Information System, GIS-Geographic Information System) For longitude and latitude+node+road conditions format, when carrying out drafting work, it is necessary first to which interior point is projected two-dimensional display area.It needs It is noted that the trend of road node (generally being unilateral road centre to take a little) that GIS is acquired is referred to as original point, it is Simple flow, the point are also interior point.Interior position on the outside of road (i.e. towards road it is single towards when road it is right Side) translation, translation distance is road original width, obtains a sequence of points, these points are referred to as exterior point.The interior point projects aobvious The Formula of Coordinate System Transformation for showing region is { x1, y1 }={ ((x-minlon)/(maxlon-minlon)) * r0*x, ((x- Minlat)/(maxlat-minlat)) * r0*y, wherein x1 and y1 be respectively in point the display area abscissa and Ordinate, x and y are respectively the interior longitude and latitude put, and minlon and maxlon are respectively the warp of the interior point of the whole section of road The minimum value and maximum value of degree, minlat and maxlat are respectively the minimum value and maximum of the latitude of the interior point of the whole section of road Value, r0 are the pantograph ratio of interior point.
Naked eyes or be difficult to are observed it should be noted that planar, after the interior point-rendering of hypotelorism or effect It is not obvious, 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 the algorithm are: virtually connecting one directly to point in the first and last of road Line asks all interior points at a distance from the straight line, and finds out maximum range value dmax, by dmax compared with limiting difference D: if dmax < D, It puts in the centre of road and all casts out;If dmax >=D, retain the corresponding interior point of dmax, and using the interior point as boundary, in road Point is divided into two parts, to this two parts Reusability this method, until can cast out without point.
If S2, judging to know the whole section of road continuous inverse change as one-way road and in short distance, two are used Secondary Bessel equation mends interior point to the whole section of road, and generates exterior point based on the interior point of the whole section of road;
In the present embodiment, the PATH that method for drafting uses is secondary Bezier or multiple Bezier, if short The case where apart from interior appearance continuous inverse change, curve will appear serious distortion, to solve this problem, need through complement point Method remedies aberration problems.It should be noted that the condition of complement point includes: that (1) road is reversed;(2) reversed violent.Judging Road is needed when whether meeting the condition of complement point firstly for whole section of road, according to trend of road, by every four continuous interior click and sweep It is divided into one group, for point in every group, interior point adjacent in the group is linked to be line segment two-by-two, is judged later according to each group line segment. When illustrating whether road meets the deterministic process of the condition of complement point below with specific example, and meeting how the mistake of complement point Journey.For example, calculating consecutive points in point A, B, C, D respectively for interior point A, B, C, D shown in left figure in Fig. 4 and connecting the company to be formed Slope L (AB), L (BC), the L (CD) of line AB, BC, CD prove that D point is reversed if L (AB)>L (BC) and L (BC)<L (CD), road Road is reversed or proves that D point is reversed if L (AB)<L (BC) and L (BC)>L (CD), and road is reversed;Other situations then illustrate road It is not reversed.After determining that road is reversed, need to judge whether reversely acutely, that is, to need to calculate outgoing vectorWith vector's Angle α and vectorWith vectorAbsolute value with the ratio of the length L of line segment BC of the sum of angle βWhether it is greater than Threshold value A 0 (generally takes 0.6 times of road width), if more than, it is determined that it is reversed violent out, otherwise, it determines going out reversed inviolent. If it is determined that it is reversed violent, then new interior point is calculated using secondary Bessel equation be added between interior point A and D (newly interior A unit distance is spaced between every adjacent two o'clock in point), and interior point B and C is deleted, it is formed after the interior point of benefit between interior point A and D Interior point is as shown in Fig. 4 right figure.
In mending after point, need to generate corresponding exterior point according to the interior point of road, process may include: for every two phase Adjacent interior point is determined corresponding as putting in this two with the point for putting the width that distance is the whole section of road in this two respectively Exterior point, wherein the exterior point be located in this two put line formed line segment right side.
S3, the interior point and exterior point are handled using the PATH in programming language, obtains road model, and described Road profile is drawn based on the road model in display area;
In the present embodiment, the S3 may include:
All interior points are put into PATH using secondary bessel method positive sequence;
Point in the last one is connected to the last one exterior point;
By except other exterior points of the last one exterior point, PATH is put into using secondary bessel method inverted order;
Terminate PATH, so that interior exterior point is joined end to end, obtain the road model;
Path filling is carried out to the road model using the paintbrush for retouching edge mode, obtains the road profile.
S4, road conditions drafting and the drafting of road nodename are carried out to the road profile.
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 and latitude of the interior point of the whole section of road, and the interior point is projected by display according to the longitude of the interior point and latitude Region;If judging to know the whole section of road continuous inverse change as one-way road and in short distance later, using secondary Bessel equation mends interior point to the whole section of road, and generates exterior point based on the interior point of the whole section of road;Followed by programming PATH in language handles the interior point and exterior point, obtains road model, and based on described in the display area Road model draws road profile;Road conditions drafting finally is carried out to the road profile and road nodename is drawn, on the one hand, Interior point is mended to whole section of road by using secondary Bessel equation, it can be ensured that obtain a smooth road, obtain drafting Abstract road and real road have higher compatible degree, on the other hand, by the way that road understanding at two-sided parallel model, is mentioned Point and exterior point can by the complete work that shows to complete road of Path that interior point and exterior point are added in programming language in taking out Solve the problems, such as that the junction of different road conditions sections of the existing technology will appear stiff bifurcated.
On the basis of preceding method embodiment, the S4 may include:
The node road condition data of the whole section of road is extracted from the GIS data, forms road conditions array;
The intermediate color that intubating length is 0 between the every two adjacent element in the road conditions array, obtains new road conditions Array;
The new road conditions array is changed into corresponding color array;
The total length for calculating one-way road, counts the length of each node road conditions, and calculate length and the institute of each node road conditions The ratio for stating total length obtains road conditions ratio array;
The final position of each element in the color array is obtained according to the road conditions ratio array, and is based on the end Point position and color array generate color position array;
Obtain in first of the whole section of road principal direction point and the last one interior point, according to point in described first and Point calculates the angle of the whole section of road in the last one;
The road is filled using the paintbrush of fill pattern according to the color position array and the angle of whole section of road Profile completes the drafting of road conditions, wherein the whole section of road is arranged to linear road when drafting.
In paintbrush, each color has start position, starting point color, final position and terminal colour.Use a variety of face When color, need for color to be combined into array, color position is combined into data.It in the present embodiment, for example is 20KM's for a certain length Road, 8KM road conditions green mark, next 5KM road conditions are identified with yellow before the road, 2KM road conditions red later Mark, last 5KM road conditions are identified with yellow, then can form road conditions array (G, Y, R, Y), wherein G indicates green mark road Condition, Y indicate that yellow identifies road conditions, and R indicates 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 the value in bracket, first value are start position, and second value is final position. After if paintbrush paints red, paintbrush be it is red, want to draw green, it is objective to have a process by red greening, this mistake Journey is known as gradual change.Since there are a gradual changes between every two kinds of colors, but road conditions are directly to change to Huang from green, without gradual change Effect, thus need between every two color be added length be 0 intermediate color, the road conditions array added be (G, → Y, Y, → R, R, → Y, Y), corresponding color array is (green, yellow, yellow, red, red, yellow, yellow), and each section is retouched 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, which are sequentially stored into array, can be obtained color position array, i.e., (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 that starting point is arranged in the first step, other positions cannot set starting point again.
On the basis of preceding method embodiment, the S4 may include:
S40, the longitude and latitude span for obtaining the whole section of road, determine text composition side according to the longitude and latitude span To;
It should be noted that if the longitude span of whole section of road is greater than latitude span, the vertical typesetting of text is otherwise, horizontal Typesetting.
S41, interior point at each node is found out, it is corresponding using the position of the interior point at each node as the whole section of road The initial position that the title of node is shown;
S42, according to preset font, font size information, calculate size shared by single Chinese character;
S43, for each node, ruler shared by the initial position shown according to the title of the node and single Chinese character It is very little, the occupied rectangular space of the title of the node is determined, if the occupied rectangular space of the title of the node is known in detection It is with the occupied rectangular space of title of other nodes of the near nodal there are Chong Die, then the title of the node is occupied Rectangular space to the left or moves down pre-determined distance compared to initial position according to the text composition direction, if detecting after mobile Know the occupied rectangular space of title of the occupied rectangular space of the title of the node and other nodes of the near nodal There are still overlappings, then again by the occupied rectangular space of the title of the node after movement according to the text composition direction compared to The mobile pre-determined distance of opposite direction of initial position moving direction forward repeats to detect, the process of reverse movement is until the section There is no weights for the occupied rectangular space of title of other nodes of the occupied rectangular space of the title and near nodal of point It is folded, then the occupied rectangle of title for the node that the occupied rectangular space of the title of the node as finally determines at this time Space, or until the occupied rectangular space of title of the node exceeds display area boundary, then according to the text composition Direction increases the display line number or columns of the title of the node, re-execute the steps S43 until finally determining the name of the node Claim occupied rectangular space or until display line number or columns after increasing are greater than the Chinese that the title of the node is included Character quantity, wherein the first time calculated result of the rectangular space is based on arranging the title of the node according to the text Version direction is calculated with uniline/columnar version typesetting, and the rear primary equidirectional distance mobile compared to initial position is than previous Vice-minister, the mobile distance of a direction kth time are equidistant with other direction kth time movement, and k is positive integer;
S44, the node that the occupied rectangular space of title is finally determined for each, according to the title of node institute The rectangular space of occupancy calculates the start position that title is shown and section row, is exercised according to the start position and section with default picture Pen draws title.
Firstly the need of explanation, the pre-determined distance can according to need setting, for example be set as 5 pixels.If literary Word writing direction is horizontal typesetting, then moves in the corresponding rectangular space of movement, be generally first moved to the left in the lateral direction, and And increased when corresponding rectangular space exceeds display area boundary is display line number, general primary increase a line;If text Writing direction is vertical typesetting, then vertically moves in the corresponding rectangular space of movement, generally first move up, and Increased when corresponding rectangular space exceeds display area boundary is display columns, general primary one column of increase.For example, Such as rectangular space M0 occupied for the title of a certain node, it is assumed that there are still weights during M0 or so moves back and forth Beyond display area boundary when folding, and being moved to the 8th time, then increase a line and show line number, obtains the rectangle sky that display line number is 2 Between M1, at this point, move back and forth again to M1 or so, if there are still overlappings during left and right moves back and forth, and when being moved to the 9th time Beyond display area boundary, then increase a line and show line number, obtain the rectangular space M2 that display line number is 3, then, then to the left side M2 The right side moves back and forth, if there are still overlappings during left and right moves back and forth, and beyond display area boundary when being moved to the 10th time, Then increase a line and show line number, obtains the rectangular space M3 that display line number is 4, if the title of the node only includes 2 characters, because The display line number 3 of the rectangular space obtained at this time is greater than 2, then gives up the occupied rectangular space of title of the node, Huo Zheruo The title of the node includes 4 characters, then moves back and forth again to M3 or so, if there is no weights when left and right moves back and forth to the 2nd time It is folded, then using the 2nd position being moved to of the occupied rectangular space of the title of the node as finally determining rectangular space.
On the basis of preceding method embodiment, the S2 can also include:
If judging to know the whole section of road as two-way road, is picked out from the two-way road referring to road, utilized It is described to rectify a deviation referring to road to the non-interior point referring to road;
If whole section of road continuous inverse change in short distance is known in judgement, using secondary Bessel equation to institute It states whole section of road and mends interior point, and exterior point is generated based on the interior point of the whole section of road.
Because collected road data might not be completely correct, the both direction appearance for being likely to result in a road is non- It is normal to interlock, to not be inconsistent with real road, therefore need to rectify a deviation to the interior point of two-way road.It is exemplified below. Such as, it is assumed that the interior point sum of route a, b of the both direction of two-way road are respectively N (a) and N (b), the total drift angle of interior point (the sum of the deviation angle of line of adjacent interior point two-by-two) is respectively D (a) and D (b), when | N (a)-N (b) | < 5, and D (a) < D (b) it when, selects route a as referring to road, otherwise selects route b as referring to road;As N (a)-N (b) > 5, route a is selected to make For referring to road;As N (b)-N (a) > 5, select route b as referring to road.
Assuming that determining route a referring to road, then to make the interior point to referring to road referring to the interior point in each of road for non- The vertical line of the line of adjacent interior point two-by-two, the maximum length for the vertical line section being calculated, if judgement knows that the maximum length is small In preset numerical value (being traditionally arranged to be 10 pixels), then away from referring to the mobile interior point in road, make the interior point to most short vertical line section Distance be the maximum length (it should be noted that the interior point moves on the straight line where most short vertical line section always), otherwise, Then keep the interior position constant.
Referring to Fig. 5, the present embodiment discloses a kind of road conditions drawing apparatus, comprising:
Projecting unit 1 extracts the interior point of the whole section of road for obtaining the GIS data of whole section of road to be drawn Longitude and latitude, and the interior point is projected by display area according to the longitude of the interior point and latitude;
Generation unit 2, if for judging to know the whole section of road continuous reversed change as one-way road and in short distance Change, then interior point is mended to the whole section of road using secondary Bessel equation, and exterior point is generated based on the interior point of the whole section of road;
First drawing unit 3 is obtained for being handled using the PATH in programming language the interior point and exterior point Road model, and road profile is drawn based on the road model in the display area;
Second drawing unit 4, for carrying out road conditions drafting and the drafting of road nodename to the road profile.
Road conditions drawing apparatus provided in an embodiment of the present invention obtains the GIS data of whole section of road to be drawn first, extracts The longitude and latitude of the interior point of the whole section of road, and the interior point is projected by display according to the longitude of the interior point and latitude Region;If judging to know the whole section of road continuous inverse change as one-way road and in short distance later, using secondary Bessel equation mends interior point to the whole section of road, and generates exterior point based on the interior point of the whole section of road;Followed by programming PATH in language handles the interior point and exterior point, obtains road model, and based on described in the display area Road model draws road profile;Road conditions drafting finally is carried out to the road profile and road nodename is drawn, on the one hand, Interior point is mended to whole section of road by using secondary Bessel equation, it can be ensured that obtain a smooth road, obtain drafting Abstract road and real road have higher compatible degree, on the other hand, by the way that road understanding at two-sided parallel model, is mentioned Point and exterior point can by the complete work that shows to complete road of Path that interior point and exterior point are added in programming language in taking out Solve the problems, such as that the junction of different road conditions sections of the existing technology will appear stiff bifurcated.
Above-mentioned apparatus can execute any one aforementioned road conditions method for drafting, thus can solve identical technical problem, Reach same technical effect.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.Term " on ", "lower" etc. refer to The orientation or positional relationship shown is to be based on the orientation or positional relationship shown in the drawings, and is merely for convenience of the description present invention and simplifies Description, rather than the device or element of indication or suggestion meaning must have a particular orientation, constructed and grasped with specific orientation Make, therefore is not considered as limiting the invention.Unless otherwise clearly defined and limited, term " installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can be Mechanical connection, is also possible to be electrically connected;It can be directly connected, two can also be can be indirectly connected through an intermediary Connection inside element.For the ordinary skill in the art, above-mentioned term can be understood at this as the case may be Concrete meaning in invention.
In specification of the invention, numerous specific details are set forth.Although it is understood that the embodiment of the present invention can To practice without these specific details.In some instances, well known method, structure and skill is not been shown in detail Art, so as not to obscure the understanding of this specification.Similarly, it should be understood that disclose in order to simplify the present invention and helps to understand respectively One or more of a inventive aspect, in the above description of the exemplary embodiment of the present invention, each spy of the invention Sign is grouped together into a single embodiment, figure, or description thereof sometimes.However, should not be by the method solution of the disclosure Release is in reflect an intention that i.e. the claimed invention requires more than feature expressly recited in each claim More 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 thus claims of specific embodiment are expressly incorporated in the specific embodiment, It is wherein each that the claims themselves are regarded as separate embodiments of the invention.It should be noted that in the absence of conflict, this The feature in embodiment and embodiment in application can be combined with each other.The invention is not limited to any single aspect, It is not limited to any single embodiment, is also not limited to any combination and/or displacement of these aspects and/or embodiment.And And can be used alone each aspect and/or embodiment of the invention or with other one or more aspects and/or its implementation Example is used in combination.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme should all cover within the scope of the claims and the description of the invention.

Claims (9)

1. a kind of road conditions method for drafting characterized by comprising
S1, the GIS data for obtaining whole section of road to be drawn extract the longitude and latitude of the interior point of the whole section of road, and root The interior point is projected into display area according to the longitude and latitude of the interior point;
If S2, judging to know the whole section of road continuous inverse change as one-way road and in short distance, secondary shellfish is used Sai Er equation mends interior point to the whole section of road, and generates exterior point based on the interior point of the whole section of road;
S3, the interior point and exterior point are handled using the PATH in programming language, obtains road model, and in the display Road profile is drawn based on the road model in region;
S4, road conditions drafting and the drafting of road nodename are carried out to the road profile;
The Formula of Coordinate System Transformation that the interior point projects display area is { x1, y1 }={ ((x-minlon)/(maxlon- Minlon)) * r0*x, ((x-minlat)/(maxlat-minlat)) * r0*y }, wherein x1 and y1 is respectively interior point described The abscissa and ordinate of display area, x and y are respectively the interior longitude and latitude put, and minlon and maxlon are respectively described The minimum value and maximum value of the longitude of the interior point of whole section of road, minlat and maxlat are respectively the interior point of the whole section of road The minimum value and maximum value of latitude, r0 are the pantograph ratio of interior point.
2. the method according to claim 1, wherein after the S1, further includes:
The interior point is vacuated, to reject point in part;
Wherein, the S2, comprising:
If judging to know the whole section of road continuous inverse change as one-way road and in short distance, secondary Bezier is used Equation mends interior point to the whole section of road after vacuating.
3. according to the method described in claim 2, it is characterized in that, the S2, comprising:
Determine complement point position, wherein each complement point position is determined by putting in continuous four;
New interior point is calculated using secondary Bessel equation, and the end put in described continuous four is added in the new interior point Between point, and by the interior point of non-endpoint removes in point in described continuous four.
4. according to the method described in claim 2, it is characterized in that, the S2, comprising:
For every two adjacent interior point, determine respectively with this two in point distance be the whole section of road width point make To put corresponding exterior point in this two, wherein the exterior point is located at the right side for putting the line segment that line is formed in this two.
5. the method according to claim 1, wherein the S3, comprising:
All interior points are put into PATH using secondary bessel method positive sequence;
Point in the last one is connected to the last one exterior point;
By except other exterior points of the last one exterior point, PATH is put into using secondary bessel method inverted order;
Terminate PATH, so that interior exterior point is joined end to end, obtain the road model;
Path filling is carried out to the road model using the paintbrush for retouching edge mode, obtains the road profile.
6. the method according to claim 1, wherein the S4, comprising:
The node road condition data of the whole section of road is extracted from the GIS data, forms road conditions array;
The intermediate color that intubating length is 0 between the every two adjacent element in the road conditions array, obtains new road conditions array;
The new road conditions array is changed into corresponding color array;
The total length for calculating one-way road, counts the length of each node road conditions, and calculates the length of each node road conditions and described total The ratio of length obtains road conditions ratio array;
The final position of each element in the color array is obtained according to the road conditions ratio array, and is based on the terminal position It sets and generates color position array with color array;
Point and the last one interior point in first of the whole section of road principal direction are obtained, according to point in described first and finally Point calculates the angle of the whole section of road in one;
The road profile is filled using the paintbrush of fill pattern according to the color position array and the angle of whole section of road, Complete the drafting of road conditions, wherein the whole section of road is arranged to linear road when drafting.
7. the method according to claim 1, wherein the S4, comprising:
S40, the longitude and latitude span for obtaining the whole section of road, determine text composition direction according to the longitude and latitude span;
S41, interior point at each node is found out, using the position of the interior point at each node as the whole section of road corresponding node The initial position that shows of title;
S42, according to preset font, font size information, calculate size shared by single Chinese character;
S43, for each node, size shared by the initial position shown according to the title of the node and single Chinese character, The occupied rectangular space of the title of the node is determined, if detection is known the occupied rectangular space of the title of the node and is somebody's turn to do There is overlapping in the occupied rectangular space of the title of other nodes of near nodal, then by the occupied rectangle of the title of the node Space to the left or moves down pre-determined distance compared to initial position according to the text composition direction, knows if detecting after mobile The occupied rectangular space of the title of the node and the occupied rectangular space of title of other nodes of the near nodal are still deposited Be overlapped, then again by the occupied rectangular space of the title of the node after movement according to the text composition direction compared to initial The mobile pre-determined distance of opposite direction of position moving direction forward repeats to detect, the process of reverse movement is until the node The occupied rectangular space of title and the occupied rectangular space of title of other nodes of the near nodal are there is no Chong Die, then The occupied rectangular space of the title of the node is the occupied rectangular space of title of the node finally determined at this time, Or until the occupied rectangular space of title of the node exceeds display area boundary, then according to text composition direction increasing The display line number or columns for adding the title of the node re-execute the steps S43 until finally determining shared by the title of the node Rectangular space or until display line number or columns after increasing greater than the node the title Chinese character number that is included Amount, wherein the first time calculated result of the rectangular space be based on by the title of the node according to the text composition direction Calculated with uniline/columnar version typesetting, the rear primary equidirectional distance mobile compared to initial position is than previous vice-minister, and one The mobile distance of direction kth time is equidistant with other direction kth time movement, and k is positive integer;
S44, the node that the occupied rectangular space of title is finally determined for each, according to occupied by the title of the node Rectangular space calculate the start position and section row that title is shown, exercised according to the start position and section and drawn with default paintbrush Title processed.
8. the method according to claim 1, wherein the S2, further includes:
If judging to know the whole section of road as two-way road, pick out from the two-way road referring to road, using described It rectifies a deviation referring to road to the non-interior point referring to road;
If whole section of road continuous inverse change in short distance is known in judgement, using secondary Bessel equation to described whole Duan Daolu mends interior point, and generates exterior point based on the interior point of the whole section of road.
9. a kind of road conditions drawing apparatus characterized by comprising
Projecting unit, for obtaining the GIS data of whole section of road to be drawn, extract the interior point of the whole section of road longitude and Latitude, and the interior point is projected by display area according to the longitude of the interior point and latitude;
Generation unit, if for judging to know the whole section of road continuous inverse change as one-way road and in short distance, Interior point is mended to the whole section of road using secondary Bessel equation, and exterior point is generated based on the interior point of the whole section of road;
First drawing unit obtains road mould for handling using the PATH in programming language the interior point and exterior point Type, and road profile is drawn based on the road model in the display area;
Second drawing unit, for carrying out road conditions drafting and the drafting of road nodename to the road profile;
The Formula of Coordinate System Transformation that the interior point projects display area is { x1, y1 }={ ((x-minlon)/(maxlon- Minlon)) * r0*x, ((x-minlat)/(maxlat-minlat)) * r0*y }, wherein x1 and y1 is respectively interior point described The abscissa and ordinate of display area, x and y are respectively the interior longitude and latitude put, and minlon and maxlon are respectively described The minimum value and maximum value of the longitude of the interior point of whole section of road, minlat and maxlat are respectively the interior point of the whole section of road The minimum value and maximum value of latitude, r0 are the pantograph ratio of interior point.
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 CN106409129A (en) 2017-02-15
CN106409129B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109410626B (en) * 2017-08-17 2020-11-03 杭州海康威视系统技术有限公司 Site marking method and 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
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
CN113390425B (en) * 2020-03-13 2023-11-21 北京四维图新科技股份有限公司 Map data processing method, device, equipment and storage medium
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
CN113936476B (en) * 2021-09-01 2023-03-03 深圳云天励飞技术股份有限公司 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

Also Published As

Publication number Publication date
CN106409129A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN106409129B (en) Road conditions method for drafting and device
EP1855263B1 (en) Map display device
CN108253973B (en) Method and device for associating high-precision map with standard map
CN109752009A (en) Crossing Regional Road Network data creation method and device
CN103309944B (en) A kind of cultural symbol method realizing map library management
EP2775261B1 (en) Route guidance at intersections
CN103562681A (en) Method of generating a database for a navigation device, method of outputting a three-dimensional map, and navigation device
US20110141115A1 (en) Interactive method for displaying integrated schematic network plans and geographic maps
JP2006227767A (en) Map processor, navigation device and map display method
CN102419927B (en) Map road annotating method of navigation terminal
CN102692232A (en) Signposts in digital maps
CN104507047A (en) Method and device for acquiring POI (point of interest) areas
CN103915036A (en) Method and device for calculating road name mark points
CN105136160A (en) Mobile terminal-augmented reality technology-based close range optimal bus station navigation method
CN104931037A (en) Navigation prompting information generation method and device
JP2011514540A (en) Placement of linear reference system events in geographic information systems.
CN112017262B (en) Pavement marker generation method and device, storage medium and electronic equipment
US11361490B2 (en) Attention guidance for ground control labeling in street view imagery
CN106682084B (en) The method and device widened is oriented to electronic map section
CN104776855A (en) Crossroad navigation method and apparatus
CN110136174A (en) A kind of target object tracking and device
CN114509065B (en) Map construction method, system, vehicle terminal, server and storage medium
CN116860906A (en) Track generation method, track generation device, track generation equipment and storage medium
CN105103211B (en) Place shows system, method and program
CN107316474B (en) Method for making dynamic traffic information sketch based on SVG vector data format

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