CN107369198A - A kind of more broken line method for drafting for ARCGIS Web maps - Google Patents

A kind of more broken line method for drafting for ARCGIS Web maps Download PDF

Info

Publication number
CN107369198A
CN107369198A CN201710704300.1A CN201710704300A CN107369198A CN 107369198 A CN107369198 A CN 107369198A CN 201710704300 A CN201710704300 A CN 201710704300A CN 107369198 A CN107369198 A CN 107369198A
Authority
CN
China
Prior art keywords
broken line
map
point
drafting
arcgis
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
CN201710704300.1A
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.)
Sun Yat Sen University
National Sun Yat Sen University
Original Assignee
National Sun Yat Sen University
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 National Sun Yat Sen University filed Critical National Sun Yat Sen University
Priority to CN201710704300.1A priority Critical patent/CN107369198A/en
Publication of CN107369198A publication Critical patent/CN107369198A/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/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/003Maps

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Processing Or Creating Images (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to a kind of more broken line method for drafting for ARCGIS Web maps, belong to palegeology engineering information field.It is characterized in that line between mark point and mark point is generated by way of arbitrarily clicking on map or being manually entered coordinate, the point can be deleted by clicking on mark point, line segment and all figures added after this point with this for end points, so as to reach the purpose of editor's broken line.Broken line is generated by mark point again and removes line between mark point and mark point.The broken line figure being clicked is obtained by monitoring event, user decides whether to perform the operation for deleting the figure.Realize the online drafting of a plurality of broken line, editor and deletion.This method network geographic information system suitable for conveniently and efficiently drawing a plurality of broken line.

Description

A kind of more broken line method for drafting for ARCGIS Web maps
Technical field:
The invention belongs to palegeology engineering information field, more particularly to a kind of more foldings for ARCGIS Web maps Line method for drafting, suitable for conveniently and efficiently drawing a plurality of broken line network geographic information system.
Background technology:
Broken line (polyline) is one of main graphical drawn on ARCGIS Web maps.ARCGIS, which is provided, to be based on JavaScript toolbar.activate (Draw.POLYLINE) is ordered for drawing broken line.The order can be by ground Adopting consecutive click chemical reaction generates broken line on figure.But carrying out a plurality of broken line drafting using the order has following deficiency:
1. can only be by clicking on map increase point and line segment.
2. it can not cancel, if drawing error can only restart.
3. when there is multiple figures (graphic) on map, it is difficult to specific to remove a certain broken line.
4. in the case where knowing point coordinates, it is difficult to accurately drawn in the point.
Had important practical significance therefore, how to solve drawbacks described above.For above-mentioned deficiency, the present invention provides a kind of , can be more convenient for more broken line method for drafting of ARCGIS Web maps, precisely and hommization carried out on Web maps it is a plurality of Broken line is drawn.
The content of the invention:
In view of the shortcomings of the prior art, a kind of more broken line method for drafting for ARCGIS Web maps are invented.Pass through a little Hit ARCGIS Web maps or be manually entered Coordinate generation broken line, while the point that can be added to maloperation cancels with line, it is real Now accurately with hommization carry out broken line drafting.
A kind of more broken line method for drafting for ARCGIS Web maps, it invents as follows comprising content:
1. graphical pointv is simultaneously sequentially connected.
1) when mouse moves, the coordinate of current mouse point is shown.
2) when clicking on map, the coordinate of clicking point is obtained, or is manually entered coordinate, if existing mark point on map, with Last mark point draws line segment with the coordinate and is added to map.
3) the Coordinate generation mark point in 2) is added to map.
2. change current polyline to draw.
1) when clicking mark point, position of this in map graph array is inquired about.
2) since map graph array end, delete the point, with the point for end points line segment and it is all the point it The figure added afterwards.
3. generate broken line.
1) obtain successively and store dot pattern all in map graph array.
2) catalogue of first dot pattern in map graph array is obtained.
3) map graph array end starts Delete Shape, until first dot pattern is deleted.
4) broken line (POLYLINE) figure is generated with 1) the middle dot pattern obtained, and is added to map.
Broken line is specified 4. deleting.
1) when clicking broken line, prompt whether to delete the broken line, it is determined that then deleting the broken line.
Thus, the present invention realizes a kind of more broken line method for drafting for ARCGIS Web maps, and this method can pass through Click on and delete specific broken line, can be clicked on by map and be manually entered coordinate graphical pointv and broken line, can drawn by clicking on A part for point deletion broken line, realize the revocable drafting of broken line.
The present invention has advantages below:
1. the point of broken line can be determined by way of clicking on map or being manually entered coordinate, it is convenient and accurate to take into account.
2. after input point, the existing point-rendering line of firm basis, bandwagon effect directly perceived.
3. realizing revocation function, when broken line is drawn, that step for drawing the point, weight can be returned to by clicking on any mark point The point and figure afterwards are newly drawn, greatly reduces workload.
Broken line is specified 4. easily deleting, more hommization, reduces the repeated work accidentally slipped up and brought.
5. be a little stored in broken line figure in the figure array of map, will not caused by computing or unloading error.
It 6. the JavaScript program of this method need not change original system code, can independently introduce, be easy to management with repairing Change.
Brief description of the drawings:
Fig. 1 principle of the invention figures.
Fig. 2 main flows of the present invention.
Fig. 3 sub-processes --- draw mark point.
Fig. 4 sub-processes --- generation broken line.
Fig. 5 sub-processes --- revocation mark point and pattern deleting.
Fig. 6 sub-processes --- obtain clicking point catalogue.
Embodiment:
The present invention is a kind of more broken line method for drafting for ARCGIS Web maps.The present invention is entered below in conjunction with the accompanying drawings Row further illustrates.
The present invention is a kind of more broken line method for drafting for ARCGIS Web maps, main to include drawing simultaneously tie point, Change current polyline to draw, generate broken line, delete and specify broken line.Specific implementation step is as follows:
1. draw simultaneously tie point
Monitor map and click on event, forbid broken line to click on.When clicking on map, monitor event capture and clicked on to this map Event evt, the coordinate of clicking point is obtained by evt.mapPoint, or is manually entered coordinate;If existing mark point on map, with Last mark point draws line with the coordinate;Mark point is drawn with the coordinate and is added to map (Fig. 3).
2. change current polyline to draw
The mark point on map is clicked on, represents to cancel the figure drawn after the point and the point.Pass through Map.graphics.graphics obtains all figure arrays on current map.Traversing graph figurate number group, will click on coordinate minute a little Do not made comparisons with the dot pattern in figure array, find clicking point at the position of figure array (Fig. 6).With Map.graphics.remove () is ordered, and deletes the point, all figures added afterwards for the line segment of end points and the point with this Shape (Fig. 5).
3. generate broken line
Cease listening for map and click on event, monitor broken line and click on.Traversing graph figurate number group, obtain successively and store map graph All dot patterns in array.Obtain the catalogue of first dot pattern in map graph array.Deletion is opened from first dot pattern All figures to begin.Broken line (POLYLINE) figure is generated using dot pattern all in map graph array, is added to map. So far the drafting (Fig. 4) of a broken line is completed.
Broken line is specified 4. deleting
When broken line is clicked, event capture is monitored to this click event evt.Ask the user whether to delete the folding Line.When user determines to perform deletion action, the broken line figure being clicked is obtained by evt.graphic, used Map.graphics.remove (evt.graphic) deletes the broken line figure.
5. repeating 1-4, a plurality of broken line is drawn.
By above-mentioned, the present invention realizes the voidable a plurality of broken line of drafting on ARCGIS Web maps.The present invention can pass through Click on and delete specific broken line, can be clicked on by map and be manually entered coordinate graphical pointv and broken line, can drawn by clicking on A part for point deletion broken line, realize the revocable drafting of broken line.

Claims (5)

  1. A kind of 1. more broken line method for drafting for ARCGIS Web maps, it is characterised in that:In the net based on ARCGIS Web In network map application, simultaneously tie point is drawn by way of click or input coordinate;Current polyline is changed by clicking point to draw; All dot patterns are obtained, generate broken line;Delete and specify broken line;Above step is repeated, draws a plurality of broken line.
  2. 2. a kind of described more broken line method for drafting for ARCGIS Web maps are required according to right 1, wherein, described paints Make and the implementation of tie point is:Monitor map and click on event, forbid broken line to click on;When clicking on map, monitoring event is caught Grasp this map and click on event evt, the coordinate of clicking point is obtained by evt.mapPoint, or be manually entered coordinate;If ground Existing mark point on figure, line is drawn with last mark point and the coordinate;Mark point is drawn with the coordinate and is added to map.
  3. 3. a kind of described more broken line method for drafting for ARCGIS Web maps are required according to right 1, wherein, described repaiies Changing the implementation that current polyline is drawn is:The mark point on map is clicked on, expression is drawn after cancelling the point and the point Figure;Obtain and all figure arrays and traveled through on current map, will be clicked the coordinate of mark point respectively with figure array Dot pattern make comparisons, find position of the clicking point in figure array;Order, delete with map.graphics.remove () Except the point, with this between the mark point of end points line and all figures added after this point.
  4. 4. a kind of described more broken line method for drafting for ARCGIS Web maps are required according to right 1, wherein, described life Implementation into broken line is:The figure array of map is traveled through, obtains all dot patterns successively, is obtained in map graph array The catalogue of first dot pattern, delete all figures since first dot pattern;Using all in map graph array Dot pattern generates broken line figure, is added to map, completes the drafting of a broken line.
  5. 5. a kind of described more broken line method for drafting for ARCGIS Web maps are required according to right 1, wherein, described deletes Except the implementation of specified broken line is:When broken line is clicked, event capture is monitored to this click event evt, inquires user Whether the broken line is deleted, when user determines to perform deletion action, the line chart being clicked is obtained by evt.graphic Shape, the broken line figure is deleted using map.graphics.remove (evt.graphic).
CN201710704300.1A 2017-08-05 2017-08-05 A kind of more broken line method for drafting for ARCGIS Web maps Pending CN107369198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710704300.1A CN107369198A (en) 2017-08-05 2017-08-05 A kind of more broken line method for drafting for ARCGIS Web maps

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710704300.1A CN107369198A (en) 2017-08-05 2017-08-05 A kind of more broken line method for drafting for ARCGIS Web maps

Publications (1)

Publication Number Publication Date
CN107369198A true CN107369198A (en) 2017-11-21

Family

ID=60310362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710704300.1A Pending CN107369198A (en) 2017-08-05 2017-08-05 A kind of more broken line method for drafting for ARCGIS Web maps

Country Status (1)

Country Link
CN (1) CN107369198A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109389656A (en) * 2018-10-23 2019-02-26 泰华智慧产业集团股份有限公司 The method and system of drawing area on the map of mobile terminal
CN110415315A (en) * 2019-06-27 2019-11-05 五八有限公司 Touch method, apparatus, terminal and the storage medium in map making region
CN113806830A (en) * 2021-09-26 2021-12-17 桂林电子科技大学 Method for drawing GeoJSON data of indoor map based on WEB map

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008178325A (en) * 2007-01-24 2008-08-07 Junji Kuwamoto System for controlling fishing bank installation information
CN103605463A (en) * 2013-11-28 2014-02-26 东莞中国科学院云计算产业技术创新与育成中心 Rapid momentum plotting system and method based on GIS platform and touchscreen device
CN104462691A (en) * 2014-12-09 2015-03-25 广州大学 Method and device for implementation of intelligent drawing with mouse in dynamic geometric software
CN104881448A (en) * 2015-05-15 2015-09-02 福建星网锐捷网络有限公司 Map path marking method and device
CN105094815A (en) * 2015-06-30 2015-11-25 北京奇虎科技有限公司 Method and device for map route compilation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008178325A (en) * 2007-01-24 2008-08-07 Junji Kuwamoto System for controlling fishing bank installation information
CN103605463A (en) * 2013-11-28 2014-02-26 东莞中国科学院云计算产业技术创新与育成中心 Rapid momentum plotting system and method based on GIS platform and touchscreen device
CN104462691A (en) * 2014-12-09 2015-03-25 广州大学 Method and device for implementation of intelligent drawing with mouse in dynamic geometric software
CN104881448A (en) * 2015-05-15 2015-09-02 福建星网锐捷网络有限公司 Map path marking method and device
CN105094815A (en) * 2015-06-30 2015-11-25 北京奇虎科技有限公司 Method and device for map route compilation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吕宣: "谷歌地球在无线通信测量中的应用", 《通讯世界》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109389656A (en) * 2018-10-23 2019-02-26 泰华智慧产业集团股份有限公司 The method and system of drawing area on the map of mobile terminal
CN110415315A (en) * 2019-06-27 2019-11-05 五八有限公司 Touch method, apparatus, terminal and the storage medium in map making region
CN110415315B (en) * 2019-06-27 2023-12-26 五八有限公司 Method, device, terminal and storage medium for touch drawing map area
CN113806830A (en) * 2021-09-26 2021-12-17 桂林电子科技大学 Method for drawing GeoJSON data of indoor map based on WEB map
CN113806830B (en) * 2021-09-26 2023-05-16 桂林电子科技大学 Method for drawing indoor map GeoJSON data based on WEB map

Similar Documents

Publication Publication Date Title
CN103853821B (en) Method for constructing multiuser collaboration oriented data mining platform
CN107369198A (en) A kind of more broken line method for drafting for ARCGIS Web maps
CN103793178B (en) Vector graph editing method of touch screen of mobile device
CN107479504B (en) A kind of method of numerical control processing Automatic feature recognition and path planning
CN106886853A (en) Based on the workflow correlating method and its system of quoting initiation
CN104679949A (en) Method for creating Paramics road network based on XML (Extensive Markup Language) road network data
CN107679276B (en) Generation method and device of power system tide wiring diagram and electronic equipment
CN104978755A (en) Raph generating device, graph generating method and graph generating program
CN104881448B (en) A kind of map path mask method and device
CN103309988A (en) Method for automatically generating rail traffic line database
CN104991640B (en) Programing system in kind and method on interactive interface
CN110162058B (en) AGV planning method and device
CN102566862A (en) Method and device for erasing geometric figures in interactive electronic whiteboard
CN104598570B (en) The grasping means of resource and device
CN104375211B (en) A kind of weather forecast isogram update method and system
CN108108567A (en) Power distribution network line chart automatic drafting method based on fault detector logical place
CN107219935A (en) It is a kind of towards continuous writing Chinese character, support interaction Chinese character input system and method
CN101908215A (en) Spatial data fusing method
CN103679400A (en) Method and system for displaying project progress by subway map
CN113671988A (en) Job path setting method, apparatus, system, and storage medium
CN105243131B (en) Path query method and device
CN103001170A (en) Setting calculation method and system of power grid relay protection setting values
CN110516864B (en) Line adjustment method and device, storage medium and electronic device
JP6184748B2 (en) Map section designation system
CN103970790B (en) Report combined method and equipment

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171121

WD01 Invention patent application deemed withdrawn after publication