CN103677315A - Method and system for clicking line geometry objects in touch manner - Google Patents

Method and system for clicking line geometry objects in touch manner Download PDF

Info

Publication number
CN103677315A
CN103677315A CN201310641746.6A CN201310641746A CN103677315A CN 103677315 A CN103677315 A CN 103677315A CN 201310641746 A CN201310641746 A CN 201310641746A CN 103677315 A CN103677315 A CN 103677315A
Authority
CN
China
Prior art keywords
line
coordinate
clicks
map
coordinate points
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
CN201310641746.6A
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.)
Founder International Co Ltd
Founder International Beijing Co Ltd
Original Assignee
Founder International Co Ltd
Founder International Beijing 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 Founder International Co Ltd, Founder International Beijing Co Ltd filed Critical Founder International Co Ltd
Priority to CN201310641746.6A priority Critical patent/CN103677315A/en
Publication of CN103677315A publication Critical patent/CN103677315A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a method and a system for clicking line geometry objects in a touch manner, and belongs to the field of geographic information systems. The method includes starting a map application program of an intelligent mobile terminal, starting a mapping function to optionally draw a line L on a map, and recording a coordinate point of the line L; selecting a point P near the line L, recording coordinates of the point P, drawing a circle C on the map, judging whether the circle C is intersected with the line L or not, determining that the line L is selected if the circle C is intersected with the line L, or determining that the line L is not selected if the circle C is not intersected with the line L. The center of the circle C is the selected point P, and the radius of the circle C is equal to a set threshold value R. The method and the system have the advantages that a line geometry object clicking mode can be simplified for the mobile terminal by the aid of the method and the system, and the clicking efficiency can be improved.

Description

A kind of touch method and system that click line geometry object
Technical field
The invention belongs to mobile GIS field, be specifically related to a kind ofly in touch intelligent movable operating system GIS application software, by the touch mode clicking, accurately navigate to the method for the certain line geometric object relating within the scope of this touch
Background technology
In recent years, along with the develop rapidly of infinite network communication and Internet technology, people are eager, and fixed network, wired interconnected constraint were walked out in requirement.GIS(Geographic Information System correspondingly) technology is also changed to the interconnected WebGIS aspect of fixed network by the GIS based on unit, until current wireless interconnected.The develop rapidly of a large amount of mobile devices impels GIS to the GIS development based on mobile computing, and this GIS based on mobile computing will become the important development direction of Geographic Information System.
Mobile GIS has become an indispensable part in people's life, such as circuit query, running fix, social networks, data acquisition etc., most of mobile GIS application all be take moving map as support, with form intuitively, bring the impact of people's vision, by various ways of presentation, bring people more Useful Informations.
Buffer zone is a kind of coverage or the service range of Geography spatial object, specifically refers at point, line, surface entity around, and the region of the certain width of automatically setting up, mathematical expression is:
Bi=(x:d(xi,Oi)≤R)。The buffer zone that the radius that is object Oi is R, for the distance d apart from Oi is less than the set of whole points of R.D is generally minimum Eustachian distance, but the also distance of other definition.
Buffer zone is an important concept in GIS, and dot buffer zone is that to put be the center of circle, is the circle of radius at a certain distance; Line buffer zone is to take line as axis, is the buffering suface of radius at a certain distance, has Bilateral Symmetry, bilateral is asymmetric or one-sided buffer zone; For face buffer zone, there are inner side and buffer zone, outside.In GIS field, calculation level buffer zone is relatively simple, and efficiency is also very considerable; And click a line, for judging which bar line is hit, more common method is: a buffer set radius is set, around this line computation, goes out buffering suface, then utilize the mode of point in face to judge that whether this line is selected.In computer system, because computing ability is than very fast, the buffer zone time cost of calculating line is just shorter, therefore user's experience effect is relatively good, but as mobile terminal, computing power differs large especially compared to computer system, if therefore mobile terminal also adopts the method to calculate, efficiency can be starkly lower than computer system, thereby causes user's experience effect poor, in the situation of especially online situation more complicated.
Summary of the invention
For the defect existing in prior art, the object of this invention is to provide the touch method and system that click line geometry object on a kind of intelligent mobile terminal, by the method and system, can effectively improve the reach the standard grade efficiency of choosing of geometric object of intelligent mobile terminal.
For reaching above object, the technical solution used in the present invention is: a kind of touch method that clicks line geometry object, comprises the following steps:
Step 1, opens the map application of intelligent mobile terminal, and start mapping function and on map, draw arbitrarily a line L, and the coordinate points of call wire L;
Step 2 is chosen 1 P near described line L, and the coordinate of measuring point P; Near described line, be to give directions with linear distance to be less than setting value;
Step 3, the selected some P of take is the center of circle, the threshold value R setting of take is radius draw circles C on map;
Step 4, whether the round C that judgement is described and line L intersect, if determine that line L is selected, determine that if not line L is not selected.
Further, a kind of touch method that clicks line geometry object as above, in step 1, the coordinate points of described call wire L refer to record form line L coordinate a little.
Further, a kind of touch method that clicks line geometry object as above, described coordinate refers to the screen coordinate on intelligent mobile terminal.
Further again, a kind of touch method that clicks line geometry object as above, in step 3, described threshold value R is set as required by user.
Further, a kind of touch method that clicks line geometry object as above, in step 4, the concrete the mode whether round C that judgement is described and line L intersect is:
Any 1) determine between two coordinate points of the described online L of some P;
2) set up the line segment equation of locus between two described coordinate points;
3) judge whether the equation of locus of described round C and described line segment equation of locus intersect.
A touch system that clicks line geometry object, comprising:
Line drafting module, for opening the map application of intelligent mobile terminal, starts mapping function and on map, draws arbitrarily a line L, and the coordinate points of call wire L;
Click delivery piece, for choose 1 P near described line L, and the coordinate of measuring point P; Near described line, be to give directions with linear distance to be less than setting value;
Dot buffer zone drafting module, is the center of circle for take selected some P, and the threshold value R setting of take is radius draw circles C on map;
Judge module in line selection, for judging whether described round C and line L intersect, if determine that line L is selected, determines that line L is not selected if not.
Further, a kind of touch system that clicks line geometry object as above, the coordinate points of described call wire L refer to record form line L coordinate a little.
Further again, a kind of touch system that clicks line geometry object as above, in described line selection, judge module comprises:
Point position determination unit, for determining between which two coordinate points of the described online L of some P;
Line tracking is set up unit, for setting up the line segment equation of locus between two described coordinate points;
Judging unit, for judging whether the equation of locus of described round C and described line segment equation of locus intersect.
Effect of the present invention is: adopt method of the present invention, can overcome line buffer zone and calculate slow shortcoming, the substitute is calculation level buffer zone, can greatly shorten computing time, improve mobile terminal user's experience effect, thereby in mobile terminal, simplify the mode that clicks of line geometry object, and raising clicks efficiency.
Accompanying drawing explanation
Fig. 1 is a kind of touch structured flowchart that clicks the system of line geometry object in the specific embodiment of the invention;
Fig. 2 is a kind of touch process flow diagram that clicks the method for line geometry object in the specific embodiment of the invention;
Fig. 3 judges the schematic diagram whether line geometry object is chosen in embodiment.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
Fig. 1 shows a kind of touch structured flowchart that clicks the system of line geometry object in the specific embodiment of the invention, and this system mainly comprises line drafting module 11, clicks judge module 14 in delivery piece 12, dot buffer zone drafting module 13 and line selection, wherein:
Line drafting module 11, for opening the map application of intelligent mobile terminal, starts mapping function and on map, draws arbitrarily a line L, and the coordinate points of call wire L; The coordinate points of described call wire L refer to record form line L coordinate a little;
Click delivery piece 12 for choose 1 P near described line L, and the coordinate of measuring point P; Near described line, be to give directions with linear distance to be less than setting value;
Dot buffer zone drafting module 13 is the center of circle for take selected some P, and the threshold value R setting of take is radius draw circles C on map;
In line selection, judge module 14, for judging whether described round C and line L intersect, if determine that line L is selected, determines that line L is not selected if not.This module comprises:
Point position determination unit, for determining between which two coordinate points of the described online L of some P;
Line tracking is set up unit, for setting up the line segment equation of locus between two described coordinate points;
Judging unit, for judging whether the equation of locus of described round C and described line segment equation of locus intersect.
Fig. 2 shows a kind of touch process flow diagram that clicks the method for line geometry object based on system shown in Fig. 1 in this embodiment, and the method comprises the following steps:
Step S21: draw a line L, and record its coordinate points;
Open the map application of intelligent mobile terminal, start mapping function and on map, draw arbitrarily a line L, and the coordinate points of call wire L.
Open the map application that intelligent mobile terminal is chosen based on geometric object, after application start, draw function on screen map, draw arbitrarily a curve by it, and record the coordinate points of this curve, this curve is as the line geometry object of present embodiment.In actual application, curve can be also the curve having existed on screen map, by method of the present invention, judges that whether user's this curve in operating process is selected.
In present embodiment the coordinate points of call wire L refer to record form line L coordinate a little, the mode of record can be (X 1, Y 1; X 2, Y 2; X 3, Y 3; ), in practical operation, sometimes do not need the coordinate of whole points of call wire L, can call wire L the coordinate of upper relative key points, as the coordinate points at line L two ends and the upper point in corner location of line L, which can set as required physical record.What the coordinate of the point of choosing in the coordinate in this step and step S22 referred to is all the screen coordinate on intelligent mobile terminal.
Step S22: near described line L, choose 1 P, and the coordinate of measuring point P;
Step S23: take a P as the center of circle, the threshold value R setting of take is radius draw circles C;
Near described line L, choose 1 P, the coordinate of measuring point P, and take a P as the center of circle, the threshold value R setting of take is radius draw circles C on screen map, is to give directions with linear distance to be less than setting value near described line.
In practical operation, with people's eyes range estimation, selected distance line L nearest a bit, and record the coordinate of this point, as (X p, Y p).Threshold value R is set as required by user.
Step S24: whether selected according to circle C and the whether crossing definite line L of line L.
Whether the round C that judgement is described and line L intersect, if determine that line L is selected, determine that if not line L is not selected.In present embodiment, utilize judge the crossing mode of line and face judge former C and line L whether crossing, specifically mode is as follows:
Any 1) determine between two coordinate points of the described online L of some P;
2) set up the line segment equation of locus between two described coordinate points;
3) judge whether the equation of locus of described round C and described line segment equation of locus intersect.
For example, the coordinate (X of some P p, Y p) be positioned at the point (X of line L 1, Y 1) and point (X 2, Y 2) between, by judging equation of locus and the point (X of round C 1, Y 1) and point (X 2, Y 2) between equation of locus whether intersect.As shown in Figure 3, circle C and line L intersect, and illustrate that line L is selected.
Method and system of the present invention, by judging that some P selected on screen and the distance D of line L and the relation of setting threshold R determine whether to have chosen line L, if D is less than or equal to R, illustrate that line L chooses in fact, otherwise explanation line L are not selected.By which, existing line buffer zone is calculated and is converted to dot buffer zone calculating, greatly improved computing time, be more suitable for the needs of intelligent mobile terminal application.
Below in conjunction with specific embodiment, the present invention is further described.
Embodiment
The first step is drawn arbitrarily a line L on map, records the coordinate points of this line, and this sentences screen coordinate and records coordinate points, and the coordinate points of the present embodiment center line L is (20,30; 24,28; 25,33; );
Second step, it is 8 that threshold value R is set.The effect of this threshold value: the shortest vertical range of establishing position, touch point and line geometry object is D, if D<=R=8 illustrates that this line geometry object is selected; Otherwise line geometry object is not selected;
The 3rd step, touches and clicks screen, and record touch point P coordinate figure, adopts equally screen coordinate, and the coordinate of some P is (22,26);
The 4th step, take touch point P as the center of circle, and threshold value R is radius draw circles C, and the equation of locus of circle C is: (X-22) 2+ (Y-26) 2=8 2;
The 5th step, according to the position of touch point, can judge that this touch point is positioned at first coordinate of line geometry object and the centre of second coordinate points, and the equation of locus of setting up this line segment is:
Y-28=-1/2*(X-24);
The 6th step, by two establishing equation system of equations, solves, and can obtain two solutions and be respectively: X1=74.9, Y1=25.02; X2=16.44, two establishing equation system of equations of Y2=31.78., have solution, illustrate that circle C and line geometry object intersect, and line geometry object is selected.
Method and system of the present invention is not limited to the embodiment described in embodiment, and those skilled in the art's technical scheme according to the present invention draws other embodiment, belongs to equally technological innovation scope of the present invention.

Claims (8)

1. a touch method that clicks line geometry object, comprises the following steps:
Step 1, opens the map application of intelligent mobile terminal, and start mapping function and on map, draw arbitrarily a line L, and the coordinate points of call wire L;
Step 2 is chosen 1 P near described line L, and the coordinate of measuring point P; Near described line, be to give directions with linear distance to be less than setting value;
Step 3, the selected some P of take is the center of circle, the threshold value R setting of take is radius draw circles C on map;
Step 4, whether the round C that judgement is described and line L intersect, if determine that line L is selected, determine that if not line L is not selected.
2. a kind of touch method that clicks line geometry object as claimed in claim 1, is characterized in that, in step 1, the coordinate points of described call wire L refer to record form line L coordinate a little.
3. a kind of touch method that clicks line geometry object as claimed in claim 2, is characterized in that, described coordinate refers to the screen coordinate on intelligent mobile terminal.
4. a kind of touch method that clicks line geometry object as described in one of claims 1 to 3, is characterized in that, in step 3, described threshold value R is set as required by user.
5. a kind of touch method that clicks line geometry object as claimed in claim 4, is characterized in that, in step 4, the concrete the mode whether round C that judgement is described and line L intersect is:
Any 1) determine between two coordinate points of the described online L of some P;
2) set up the line segment equation of locus between two described coordinate points;
3) judge whether the equation of locus of described round C and described line segment equation of locus intersect.
6. a touch system that clicks line geometry object, comprising:
Line drafting module, for opening the map application of intelligent mobile terminal, starts mapping function and on map, draws arbitrarily a line L, and the coordinate points of call wire L;
Click delivery piece, for choose 1 P near described line L, and the coordinate of measuring point P; Near described line, be to give directions with linear distance to be less than setting value;
Dot buffer zone drafting module, is the center of circle for take selected some P, and the threshold value R setting of take is radius draw circles C on map;
Judge module in line selection, for judging whether described round C and line L intersect, if determine that line L is selected, determines that line L is not selected if not.
7. a kind of touch system that clicks line geometry object as claimed in claim 6, is characterized in that, the coordinate points of described call wire L refer to record form line L coordinate a little.
8. a kind of touch system that clicks line geometry object as claimed in claim 7, is characterized in that, in described line selection, judge module comprises:
Point position determination unit, for determining between which two coordinate points of the described online L of some P;
Line tracking is set up unit, for setting up the line segment equation of locus between two described coordinate points;
Judging unit, for judging whether the equation of locus of described round C and described line segment equation of locus intersect.
CN201310641746.6A 2013-12-03 2013-12-03 Method and system for clicking line geometry objects in touch manner Pending CN103677315A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310641746.6A CN103677315A (en) 2013-12-03 2013-12-03 Method and system for clicking line geometry objects in touch manner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310641746.6A CN103677315A (en) 2013-12-03 2013-12-03 Method and system for clicking line geometry objects in touch manner

Publications (1)

Publication Number Publication Date
CN103677315A true CN103677315A (en) 2014-03-26

Family

ID=50315120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310641746.6A Pending CN103677315A (en) 2013-12-03 2013-12-03 Method and system for clicking line geometry objects in touch manner

Country Status (1)

Country Link
CN (1) CN103677315A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108008893A (en) * 2017-12-01 2018-05-08 北京小米移动软件有限公司 Image processing method and device
CN109564201A (en) * 2016-08-04 2019-04-02 株式会社岛津制作所 Chromatograph input unit and chromatograph
CN111366163A (en) * 2018-12-25 2020-07-03 北京欣奕华科技有限公司 Topological map processing method and device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060461A (en) * 2007-04-28 2007-10-24 湖北邮电规划设计有限公司 A communication network access point lowering method
CN101373140A (en) * 2008-10-15 2009-02-25 凯立德欣技术(深圳)有限公司 Parking ground navigation method and system
CN101650890A (en) * 2009-09-18 2010-02-17 西安煤航信息产业有限公司 Method for expressing processing of roads on map
CN201853252U (en) * 2009-12-18 2011-06-01 湖南城市学院 Wetland resource and ecological environment supervising system
CN102193919A (en) * 2010-03-03 2011-09-21 北京四维图新科技股份有限公司 Method and device for catching interest point in geographical information system
CN102298595A (en) * 2010-06-23 2011-12-28 北京爱国者信息技术有限公司 Browser guiding system and guiding method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060461A (en) * 2007-04-28 2007-10-24 湖北邮电规划设计有限公司 A communication network access point lowering method
CN101373140A (en) * 2008-10-15 2009-02-25 凯立德欣技术(深圳)有限公司 Parking ground navigation method and system
CN101650890A (en) * 2009-09-18 2010-02-17 西安煤航信息产业有限公司 Method for expressing processing of roads on map
CN201853252U (en) * 2009-12-18 2011-06-01 湖南城市学院 Wetland resource and ecological environment supervising system
CN102193919A (en) * 2010-03-03 2011-09-21 北京四维图新科技股份有限公司 Method and device for catching interest point in geographical information system
CN102298595A (en) * 2010-06-23 2011-12-28 北京爱国者信息技术有限公司 Browser guiding system and guiding method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109564201A (en) * 2016-08-04 2019-04-02 株式会社岛津制作所 Chromatograph input unit and chromatograph
CN108008893A (en) * 2017-12-01 2018-05-08 北京小米移动软件有限公司 Image processing method and device
CN111366163A (en) * 2018-12-25 2020-07-03 北京欣奕华科技有限公司 Topological map processing method and device and storage medium

Similar Documents

Publication Publication Date Title
CN104850641B (en) A kind of method and device of recommendation information
CN107437122B (en) Determine that businessman dispenses the method and device of range
CN103500516A (en) High-efficiency trace replay method and system based on electronic map
WO2016050091A1 (en) Method for adjusting layout of application icons on terminal, and terminal
CN110264326A (en) Identify the method, device and equipment of abnormal account aggregation and adventure account set
CN102799339B (en) Application function button tap implementation method and device
CN102890697B (en) Based on the object search method of map localized area
CN102902407B (en) A kind of touch-screen output display touches the method and apparatus of person&#39;s handwriting
CN104598621A (en) Track compression method based on sliding window
CN109726368B (en) Map marking method and device
CN103677315A (en) Method and system for clicking line geometry objects in touch manner
JP2019070903A (en) Information processing device, information processing method, and program
CN106227445A (en) display control method, device and terminal
CN112000893B (en) Resident region prediction method, device, equipment and storage medium
US20230128282A1 (en) Method for fusing map data, and electronic device
CN111135558B (en) Game synchronization method, game client, computer storage medium and electronic device
JP5771348B2 (en) Method, apparatus, and computer program for adjusting hyperlink layout size (adjusting hyperlink layout size)
CN105050038A (en) Method, apparatus, and system for monitoring position information of mobile terminal
CN111737636A (en) Path curve generation method and device, computer equipment and storage medium
CN105405355A (en) Method for screening information points on electronic map
CN102929529A (en) Multi-select control method and device for list interface, and mobile terminal
CN109657017B (en) Display method and device for aggregation point set in map
CN101702169B (en) Orthogonal section method and system for evolution analysis of digital shorelines
CN103645855A (en) Touch reading method and device
CN103559277A (en) Data processing method and device for webpage page click quantity statistics

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326

RJ01 Rejection of invention patent application after publication