The content of the invention
The embodiments of the invention provide a kind of method and device for drawing road network, it is possible to increase draws the effect of road network
Rate.
In a first aspect, the embodiments of the invention provide a kind of method for drawing road network, including:
Obtain road network image to be drawn;
According to the road network image to be drawn, at least one Thiessen polygon is determined, forms sample figure layer;
According to the road network image to be drawn, at least one rectangle buffering area is determined, forms buffering figure layer;
Using the buffering figure layer and the road network image to be drawn, the sample figure layer is carried out to remove line feature behaviour
Make, road network corresponding to road network image to be drawn described in formation.
Preferably, it is described obtain road network image to be drawn after, further comprise:
Whether the road network image to be drawn for judging to obtain is the road network image to be drawn for setting form, if it is,
Road network image to be drawn described in the basis is performed, determines at least one Thiessen polygon, forms sample figure layer;
Otherwise, projection transform, free-air correction are carried out to the road network image to be drawn, deletes redundancy and the place to right the wrong
Reason.
Preferably, road network image to be drawn described in the basis, at least one rectangle buffering area is determined, forms buffering figure
Layer, including:
In the road network image to be drawn, the wall line feature of each wall is determined;
It is performed both by for wall line feature each described, the line centered on presently described wall line feature, according to advance
The rectangle setting buffers rule of setting, rectangle buffering area is determined for each described wall line feature;Wherein, the rectangle delays
Rushing area sets rule to include:In the rectangle buffering area side parallel with presently described wall line feature with presently described wall
There is the distance of setting between wall line feature.
Preferably, road network image to be drawn described in the basis, at least one Thiessen polygon is determined, forms sample graph
Layer, including:
Each first line feature is determined in the road network image to be drawn;
It is performed both by for the first line feature each described, according to sample point density of setting set in advance, in current institute
State and at least one sample point is set in the first line feature;
Using each sample point, the delaunay triangulation network is constructed;
According to each sample point and the delaunay triangulation network, at least one Thiessen polygon, shape are determined
Into the sample figure layer.
Preferably, it is described using the buffering figure layer and the road network image to be drawn, the sample figure layer is carried out
Line feature operation is removed, forms road network corresponding to road network image to be drawn, including:
Each second line feature is determined in the sample figure layer;
It is performed both by for the second line feature each described, judges whether presently described second line feature is waited to draw described
Intersecting at least one first line feature in road network image be present, if it is, removing presently described second line feature;Otherwise, will
Presently described second line feature is as the line feature of target second;
It is performed both by for the line feature of target each described second, judges the presently described line feature of target second whether in institute
State in buffering figure layer and intersecting at least one rectangle buffering area be present, if it is, removing the presently described line feature of target second;It is no
Then, the presently described line feature of target second is retained;
Remove the buffering figure layer, road network corresponding to road network image to be drawn described in formation.
Second aspect, the embodiments of the invention provide a kind of device for drawing road network, including:Acquisition module, sample graph
Layer constructing module, buffering figure layer constructing module and remove module;
The acquisition module, for obtaining road network image to be drawn;
The sample figure layer constructing module, for according to the acquisition module obtain described in road network image to be drawn, really
Fixed at least one Thiessen polygon, forms sample figure layer;
It is described buffering figure layer constructing module, for according to the acquisition module obtain described in road network image to be drawn, really
Fixed at least one rectangle buffering area, form buffering figure layer;
The remove module, for the buffering figure layer using sample figure layer constructing module construction and described slow
The road network image to be drawn of figure layer constructing module construction is rushed, to the sample figure layer remove the operation of line feature, shape
Into road network corresponding to the road network image to be drawn.
Preferably, further comprise:Processing module;
The processing module, for judging whether road network image to be drawn described in the acquisition module acquisition is setting lattice
The road network image to be drawn of formula, if it is, triggering the sample figure layer constructing module;Otherwise, to the road network figure to be drawn
As carrying out projection transform, free-air correction, deleting redundancy and the processing righted the wrong.
Preferably, the buffering figure layer constructing module, including:Wall determining unit and buffering area generation unit;
The wall determining unit, in the road network image to be drawn, determining the wall line feature of all walls;
The buffer generation unit, for each the described wall line feature determined for the wall determining unit
It is performed both by, the line centered on presently described wall line feature, is each according to rectangle setting buffers set in advance rule
The wall line feature determines rectangle buffering area;Wherein, the rectangle setting buffers rule includes:In the rectangle buffering area
The side parallel with presently described wall line feature has the distance of setting between presently described wall line feature.
Preferably, the sample figure layer constructing module, including:First line feature determining unit, setting unit, triangular configuration
Unit and Thiessen polygon generation unit;
The first line feature determining unit, for determining each first line feature in the road network image to be drawn;
The setting unit, for each described first line feature determined for the first line feature determining unit
It is performed both by, according to sample point density of setting set in advance, at least one sample point is set in presently described first line feature;
The triangular configuration unit, for each sample point set using the setting unit, construct delaunay
The triangulation network;
The Thiessen polygon generation unit, for each sample point set according to the setting unit and institute
The delaunay triangulation network of triangular configuration unit construction is stated, at least one Thiessen polygon is determined, forms the sample
Figure layer.
Preferably, the remove module, including:Second line feature determining unit, the first judging unit, the second judging unit
With removal unit;
The second line feature determining unit, for determining each second line feature in the sample figure layer;
First judging unit, for each described second line determined for the second line feature determining unit
Key element is performed both by, and judges whether presently described second line feature is at least one in the presence of what is intersected in the road network image to be drawn
First line feature, if it is, removing presently described second line feature;Otherwise, using presently described second line feature as target
Two line features;
Second judging unit, each described line of target second for being obtained for first judging unit will
Element is performed both by, and judges whether the presently described line feature of target second has at least one rectangle intersected in the buffering figure layer
Buffering area, if it is, removing the presently described line feature of target second;Otherwise, the presently described line feature of target second is retained;
The removal unit, for removing the buffering figure layer, road network corresponding to road network image to be drawn described in formation.
The embodiments of the invention provide a kind of method and device for drawing road network, road network image to be drawn is obtained first.
Then according to the road network image to be drawn of acquisition, each Thiessen polygon is determined, forms sample figure layer.Wherein, sample figure layer by
At least one Thiessen polygon forms, and a line in Thiessen polygon is exactly a line feature, wherein only part line feature
Each bar passage in road network is formed, therefore, sample figure layer includes road network.Determined according to the road network image to be drawn of acquisition each
Individual rectangle buffering area, form buffering figure layer.Figure layer is buffered by least one rectangle buffer set into wherein rectangle buffering area is used for
Limit the road network in sample figure layer.Recycling buffering figure layer and road network image to be drawn to carry out removal line to sample figure layer will
Element operation so that only containing the line feature for forming road network in sample figure layer, so as to form road corresponding to road network image to be drawn
Road network.By above-mentioned, sample figure layer and buffering figure layer are formed according to road network image to be drawn in this programme, then utilized
Buffering figure layer and road network image to be drawn carry out removing line feature operation to sample figure layer, and it is corresponding to form road network image to be drawn
Road network.Whole process need not manually be drawn, and therefore, scheme provided in an embodiment of the present invention can improve drafting road network
Efficiency.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention 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 clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide a kind of method for drawing road network, comprise the following steps:
Step 101, road network image to be drawn is obtained.
Step 102, according to the road network image to be drawn, at least one Thiessen polygon is determined, forms sample figure layer.
Step 103, according to the road network image to be drawn, at least one rectangle buffering area is determined, forms buffering figure layer.
Step 104, using the buffering figure layer and the road network image to be drawn, the sample figure layer is removed
Line feature operates, and forms road network corresponding to road network image to be drawn.
According to above-described embodiment, road network image to be drawn is obtained first.Then according to the road network image to be drawn of acquisition, really
Fixed each Thiessen polygon, forms sample figure layer.Wherein, sample figure layer is made up of at least one Thiessen polygon, and Tyson is polygon
A line in shape is exactly a line feature, wherein only part line feature forms each bar passage in road network, therefore, sample
Figure layer includes road network.Each rectangle buffering area is determined according to the road network image to be drawn of acquisition, forms buffering figure layer.Buffering figure
Layer is by least one rectangle buffer set into wherein rectangle buffering area is used for limiting the road network in sample figure layer.Recycle slow
Rush figure layer and road network image to be drawn sample figure layer is carried out to remove line feature operation so that only containing composition in sample figure layer
The line feature of road network, so as to form road network corresponding to road network image to be drawn.By above-mentioned, basis is treated in this programme
Draw road network image and form sample figure layer and buffering figure layer, then using buffering figure layer and road network image to be drawn to sample
Figure layer carries out removing line feature operation, forms road network corresponding to road network image to be drawn.Whole process need not manually be drawn,
Therefore, scheme provided in an embodiment of the present invention can improve the efficiency for drawing road network.
In road network image to be drawn, measured obtained spatial information is typically from multiple data sources, therefore respectively
The coordinate system of spatial information is inconsistent, and this can cause each line feature in road network image to be drawn the problems such as rotation, deformation occur.
Operation is handled each spatial information under different projection coordinates, is analyzed, show etc. for convenience, in a reality of the invention
Apply in example, it is described obtain road network image to be drawn after, may further include:
Whether the road network image to be drawn for judging to obtain is the road network image to be drawn for setting form, if it is,
Road network image to be drawn described in the basis is performed, determines at least one Thiessen polygon, forms sample figure layer;
Otherwise, projection transform, free-air correction are carried out to the road network image to be drawn, deletes redundancy and the place to right the wrong
Reason.
In embodiments of the present invention, when wait draw road network image form be not setting form when, to treat drafting successively
Road network image carries out projection transform, free-air correction, deletes redundancy and the processing righted the wrong.When road network image to be drawn is usually
During cad file (CAD, Computer Aided Design, CAD), road network image to be drawn is not GIS data
Data format in storehouse.Draw road network image firstly the need for the treatment of and carry out projection transform, will each spatial information coordinate system
One is converted to the projection coordinate in GIS database.Next, which is treated, draws the progress free-air correction of road network image, will road network be drawn
The geometric parameter of image switchs to the geometric parameter in GIS database, i.e. amendment rotation, the line feature of deformation.Then treat and paint again
Road network image processed carries out deletion redundancy, that is, delete there may be in road network image to be drawn some lines unrelated with road network will
Element, such as line feature corresponding to indoor desk, ornament.Finally, the data in database, road network figure to be drawn is corrected
The value of line feature, is allowed to match with the value of the line feature in database, for example, channel width in road network image to be drawn as in
For 2m, the width in database is 3m, and in road network image to be drawn, corresponding modification channel width is 3m.
In order to exclude can not be for pedestrians in road network image to be drawn space, in one embodiment of the invention,
Road network image to be drawn described in the basis, at least one rectangle buffering area is determined, form buffering figure layer, can include:
In the road network image to be drawn, the wall line feature of each wall is determined;
It is performed both by for wall line feature each described, the line centered on presently described wall line feature, according to advance
The rectangle setting buffers rule of setting, rectangle buffering area is determined for each described wall line feature;Wherein, the rectangle delays
Rushing area sets rule to include:In the rectangle buffering area side parallel with presently described wall line feature with presently described wall
There is the distance of setting between wall line feature.
In road network image to be drawn, may exist some can not be for pedestrians space, such space if there is
In road network, pedestrian can be misled, therefore to exclude these spaces.Either space or passage, be all between the walls, because
This will centered on wall line feature line, to ensure that buffering area can be only fitted to each road and sky in road network image to be drawn
In gap.Distance in rectangle buffering area between the side parallel with wall line feature and wall line feature is generally a shoulder of human body
Width, with this come weigh the space of the two sides of arbitrary neighborhood between the walls whether can allow people by, specifically, if two adjacent
Buffering area intersects, and illustrates that the width in the space is less than the both shoulders width of people, is not enough to allow pedestrian to pass through;If two adjacent slow
Rush area it is tangent or mutually from, illustrate the space width be not less than people both shoulders width, it is sufficient to allow pedestrian to pass through.
When drawing road network, the sample figure layer that can include whole road network is formed, in one embodiment of the invention
In, road network image to be drawn described in the basis, at least one Thiessen polygon is determined, form sample figure layer, including:
Each first line feature is determined in the road network image to be drawn;
It is performed both by for the first line feature each described, according to sample point density of setting set in advance, in current institute
State and at least one sample point is set in the first line feature;
Using each sample point, the delaunay triangulation network is constructed;
According to each sample point and the delaunay triangulation network, at least one Thiessen polygon, shape are determined
Into the sample figure layer.
Road between two walls would generally be represented with the perpendicular bisector of two face walls, for road network image to be drawn, every
Line feature represents wall, door, window, and region includes indoor channel between each line feature, it is therefore desirable to obtain each adjacent line feature it
Between perpendicular bisector.And in sample figure layer, the perpendicular bisector of two sample points of arbitrary neighborhood is Thiessen polygon
A line, as long as therefore sample point is set on each line feature, it is possible to according to Thiessen polygon obtain each line feature it
Between perpendicular bisector.Because each Thiessen polygon only includes a sample point, so the Tyson in sample figure layer is polygon
Shape will not omit the perpendicular bisector between the sample point of arbitrary neighborhood two, i.e. Thiessen polygon in sample figure layer will including any line
Perpendicular bisector between element, therefore the Thiessen polygon in sample figure layer includes whole road network.
Because sample figure layer is multiple Thiessen polygons composition, when the number of Thiessen polygon is less, each line feature it
Between road may be made up of broken line, this can destroy the smoothness of road network, or even mislead pedestrian, so Tyson is more in theory
The number of side shape is The more the better.But in practical operation, the number of Thiessen polygon is more, and amount of calculation is bigger, so as to cause to count
The increase of calculation machine operating load, or even overload operation, this can influence drawing efficiency.Therefore, sample point set in advance to set
Density, to meet the smoothness of road network and ensure computer normal operation.
In order to obtain road network corresponding to road network image to be drawn, in one embodiment of the invention, the utilization
The buffering figure layer and the road network image to be drawn, the sample figure layer is carried out to remove line feature operation, is formed and waits to paint
Road network corresponding to road network image processed, including:
Each second line feature is determined in the sample figure layer;
It is performed both by for the second line feature each described, judges whether presently described second line feature is waited to draw described
Intersecting at least one first line feature in road network image be present, if it is, removing presently described second line feature;Otherwise, will
Presently described second line feature is as the line feature of target second;
It is performed both by for the line feature of target each described second, judges the presently described line feature of target second whether in institute
State in buffering figure layer and intersecting at least one rectangle buffering area be present, if it is, removing the presently described line feature of target second;It is no
Then, the presently described line feature of target second is retained;
Remove the buffering figure layer, road network corresponding to road network image to be drawn described in formation.
Because the road in road network is the perpendicular bisector of the sidewalls of arbitrary neighborhood two, therefore the road in road network,
It will not necessarily intersect with the first line feature, therefore to remove the second line feature intersected with the first line feature.In the line of target second
In key element, it is understood that there may be the line feature of target second formed by some space.For space, the intersecting area of two buffering areas
Domain is intersected with perpendicular bisector, therefore in the second line feature of reservation, removes the line feature of target second intersected with buffering area.
Because buffering figure layer is booster action, after the completion of the removal of the second line feature, buffering figure layer is removed.
Below exemplified by drawing indoor road net, the method for expansion explanation drafting road network, as shown in Fig. 2 the present invention one
Individual embodiment provides a kind of method for drawing road network, and this method comprises the following steps:
Step 201, road network image to be drawn is obtained.
In embodiments of the present invention, road network image to be drawn is cad file.
Step 202, whether the road network image to be drawn for judging to obtain is the road network image to be drawn for setting form, if
It is to perform step 204;Otherwise, step 203 is performed.
In embodiments of the present invention, form is set as the picture format in ArcGIS (Arc GIS-Geographic Information System) database.
Step 203, treat and draw road network image progress projection transform, free-air correction, delete redundancy and the place to right the wrong
Reason, perform step 204.
In embodiments of the present invention, the data in cad file are measured obtained spatial information, first that these are empty
Between information carry out projection transform so that all spatial informations are under same projection coordinate;It is directed to again under same projection coordinate
Spatial information, on the basis of some spatial informations, other spatial informations are corrected, with the line feature of amendment rotation, deformation;Remove nothing
The line feature of pass;Finally, make the value of line feature in road network image to be drawn identical with the value of the line feature of the storage in database,
For example, channel width is 2m in road network image to be drawn, the width in database is 3m, corresponding in road network image to be drawn
Modification channel width be 3m.
Step 204, each first line feature is determined in road network image to be drawn.
In embodiments of the present invention, each first line feature is all line features in road network image to be drawn.
Step 205 is respectively provided to few one according to sample point density of setting set in advance in each first line feature
Individual sample point.
In embodiments of the present invention, sample point density of setting can be adjusted before road network is drawn.
Step 206, using each sample point, the delaunay triangulation network is constructed.
In embodiments of the present invention, the delaunay triangulation network is the set of a series of connected but nonoverlapping triangle, and
It is the strong work of analysis and research discrete region data and the circumscribed circle of these triangles does not include other any points in this face domain
Tool.Discrete sample point is obtained according to sample point density of setting, further according to discrete sample point with regard to the delaunay triangulation network can be obtained.
Step 207, according to each sample point and the delaunay triangulation network, at least one Thiessen polygon is determined, forms sample
This figure layer.
In embodiments of the present invention, can be obtained successively comprising each according to the property of the delaunay triangulation network and each sample point
The Thiessen polygon of individual sample point, wherein, only include a sample point in each Thiessen polygon.
Step 208, in road network image to be drawn, the wall line feature of each wall is determined.
In embodiments of the present invention, rectangle buffering area is not set for door, window.
Step 209, it is performed both by for each wall line feature, by the line centered on front wall line feature, according to advance
The rectangle setting buffers rule of setting, rectangle buffering area is determined for each wall line feature.
In embodiments of the present invention, rectangle setting buffers rule includes:It is parallel with wall line feature in rectangle buffering area
Side between wall line feature have setting distance, the distance set is human body single shoulder mean breadth.
Step 210, each second line feature is determined in sample figure layer.
In embodiments of the present invention, each second line feature is the side of each Thiessen polygon.
Step 211, it is performed both by for each second line feature, judges current second line feature whether in road network to be drawn
Intersecting at least one first line feature in image be present, if it is, performing step 217;Otherwise, step 212 is performed.
In embodiments of the present invention, judge whether current second line feature exists in road network image to be drawn to intersect extremely
Few first line feature, i.e., carry out intersecting computing for road network image to be drawn with sample figure layer.
Step 212, using current second line feature as the line feature of target second.
In embodiments of the present invention, because intelligent road is parallel to the first line feature, therefore to retain with the first element not
The intersecting line feature of target second.
Step 213, it is performed both by for each line feature of target second, judges the line feature of current goal second whether slow
Rush and intersecting at least one rectangle buffering area in figure layer be present, if it is, performing step 216;Otherwise, step 214 is performed.
In present example, judge whether the line feature of current goal second has intersecting at least one in figure layer is buffered
Individual rectangle buffering area, i.e., carry out intersecting computing with sample figure layer for buffering figure layer.
Step 214, the line feature of current goal second is retained.
In embodiments of the present invention, the line feature of target second of space formation that can not be for pedestrians can be with two bufferings
Area intersects, and removes the further perfect road net of the second line feature in space.
Step 215, the buffering figure layer is removed, forms road network corresponding to road network image to be drawn, terminates current process.
In embodiments of the present invention, buffering figure layer only serves booster action, can influence pedestrian if do not removed and uses road network.
Step 216, the line feature of current goal second is removed, and terminates current process.
Step 217, current second line feature is removed.
In one embodiment of the invention, formed after road network corresponding to road network image is drawn, can be manually to road
Unnecessary line feature is removed or modified in road network, so that road network becomes apparent from, be attractive in appearance.
As shown in figure 3, the embodiments of the invention provide a kind of device for drawing road network, including:Acquisition module 301, sample
This figure layer constructing module 302, buffering figure layer constructing module 303 and remove module 304;
Acquisition module 301, for obtaining road network image to be drawn;
Sample figure layer constructing module 302, for the road network image to be drawn according to the acquisition of acquisition module 301, it is determined that
At least one Thiessen polygon, form sample figure layer;
Figure layer constructing module 303 is buffered, for the road network image to be drawn according to the acquisition of acquisition module 301, it is determined that
At least one rectangle buffering area, form buffering figure layer;
Remove module 304, for the buffering figure layer constructed using sample figure layer constructing module 302 and the buffering
The road network image to be drawn that figure layer constructing module 303 constructs, to the sample figure layer remove the operation of line feature, shape
Into road network corresponding to the road network image to be drawn.
As shown in figure 4, another embodiment of the present invention provides a kind of device for drawing road network, further comprise:Place
Manage module 401;
Processing module 401, for judging whether road network image to be drawn described in the acquisition of acquisition module 301 is setting form
Road network image to be drawn, if it is, triggering sample figure layer constructing module 302;Otherwise, the road network image to be drawn is entered
Row projection transform, free-air correction, delete redundancy and the processing righted the wrong.
As shown in figure 5, another embodiment of the invention provides a kind of device for drawing road network, buffering figure layer construction mould
Block 303, including:Wall determining unit 3031 and buffering area generation unit 3032;
Wall determining unit 3031, in the road network image to be drawn, determining the wall line feature of all walls;
Buffer generation unit 3032, for each the described wall line feature determined for wall determining unit 3031
It is performed both by, the line centered on presently described wall line feature, is each according to rectangle setting buffers set in advance rule
The wall line feature determines rectangle buffering area;Wherein, the rectangle setting buffers rule includes:In the rectangle buffering area
The side parallel with presently described wall line feature has the distance of setting between presently described wall line feature.
As shown in fig. 6, further embodiment of the present invention provides a kind of device for drawing road network, sample figure layer construction mould
Block 302, including:First line feature determining unit 3021, setting unit 3022, triangular configuration unit 3023 and Thiessen polygon life
Into unit 3024;
First line feature determining unit 3021, for determining that all First Lines will in the road network image to be drawn
Element;
Setting unit 3022, each described first line feature for being determined for the first determining unit 3021 are held
OK, according to sample point density of setting set in advance, at least one sample point is set in presently described first line feature;
Triangular configuration unit 3023, for each sample point set using setting unit 3022, construct delaunay
The triangulation network;
Thiessen polygon generation unit 3024, for each sample point and three set according to setting unit 3022
The delaunay triangulation network that angle structural unit 3023 constructs, determines at least one Thiessen polygon, forms the sample
Figure layer.
As shown in fig. 7, a still further embodiment of the present invention provides also a kind of device for drawing road network, remove module 304,
Including:Second determining unit 3041, the first judging unit 3042, the second judging unit 3043 and removal unit 3044;
Second determining unit 3041, for determining the second all line features in the sample figure layer;
First judging unit 3042, for each described second line determined for the second line feature determining unit 3041
Key element is performed both by, and judges whether presently described second line feature is at least one in the presence of what is intersected in the road network image to be drawn
First line feature, if it is, removing presently described second line feature;Otherwise, using presently described second line feature as target
Two line features;
Second judging unit 3043, each described line of target second for being obtained for the first judging unit 3042 will
Element is performed both by, and judges whether the presently described line feature of target second has at least one rectangle intersected in the buffering figure layer
Buffering area, if it is, removing the presently described line feature of target second;Otherwise, the presently described line feature of target second is retained;
Unit 3044 is removed, for removing the buffering figure layer, road network corresponding to road network image to be drawn described in formation.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method
Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
The embodiments of the invention provide a kind of computer-readable recording medium, including execute instruction, when the computing device of storage control
During the execute instruction, the storage control performs the side of the drafting road network provided in any one embodiment of the invention
Method.
The embodiments of the invention provide a kind of storage control, including:Processor, memory and bus;
The memory is used to store execute instruction, and the processor is connected with the memory by the bus, when
During the storage control operation, the execute instruction of memory storage described in the computing device, so that the storage
The method that controller performs the drafting road network provided in any one embodiment of the invention.
In summary, each embodiment of the present invention at least has the advantages that:
1st, in one embodiment of the invention, road network image to be drawn is obtained first.Then according to the road network to be drawn of acquisition
Image, each Thiessen polygon is determined, form sample figure layer.Wherein, sample figure layer is made up of at least one Thiessen polygon, safe
A line in gloomy polygon is exactly a line feature, wherein only part line feature forms each bar passage in road network, because
This, sample figure layer includes road network.Each rectangle buffering area is determined according to the road network image to be drawn of acquisition, forms buffering figure
Layer.Figure layer is buffered by least one rectangle buffer set into wherein rectangle buffering area is used for limiting the road network in sample figure layer.
Buffering figure layer and road network image to be drawn is recycled to carry out removing line feature operation to sample figure layer so that in sample figure layer only
Containing the line feature for forming road network, so as to form road network corresponding to road network image to be drawn.By above-mentioned, this programme
Middle basis road network image to be drawn forms sample figure layer and buffering figure layer, then using buffering figure layer and road network figure to be drawn
As carrying out removing line feature operation to sample figure layer, road network corresponding to road network image to be drawn is formed.Whole process need not
Artificial to draw, therefore, scheme provided in an embodiment of the present invention can improve the efficiency for drawing road network.
2nd, in one embodiment of the invention, by be not set form road network image to be drawn progress projection transform,
Free-air correction, redundancy and the processing righted the wrong are deleted, many factors of exclusive PCR drawing process, improve and draw road network
Accuracy.
3rd, in one embodiment of the invention, by setting rectangle buffering area, the intransitable space of pedestrian is excluded to drawing
The interference of road network, further increase the accuracy for drawing road network.
4th, in one embodiment of the invention, sample figure layer is formed by Thiessen polygon, ensures that sample figure layer can include
Whole road network, the situation for omitting passage is avoided the occurrence of, ensure the integrality of road network.
5th, in one embodiment of the invention, road network image to be drawn is obtained by acquisition module first.Then, sample is passed through
Figure layer constructing module, according to the road network image to be drawn of acquisition, each Thiessen polygon is determined, forms sample figure layer.Wherein, sample
This figure layer is made up of at least one Thiessen polygon, and a line in Thiessen polygon is exactly a line feature, wherein only portion
Separated time key element forms each bar passage in road network, and therefore, sample figure layer includes road network.By buffering figure layer constructing module,
Each rectangle buffering area is determined according to the road network image to be drawn of acquisition, forms buffering figure layer.Figure layer is buffered by least one square
Shape buffer set is into wherein rectangle buffering area is used for limiting the road network in sample figure layer.Again by remove module, buffering is utilized
Figure layer and road network image to be drawn carry out removing line feature operation to sample figure layer so that only containing composition road in sample figure layer
The line feature of road network, so as to form road network corresponding to road network image to be drawn.By above-mentioned, basis is waited to paint in this programme
Road network image processed forms sample figure layer and buffering figure layer, then using buffering figure layer and road network image to be drawn to sample graph
Layer carries out removing line feature operation, forms road network corresponding to road network image to be drawn.Whole process need not manually be drawn, because
This, scheme provided in an embodiment of the present invention can improve the efficiency for drawing road network.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity
Or operation makes a distinction with another entity or operation, and not necessarily require or imply and exist between these entities or operation
Any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, article or equipment including a series of elements not only include those key elements,
But also the other element including being not expressly set out, or also include solid by this process, method, article or equipment
Some key elements.In the absence of more restrictions, by sentence " including the key element that a 〃 〃 " is limited, it is not excluded that
Other identical factor in the process including the key element, method, article or equipment also be present.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in computer-readable storage medium, the program
Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, is merely to illustrate the skill of the present invention
Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention,
Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.