CN108389502A - A kind of method and device for drawing traffic network - Google Patents
A kind of method and device for drawing traffic network Download PDFInfo
- Publication number
- CN108389502A CN108389502A CN201810164987.9A CN201810164987A CN108389502A CN 108389502 A CN108389502 A CN 108389502A CN 201810164987 A CN201810164987 A CN 201810164987A CN 108389502 A CN108389502 A CN 108389502A
- Authority
- CN
- China
- Prior art keywords
- segment
- lanewidth
- road segment
- width
- line
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B29/00—Maps; Plans; Charts; Diagrams, e.g. route diagram
- G09B29/003—Maps
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B29/00—Maps; Plans; Charts; Diagrams, e.g. route diagram
- G09B29/003—Maps
- G09B29/005—Map projections or methods associated specifically therewith
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Business, Economics & Management (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- General Physics & Mathematics (AREA)
- Traffic Control Systems (AREA)
Abstract
The present invention provides a kind of method and devices for drawing traffic network, belong to urban transportation technical field.The method includes:The attribute information of road segment segment is configured, the attribute information of the road segment segment includes whether two-way, both sides number of track-lines, linear and lane width;Parallel lines feature object is generated according to the attribute information of configuration;Traffic network is drawn according to the parallel feature object.The solution of the present invention generates several parallel lines using the line drawn on map as basic reference line according to configuration information and geometric algorithm, every line is all a road entity elements, by base reference line based on drafting and direction, plurality of parallel lines are drawn out, drafting efficiency is improved.
Description
Technical field
The present invention relates to urban transportation technical field more particularly to a kind of method and devices for drawing traffic network.
Background technology
The work for drawing traffic network, is mainly abstracted as the drafting of dotted line spatial object, and there are two types of scheme, schemes one at present
It is independent typing point, line, one point of a typing is clicked on map, chooses two typings, one line.Scheme is second is that continuous record
Enter Points And lines, as soon as often clicking a typing point on map, is given birth to previous typing point into a line.
Although the typing mode of scheme two is more convenient than scheme one very much, for traffic network edit operation, two sides
There is drawback in case:Once can only one type object of typing, therefore each feature object is required for hand drawn one time;And it respectively wants
It is known as subordinate relation, but typing is all independent every time, those attribute datas are difficult to inherit, and drawing process is easy error.
Invention content
The embodiment of the present invention is numerous for traffic route element, and conventional dotted line draws the troublesome problem of mode, proposes
A kind of method and device that drawing traffic network according to the basic road segment segment of drafting automatically generates other road network feature objects,
Road network drafting is greatly simplified, improves and draws efficiency.
The embodiment of the present invention provides a kind of method for drawing traffic network, the method includes:
Configure the attribute information of road segment segment, the attribute information of the road segment segment includes whether two-way, both sides number of track-lines, linear
And lane width;
Parallel lines feature object is generated according to the attribute information of the configuration;
Traffic network is drawn according to the parallel feature object.
The embodiment of the present invention additionally provides a kind of device for drawing traffic network, and described device includes configuration module, generates
Module and drafting module;
The configuration module, the attribute information for configuring road segment segment, the attribute information of the road segment segment include whether double
To, both sides number of track-lines, linear and lane width;
The generation module, the attribute information for being configured according to the configuration module generate parallel lines feature object;
The drafting module, for drawing traffic network according to the parallel feature object.
It has the beneficial effect that:
The solution of the present invention, using the line drawn on map as basic reference line, according to configuration information and geometric algorithm
Several parallel lines are generated, every line is all a road entity elements, by base reference line based on drafting and direction, is drawn
Go out plurality of parallel lines, improves drafting efficiency.
Description of the drawings
Specific embodiments of the present invention are described below with reference to accompanying drawings, wherein:
Fig. 1 shows the method flow schematic diagram that traffic network is drawn in the embodiment of the present invention one;
Fig. 2 shows draw in traffic network to be wanted according to the attribute information of configuration generation parallel lines in the embodiment of the present invention one
The flow diagram of plain object;
Fig. 3 shows the schematic diagram of the endpoint of parallel lines in the embodiment of the present invention one;
Fig. 4 shows the traffic network schematic diagram drawn in the embodiment of the present invention two;
Fig. 5 shows the apparatus structure schematic diagram that traffic network is drawn in the embodiment of the present invention two.
Specific implementation mode
In order to make technical scheme of the present invention and advantage be more clearly understood, below in conjunction with attached drawing to the exemplary of the present invention
Embodiment is described in more detail, it is clear that and the described embodiments are merely a part of the embodiments of the present invention, rather than
The exhaustion of all embodiments.And in the absence of conflict, the feature in the embodiment and embodiment in this explanation can be mutual
It is combined.
Embodiment one
Fig. 1 shows a kind of method for drawing traffic network, the method includes:
Step 101:Configure the attribute information of road segment segment, the attribute information of road segment segment include whether two-way, both sides number of track-lines,
Linear and lane width;
Step 102:Parallel lines feature object is generated according to the attribute information of configuration;
For step 102, as shown in Fig. 2, include the following steps,
Step 1021:Using certain road segment segment as reference line, the angle of road segment segment and horizontal direction and hanging down for road segment segment are obtained
Straight unit vector;
Step 1022:Parallel line coordinates is generated according to lane width;
Step 1023:Calculate vertical range of the parallel lines with respect to reference line.
Wherein, step 1021 specifically includes:Obtain it and the angle of horizontal direction and its vertical unit vector
VetVec=[[x0, y0], [x0+ Math.cos (radian), y0+Math.sin(radian)]]
Wherein, radian refers to road segment segment and horizontal direction angle, and vetVec is vertical vector;
For step 1022, parallel line coordinates is generated according to the width of configuration, it is specific as follows:
Coors=[[xi+width*Math.cos(sectRadiani), yi+width*Math.sin
(sectRadiani)] ..., [xi+n+width*Math.cos(sectRadiani+n), yi+n+width*Math.sin
(sectRadiani+n)]]
xi、yiIt is the coordinate value of x, y of i-th point of reference line, width is that lane width is (parallel with much distance computations
Line;
For beginning and end, for beauty, the endpoints of parallel lines falls the endpoint in cross section parallel lines and is located at cross section
On, the angle radian at endpoint between vertical vector and horizontal lineΔ x, Δ y are a, b
2 points of level, the distance of vertical direction, sectRadian are the angle radians between vertical vector and horizontal line at endpoint;For
Intermediate point, in order to keep turning beautiful, the endpoint of parallel lines is fallen on angular bisector, and sectRadian is preceding line segment, rear line segment
Between angular bisector and horizontal direction angle radian value.
As shown in figure 3, in practical application, ranging from [0, lanewidth* (rnum+lnum)] in road segment segment sideline;
Ranging from [lanewidth*x0, lanewidth*x1 ... the, lanewidth*x of the track cut-off rulen](0
< xn< rnum+lnum);
Ranging from [the lanewidth/2+lanewidth*x of the lane center0, lanewidth/2+
lanewidth*x1..., lanewidth/2+lanewidth*xn] (0 < xn< rnum+lnum-1);
Wherein, lanewidth is lane width, and rnum is right-hand lane number, and lnum is left-hand lane number.
Step 103:Traffic network is drawn according to parallel feature object.
At this point, geometric figure is ready for, then is directed to each feature object structure attribute object, it is quick to complete road network
Typing.The traffic network of drafting as shown in figure 4, in the embodiment of the present invention road segment segment include road segment segment sideline, road segment segment separator bar,
Divisional line and lane center, the parallel element which builds include:Road segment segment sideline, road segment segment separator bar, track
Separator bar and lane center.On the basis of the above-mentioned base reference line based on drafting and direction, plurality of parallel lines are drawn out,
Drafting efficiency can be improved.
Scheme provided by the invention, using the line drawn on map as basic reference line, according to configuration information and geometry
Algorithm generates several parallel lines, and every line is all a road entity elements, by base reference line based on drafting and direction,
Plurality of parallel lines are drawn out, drafting efficiency is improved.
Embodiment two
Referring to Fig. 5, an embodiment of the present invention provides a kind of devices for drawing traffic network, and described device includes configuration module
201, generation module 202 and drafting module 203;
Configuration module 201, the attribute information for configuring road segment segment, the attribute information of road segment segment include whether it is two-way, two
Side number of track-lines, linear and lane width;
Generation module 202, the attribute information for being configured according to configuration module generate parallel lines feature object;
Drafting module 203, for drawing traffic network according to parallel feature object.
Wherein, generation module 202 specifically includes acquiring unit, generation unit and computing unit;
Acquiring unit, for using certain road segment segment as reference line, obtaining the angle and road of the road segment segment and horizontal direction
The vertical unit vector in section;
Generation unit, the lane width for being configured according to configuration module generate parallel line coordinates;
Computing unit, the vertical range for calculating the relatively described reference line of parallel lines
Wherein, road segment segment includes road segment segment sideline, road segment segment separator bar, divisional line and lane center.
Wherein, ranging from [0, lanewidth* (rnum+lnum)] in road segment segment sideline;
Ranging from [the lanewidth*x of the track cut-off rule0,lanewidth*x1,….,lanewidth*xn](0<
xn<rnum+lnum);
Ranging from [the lanewidth/2+lanewidth*x of the lane center0,lanewidth/2+
lanewidth*x1,….,lanewidth/2+lanewidth*xn](0<xn<rnum+lnum-1);
Wherein, lanewidth is lane width, and rnum is right-hand lane number, and lnum is left-hand lane number.
Scheme provided by the invention, using the line drawn on map as basic reference line, according to configuration information and geometry
Algorithm generates several parallel lines, and every line is all a road entity elements, by base reference line based on drafting and direction,
Plurality of parallel lines are drawn out, drafting efficiency is improved.
For convenience of description, each section of apparatus above is divided into various modules with function or unit describes respectively.Certainly,
Each module or the function of unit can be realized in same or multiple softwares or hardware in carrying out the present invention.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Claims (10)
1. a kind of method for drawing traffic network, which is characterized in that the method includes:
The attribute information of road segment segment is configured, the attribute information of the road segment segment includes whether two-way, both sides number of track-lines, linear and vehicle
Road width;
Parallel lines feature object is generated according to the attribute information of the configuration;
Traffic network is drawn according to the parallel feature object.
2. the method as described in claim 1, which is characterized in that described to be wanted according to the attribute information of configuration generation parallel lines
Plain object, specifically includes:
Using certain road segment segment as reference line, the vertical unit of the road segment segment and the angle of horizontal direction and the road segment segment is obtained
Vector;
Parallel line coordinates is generated according to the lane width;
Calculate the vertical range of the relatively described reference line of the parallel lines.
3. the method as described in claim 1, which is characterized in that the road segment segment include road segment segment sideline, road segment segment separator bar,
Divisional line and lane center.
4. method as claimed in claim 2, which is characterized in that described to generate parallel line coordinates, tool according to the lane width
Body includes:
Coors=[[xi+ width*Math, cos (sectRadiani), yi+ width*Math, sin
(sectRadiani)] ..., [xi+n+ width*Math, cos (sectRadiani+n), yi+n+ width*Math, sin
(sectRadiani+n)]]
Wherein, xi、yiThe coordinate value of x, y of i-th point of reference line, width is lane width, radian refer to road segment segment with
Horizontal direction angle.
5. method as claimed in claim 4, which is characterized in that the endpoint of the parallel lines is located on cross section, hangs down at endpoint
Angle radian between straight vector and horizontal lineThe sectRadian be preceding line segment,
The angle radian value of angular bisector between line segment and horizontal direction afterwards, wherein Δ x, Δ y are the level of 2 points of a, b, Vertical Square
To distance.
6. method as claimed in claim 3, which is characterized in that ranging from [the 0, lanewidth* of the road segment segment sideline
(rnum+lnum)];
Ranging from [lanewidth*x0, lanewidth*x1 ... the, lanewidth*x of the track cut-off rulen] (0 < xn<
rnum+lnum);
Ranging from [the lanewidth/2+lanewidth*x of the lane center0, lanewidth/2+lanewidth*
x1..., lanewidth/2+lanewidth*xn] (0 < xn< rnum+lnum-1);
Wherein, lanewidth is lane width, and rnum is right-hand lane number, and lnum is left-hand lane number.
7. a kind of device for drawing traffic network, which is characterized in that described device includes configuration module, generation module and drafting mould
Block;
The configuration module, the attribute information for configuring road segment segment, the attribute information of the road segment segment include whether it is two-way, two
Side number of track-lines, linear and lane width;
The generation module, the attribute information for being configured according to the configuration module generate parallel lines feature object;
The drafting module, for drawing traffic network according to the parallel feature object.
8. device as claimed in claim 7, which is characterized in that the generation module specifically includes acquiring unit, generation unit
And computing unit;
The acquiring unit, for using certain road segment segment as reference line, obtaining angle and the institute of the road segment segment and horizontal direction
State the vertical unit vector of road segment segment;
The generation unit, the lane width for being configured according to the configuration module generate parallel line coordinates;
The computing unit, the vertical range for calculating the relatively described reference line of the parallel lines
9. device as claimed in claim 7, which is characterized in that the road segment segment include road segment segment sideline, road segment segment separator bar,
Divisional line and lane center.
10. device as claimed in claim 9, which is characterized in that ranging from [the 0, lanewidth* of the road segment segment sideline
(rnum+lnum)];
Ranging from [the lanewidth*x of the track cut-off rule0,lanewidth*x1,….,lanewidth*xn](0<xn<
rnum+lnum);
Ranging from [the lanewidth/2+lanewidth*x of the lane center0,lanewidth/2+lanewidth*
x1,….,lanewidth/2+lanewidth*xn](0<xn<rnum+lnum-1);
Wherein, lanewidth is lane width, and rnum is right-hand lane number, and lnum is left-hand lane number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810164987.9A CN108389502A (en) | 2018-02-28 | 2018-02-28 | A kind of method and device for drawing traffic network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810164987.9A CN108389502A (en) | 2018-02-28 | 2018-02-28 | A kind of method and device for drawing traffic network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108389502A true CN108389502A (en) | 2018-08-10 |
Family
ID=63069405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810164987.9A Pending CN108389502A (en) | 2018-02-28 | 2018-02-28 | A kind of method and device for drawing traffic network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108389502A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110120084A (en) * | 2019-05-23 | 2019-08-13 | 广东星舆科技有限公司 | A method of generating lane line and road surface |
CN111238505A (en) * | 2018-11-29 | 2020-06-05 | 沈阳美行科技有限公司 | Road segment drawing method, device and related system of road map |
CN111238500A (en) * | 2018-11-29 | 2020-06-05 | 沈阳美行科技有限公司 | Map generation method, device and system for road segments of road map area |
CN111551185A (en) * | 2020-06-12 | 2020-08-18 | 弗徕威智能机器人科技(上海)有限公司 | Method for adding traffic lane |
CN111831664A (en) * | 2019-04-16 | 2020-10-27 | 北京四维图新科技股份有限公司 | Map data updating method and device |
CN112201031A (en) * | 2020-03-27 | 2021-01-08 | 南京睿思交通信息科技有限公司 | Method for constructing road intersection equal-proportion model |
WO2021135846A1 (en) * | 2019-12-31 | 2021-07-08 | 于毅欣 | Method and system for marking road surface |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359434A (en) * | 2008-09-17 | 2009-02-04 | 覃征 | Process for constructing road net model for traffic navigation system and traffic emulation system |
CN102954795A (en) * | 2011-08-19 | 2013-03-06 | 比亚迪股份有限公司 | Amplified crossing map drawing method and its apparatus |
CN104899360A (en) * | 2015-05-18 | 2015-09-09 | 华南理工大学 | Method for drawing macroscopic fundamental diagram |
CN105574931A (en) * | 2014-11-07 | 2016-05-11 | 高德信息技术有限公司 | Electronic map road drawing method and device |
-
2018
- 2018-02-28 CN CN201810164987.9A patent/CN108389502A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359434A (en) * | 2008-09-17 | 2009-02-04 | 覃征 | Process for constructing road net model for traffic navigation system and traffic emulation system |
CN102954795A (en) * | 2011-08-19 | 2013-03-06 | 比亚迪股份有限公司 | Amplified crossing map drawing method and its apparatus |
CN105574931A (en) * | 2014-11-07 | 2016-05-11 | 高德信息技术有限公司 | Electronic map road drawing method and device |
CN104899360A (en) * | 2015-05-18 | 2015-09-09 | 华南理工大学 | Method for drawing macroscopic fundamental diagram |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111238505A (en) * | 2018-11-29 | 2020-06-05 | 沈阳美行科技有限公司 | Road segment drawing method, device and related system of road map |
CN111238500A (en) * | 2018-11-29 | 2020-06-05 | 沈阳美行科技有限公司 | Map generation method, device and system for road segments of road map area |
CN111238500B (en) * | 2018-11-29 | 2022-07-26 | 沈阳美行科技股份有限公司 | Map generation method, device and system for road segments of road map area |
CN111238505B (en) * | 2018-11-29 | 2023-11-24 | 沈阳美行科技股份有限公司 | Road line segment drawing method, device and related system of road map |
CN111831664A (en) * | 2019-04-16 | 2020-10-27 | 北京四维图新科技股份有限公司 | Map data updating method and device |
CN111831664B (en) * | 2019-04-16 | 2024-05-28 | 北京四维图新科技股份有限公司 | Map data updating method and device |
CN110120084A (en) * | 2019-05-23 | 2019-08-13 | 广东星舆科技有限公司 | A method of generating lane line and road surface |
WO2021135846A1 (en) * | 2019-12-31 | 2021-07-08 | 于毅欣 | Method and system for marking road surface |
CN112201031A (en) * | 2020-03-27 | 2021-01-08 | 南京睿思交通信息科技有限公司 | Method for constructing road intersection equal-proportion model |
CN111551185A (en) * | 2020-06-12 | 2020-08-18 | 弗徕威智能机器人科技(上海)有限公司 | Method for adding traffic lane |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108389502A (en) | A kind of method and device for drawing traffic network | |
US11455809B2 (en) | Method and apparatus for determining lane centerline | |
CN108088448B (en) | Method and device for matching high-precision lane group with traditional road | |
CN109186617A (en) | A kind of view-based access control model crowdsourcing data automatically generate method, system and the memory of lane grade topological relation | |
CN105893703B (en) | A kind of urban road network's major trunk roads choosing method based on polygon | |
CN111524445B (en) | Map generation method and device, electronic equipment and readable storage medium | |
CN102208033B (en) | Data clustering-based robust scale invariant feature transform (SIFT) feature matching method | |
CN102023616B (en) | Triangle Bezier curved surface numerical-control finishing tool-path quick generation method | |
CN104063746B (en) | A kind of curved surface finishing cutter track generation method based on traveling salesman problem solver | |
CN103413357B (en) | A kind of cloud generates the construction method of square benchmark grid surface | |
CN104714986A (en) | Three-dimensional picture searching method and three-dimensional picture searching system | |
CN108469263A (en) | A kind of method and system carrying out form point optimization based on curvature | |
CN103268633A (en) | Contour surface construction method for raster data | |
CN109631873A (en) | Road generation method, device and the readable storage medium storing program for executing of high-precision map | |
CN104036096A (en) | Method for mapping bump features on inclined face to manufacturing feature bodies | |
Xu | An algorithm for comparing similarity between two trees | |
CN113689329B (en) | Shortest path interpolation method for sparse point cloud enhancement | |
CN113390431B (en) | Method and device for dynamically generating reference line, computer equipment and storage medium | |
CN109508141A (en) | Redundant point detection method for point cloud data fitting | |
CN114839976A (en) | Path planning method for farmland with complex boundary and farmland machine operating system | |
CN104462239A (en) | Customer relation discovery method based on data vectorization spatial analysis | |
Tanaka et al. | Generalized symmetry and its application to 3D shape generation | |
Liu et al. | Line simplification algorithm implementation and error analysis | |
Kwon et al. | Medial surface generation using chordal axis transformation in shell structures | |
CN112632208B (en) | Traffic flow trajectory deformation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180810 |