CN109509238A - The edit methods and system of electronic map - Google Patents

The edit methods and system of electronic map Download PDF

Info

Publication number
CN109509238A
CN109509238A CN201810829038.8A CN201810829038A CN109509238A CN 109509238 A CN109509238 A CN 109509238A CN 201810829038 A CN201810829038 A CN 201810829038A CN 109509238 A CN109509238 A CN 109509238A
Authority
CN
China
Prior art keywords
straight line
point
electronic map
distance
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
Application number
CN201810829038.8A
Other languages
Chinese (zh)
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.)
Krishti Control System (shanghai) Ltd By Share Ltd
Original Assignee
Krishti Control System (shanghai) Ltd By Share 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 Krishti Control System (shanghai) Ltd By Share Ltd filed Critical Krishti Control System (shanghai) Ltd By Share Ltd
Priority to CN201810829038.8A priority Critical patent/CN109509238A/en
Publication of CN109509238A publication Critical patent/CN109509238A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention provides a kind of edit methods of electronic map and systems, comprising: obtains the coordinate of beginning and end, the equation of straight line where zequin and terminal;Distance of the calculating all the points to the straight line;Filter out the point at a distance from the straight line in setting value;It is ranked up according to the point that coordinate pair filters out;According to ranking results, the point after sequence is established into line segment between any two.Through the invention, map edit personnel need to only mark beginning and end, so that it may automatically by all the points automatic connection cord section in rectilinear periphery setting range, greatly improve the efficiency of map edit.

Description

The edit methods and system of electronic map
Technical field
The present invention relates to technical field of data processing, and in particular, to the edit methods and system of electronic map.
Background technique
With the development of smart phone, electronic map technique has also gradually obtained the attention in market.Electronic map can be into The drawing output of row arbitrary scale, any range.It is very easy to modify, shortens mapping time.Can easily with The other informations such as satellite image, aerial photograph source combines, and generates new figure kind.It can use the information of numerical map record, group Raw new data, as contour indicates landform shape on map, but layman is difficult to understand, and utilizes the contour of electronic map Digital elevation model can be generated in line and elevational point, and surface relief is showed in digital form, can intuitive three-dimensional earth's surface Existing landform shape.This is that common topographic map can not reach expression effect.
Need to establish line segment between points in electronic map software, indicate between two points can with intercommunication, and this One work is currently to complete by manually.There are many quantity at electronic map midpoint, if each lead between points It crosses and manually establishes the mode of line segment and establish connection, then it is very heavy to the work load of to map editorial staff, also very expend the time Cost.
Summary of the invention
For the defects in the prior art, the object of the present invention is to provide a kind of edit methods of electronic map and systems.
A kind of edit methods of the electronic map provided according to the present invention, comprising:
Equation calculation step: obtaining the coordinate of beginning and end, the equation of straight line where zequin and terminal;
Distance calculates step: the distance of calculating all the points to the straight line;
Screening step: the point at a distance from the straight line in setting value is filtered out;
Sequence step: it is ranked up according to the point that coordinate pair filters out;
Connection Step: according to ranking results, the point after sequence is established into line segment between any two.
Preferably, the equation of straight line is Ax+By+C=0 in the annotation step, obtained according to the coordinate of beginning and end The value of parameter A, B, C, x, y are respectively abscissa, ordinate on straight line.
Preferably, the distance calculates in step, point arrives the distance of straight line are as follows:
Wherein, x0And y0The abscissa and ordinate respectively put.
Preferably, the sequence step includes:
Judge the straight line, if it is vertical line, then the ordinate of pressing filtered out sorts from small to large;If it is water Flat line or oblique line sort from small to large by abscissa.
Preferably, the Connection Step includes: that the point that will be filtered out is added in lists of links, lists of links is traversed, it will Current point and next point establish line segment.
A kind of editing system of the electronic map provided according to the present invention, comprising:
Equation calculation module: obtaining the coordinate of beginning and end, the equation of straight line where zequin and terminal;
Distance calculation module: the distance of calculating all the points to the straight line;
Screening module: the point at a distance from the straight line in setting value is filtered out;
Sorting module: it is ranked up according to the point that coordinate pair filters out;
Link block: according to ranking results, the point after sequence is established into line segment between any two.
Preferably, the equation of straight line is Ax+By+C=0 in the labeling module, obtained according to the coordinate of beginning and end The value of parameter A, B, C.
Preferably, point arrives the distance of straight line in the distance calculation module are as follows:
Wherein, x0And y0The abscissa and ordinate respectively put.
Preferably, the sorting module includes:
Judge the straight line, if it is vertical line, then the ordinate of pressing filtered out sorts from small to large;If it is water Flat line or oblique line sort from small to large by abscissa.
Preferably, the link block includes: that the point that will be filtered out is added in lists of links, lists of links is traversed, it will Current point and next point establish line segment.
Compared with prior art, the present invention have it is following the utility model has the advantages that
Through the invention, map edit personnel need to only mark beginning and end, so that it may rectilinear periphery be set model automatically Interior all the points automatic connection cord section is enclosed, the efficiency of map edit is greatly improved.
Detailed description of the invention
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, other feature of the invention, Objects and advantages will become more apparent upon:
Fig. 1 is flow chart of the invention.
Specific embodiment
The present invention is described in detail combined with specific embodiments below.Following embodiment will be helpful to the technology of this field Personnel further understand the present invention, but the invention is not limited in any way.It should be pointed out that the ordinary skill of this field For personnel, without departing from the inventive concept of the premise, several changes and improvements can also be made.These belong to the present invention Protection scope.
As shown in Figure 1, a kind of edit methods of electronic map provided by the invention, including
Equation calculation step: obtaining the coordinate of beginning and end, the equation of straight line where zequin and terminal.
The equation of straight line is Ax+By+C=0, according to starting point that is user's input or remembering in electronics point diagram subscript and The coordinate of terminal obtains the value of parameter A, B, C, and x, y are respectively abscissa, ordinate on straight line.
Distance calculates step: the distance of calculating all the points to the straight line.
Point arrives the distance of straight line are as follows:
Wherein, x0And y0The abscissa and ordinate respectively put.
Screening step: the point at a distance from the straight line in setting value is filtered out.
Sequence step: it is ranked up according to the point that coordinate pair filters out.
Judge the straight line, if it is vertical line, then the ordinate of pressing filtered out sorts from small to large;If it is water Flat line or oblique line sort from small to large by abscissa.
Connection Step: according to ranking results, the point after sequence is established into line segment between any two.The point that will specifically filter out It is added in lists of links, traverses lists of links, current point and next point is established into line segment.
On the basis of a kind of edit methods of above-mentioned electronic map, the present invention also provides a kind of editor of electronic map systems System, comprising:
Equation calculation module: obtaining the coordinate of beginning and end, the equation of straight line where zequin and terminal.
The equation of straight line is Ax+By+C=0, according to starting point that is user's input or remembering in electronics point diagram subscript and The coordinate of terminal obtains the value of parameter A, B, C.
Distance calculation module: the distance of calculating all the points to the straight line.
Point arrives the distance of straight line are as follows:
Wherein, x0And y0The abscissa and ordinate respectively put.
Screening module: the point at a distance from the straight line in setting value is filtered out.
Sorting module: it is ranked up according to the point that coordinate pair filters out.
Judge the straight line, if it is vertical line, then the ordinate of pressing filtered out sorts from small to large;If it is water Flat line or oblique line sort from small to large by abscissa.
Link block: according to ranking results, the point after sequence is established into line segment between any two.The point that will specifically filter out It is added in lists of links, traverses lists of links, current point and next point is established into line segment
One skilled in the art will appreciate that in addition to realizing system provided by the invention in a manner of pure computer readable program code It, completely can be by the way that method and step be carried out programming in logic come so that the present invention provides and its other than each device, module, unit System and its each device, module, unit with logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and embedding Enter the form of the controller that declines etc. to realize identical function.So system provided by the invention and its every device, module, list Member is considered a kind of hardware component, and to include in it can also for realizing the device of various functions, module, unit To be considered as the structure in hardware component;It can also will be considered as realizing the device of various functions, module, unit either real The software module of existing method can be the structure in hardware component again.
Specific embodiments of the present invention are described above.It is to be appreciated that the invention is not limited to above-mentioned Particular implementation, those skilled in the art can make a variety of changes or modify within the scope of the claims, this not shadow Ring substantive content of the invention.In the absence of conflict, the feature in embodiments herein and embodiment can any phase Mutually combination.

Claims (10)

1. a kind of edit methods of electronic map characterized by comprising
Equation calculation step: obtaining the coordinate of beginning and end, the equation of straight line where zequin and terminal;
Distance calculates step: the distance of calculating all the points to the straight line;
Screening step: the point at a distance from the straight line in setting value is filtered out;
Sequence step: it is ranked up according to the point that coordinate pair filters out;
Connection Step: according to ranking results, the point after sequence is established into line segment between any two.
2. the edit methods of electronic map according to claim 1, which is characterized in that in the annotation step, straight line Equation is Ax+By+C=0, obtains the value of parameter A, B, C according to the coordinate of beginning and end, x, y are respectively the horizontal seat on straight line Mark, ordinate.
3. the edit methods of electronic map according to claim 2, which is characterized in that the distance calculates in step, point To the distance of straight line are as follows:
Wherein, x0And y0The abscissa and ordinate respectively put.
4. the edit methods of electronic map according to claim 1, which is characterized in that the sequence step includes:
Judge the straight line, if it is vertical line, then the ordinate of pressing filtered out sorts from small to large;If it is horizontal straight Line or oblique line sort from small to large by abscissa.
5. the edit methods of electronic map according to claim 1, which is characterized in that the Connection Step includes: that will sieve The point selected is added in lists of links, traverses lists of links, and current point and next point are established line segment.
6. a kind of editing system of electronic map characterized by comprising
Equation calculation module: obtaining the coordinate of beginning and end, the equation of straight line where zequin and terminal;
Distance calculation module: the distance of calculating all the points to the straight line;
Screening module: the point at a distance from the straight line in setting value is filtered out;
Sorting module: it is ranked up according to the point that coordinate pair filters out;
Link block: according to ranking results, the point after sequence is established into line segment between any two.
7. the editing system of electronic map according to claim 6, which is characterized in that in the labeling module, straight line Equation is Ax+By+C=0, obtains the value of parameter A, B, C according to the coordinate of beginning and end.
8. the editing system of electronic map according to claim 7, which is characterized in that in the distance calculation module, point To the distance of straight line are as follows:
Wherein, x0And y0The abscissa and ordinate respectively put.
9. the editing system of electronic map according to claim 6, which is characterized in that the sorting module includes:
Judge the straight line, if it is vertical line, then the ordinate of pressing filtered out sorts from small to large;If it is horizontal straight Line or oblique line sort from small to large by abscissa.
10. the editing system of electronic map according to claim 6, which is characterized in that the link block includes: that will sieve The point selected is added in lists of links, traverses lists of links, and current point and next point are established line segment.
CN201810829038.8A 2018-07-25 2018-07-25 The edit methods and system of electronic map Pending CN109509238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810829038.8A CN109509238A (en) 2018-07-25 2018-07-25 The edit methods and system of electronic map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810829038.8A CN109509238A (en) 2018-07-25 2018-07-25 The edit methods and system of electronic map

Publications (1)

Publication Number Publication Date
CN109509238A true CN109509238A (en) 2019-03-22

Family

ID=65745583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810829038.8A Pending CN109509238A (en) 2018-07-25 2018-07-25 The edit methods and system of electronic map

Country Status (1)

Country Link
CN (1) CN109509238A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS603791A (en) * 1983-06-21 1985-01-10 Sairatsuku:Kk Picking system
JPS6334668A (en) * 1986-07-30 1988-02-15 Hitachi Ltd Automatic layout design supporting device
JPH05205041A (en) * 1992-01-30 1993-08-13 Hitachi Ltd Method and device for curve approximation
EP1727064A1 (en) * 2005-05-25 2006-11-29 Shinko Electric Industries Co., Ltd. Automatic trace determination apparatus and method
CN101308205A (en) * 2008-07-04 2008-11-19 北京交通大学 Method for automatically acquiring critical data from rail satellite positioning data
CN102737393A (en) * 2012-06-13 2012-10-17 朱桂永 Method and system for drawing vector diagram of overhead line
CN107168697A (en) * 2017-04-22 2017-09-15 华南理工大学 The line automatic obstacle-avoiding optimization method of graphical programming software

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS603791A (en) * 1983-06-21 1985-01-10 Sairatsuku:Kk Picking system
JPS6334668A (en) * 1986-07-30 1988-02-15 Hitachi Ltd Automatic layout design supporting device
JPH05205041A (en) * 1992-01-30 1993-08-13 Hitachi Ltd Method and device for curve approximation
EP1727064A1 (en) * 2005-05-25 2006-11-29 Shinko Electric Industries Co., Ltd. Automatic trace determination apparatus and method
CN101308205A (en) * 2008-07-04 2008-11-19 北京交通大学 Method for automatically acquiring critical data from rail satellite positioning data
CN102737393A (en) * 2012-06-13 2012-10-17 朱桂永 Method and system for drawing vector diagram of overhead line
CN107168697A (en) * 2017-04-22 2017-09-15 华南理工大学 The line automatic obstacle-avoiding optimization method of graphical programming software

Similar Documents

Publication Publication Date Title
CN106600700B (en) Three-dimensional model data processing system
CN110334346A (en) A kind of information extraction method and device of pdf document
CN108681667A (en) A kind of unit type recognition methods, device and processing equipment
CN106845470A (en) Map data collecting method and apparatus
CN111310278A (en) Ship automatic modeling method based on simulation
CN109190326A (en) Generate the method and device of process flow chart
CN109840559A (en) Method for screening images, device and electronic equipment
CN115600307B (en) Method for generating single building from Mesh model of urban scene
CN108764139A (en) A kind of method for detecting human face, mobile terminal and computer readable storage medium
CN113112603A (en) Method and device for optimizing three-dimensional model
CN109671132A (en) A kind of curve data acquisition method, apparatus and system based on colour gamut feature
CN109345628A (en) A kind of model light-weight technologg method, apparatus and electronic equipment
CN108595613A (en) GIS local maps edit methods and device
CN116483938A (en) Stepless map expression method and system
CN102915449A (en) Photo classification method
CN104827780B (en) A kind of Method of printing and print platform
CN109670064A (en) Photo archiving method, device and electronic equipment
CN109509238A (en) The edit methods and system of electronic map
CN108769521A (en) A kind of photographic method, mobile terminal and computer readable storage medium
CN118152393A (en) BIM model management method and device based on WBS, electronic equipment and storage medium
CN109934894B (en) CAD (computer-aided design) drawing method and device and computer-readable storage medium
CN112149506A (en) Table generation method, apparatus and storage medium in image combining RPA and AI
CN109064876A (en) The inflection point edit methods and system of electronic map
CN114626458B (en) High-voltage rear part identification method and device, storage medium and terminal
CN114005066B (en) HDR-based video frame image processing method and device, computer equipment and medium

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

Application publication date: 20190322

RJ01 Rejection of invention patent application after publication