CN102157003B - Automatic configuration method for annotation label of map under digital environment - Google Patents

Automatic configuration method for annotation label of map under digital environment Download PDF

Info

Publication number
CN102157003B
CN102157003B CN201110063554A CN201110063554A CN102157003B CN 102157003 B CN102157003 B CN 102157003B CN 201110063554 A CN201110063554 A CN 201110063554A CN 201110063554 A CN201110063554 A CN 201110063554A CN 102157003 B CN102157003 B CN 102157003B
Authority
CN
China
Prior art keywords
mark
conflict
geodata
map
gland
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.)
Expired - Fee Related
Application number
CN201110063554A
Other languages
Chinese (zh)
Other versions
CN102157003A (en
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.)
Wuhan University WHU
Original Assignee
Wuhan University WHU
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 Wuhan University WHU filed Critical Wuhan University WHU
Priority to CN201110063554A priority Critical patent/CN102157003B/en
Publication of CN102157003A publication Critical patent/CN102157003A/en
Application granted granted Critical
Publication of CN102157003B publication Critical patent/CN102157003B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides an automatic configuration method for annotation labels of a map under a digital environment, which aims at the problems of the prior art of which the annotation labels of a map need to be artificially configured one by one under the digital environment, the operation for configuring annotation labels of a map is complex, the speed is slow, the efficiency is low, and the requirements of screen display and production can be met hardly. The invention provides an automatic configuration method for annotation labels of a map, which is characterized in that the model is simple and clear, the configuration efficiency is high, the annotation labels of a map can be rapidly and effectively configured under the digital environment, and the production requirements can be met basically.

Description

Map note property mark method of automatic configuration under the digital environment
Technical field
The present invention relates to electronic chart and digital cartography field, relate in particular to the map note property mark method of automatic configuration under a kind of digital environment.
Background technology
Numerical map be information age draughtsmanship development must be through approach; With respect to the traditionally on paper map, it does not receive the restriction of fixed proportion chi, according to the needs of drawing purpose can sub-element, layering and classification provide spatial data; Help selecting corresponding with it expression way to map subject; Avoided the method that multiple key element and thematic characteristic synthetic are expressed on traditional topomap, be particularly conducive to the drafting of wanting sketch map and thematic map, the purpose of charting strengthens greatly.But owing to receive the influence of breadth size, map content, for the concrete numerical map of a width of cloth, want the keynote message of some important elements of outstanding behaviours in limited spatial dimension, usually caption is cited sb. for meritorious service and can be difficult to realize.Be this part important information of outstanding behaviours, map note property mark is essential.The tradition draughtsmanship adds map note property mark and leans on manual work to dispose one by one for realizing above function, and its inefficiency almost can't satisfy the production demand.
At present, to the automatically research carried out of configuration of the map note property mark under the digital environment, do not have both at home and abroad can be for reference document.Domestic and international application is computer mapping software more widely; For example ArcGIS software, MapInfo software, MapGIS software etc.; All do not relate to the automatic configuration of map note property mark, ArcGIS also rests on the level of manually adding one by one at configuration map note property mark.The patent that also occurs part correlation to this problem of figure labeling: " chamfer marking system and method " (application number: 200810301524.9); What but this invention was directed against is the chamfer marking of pel in the CAD designed graphic document, does not relate to also and the digital computer map note property mark that is not suitable under the digital environment disposes automatically; " method for automatically computing figure labeling position " (application number: 200910214512.7); Send that bright what be directed against is the automatic mark of pipeline, pipeline graphic assembly elsewhere, do not relate to also equally and the digital computer map note property mark that is not suitable under the digital environment disposes automatically; " a kind of geographical marking method based on road " (application number: 2007100379412), what this invention was related is the GIS-Geographic Information System field, but it depends on the existence of mileage chart layer, and range of application is little, and dimension style is single.
Summary of the invention
In order to address the above problem; The present invention proposes the map note property mark method of automatic configuration under a kind of digital environment, makes everyly to relate under the digital environment map note property mark problem in the computer mapping and can utilize scheme proposed by the invention to carry out the automatic configuration of map note property mark.
Map note property mark method of automatic configuration under the digital environment that technical scheme of the present invention provides may further comprise the steps:
Step 1, input geodata, geodata figure layer to be marked and mark range data are to the expression of charting of geodata and geodata figure layer to be marked;
Step 2, the geodata figure layer of treating mark generate the mark figure; When generating the mark figure, establish the suitable district of mark with reference to the mark range data, the mark figure behind the mark is positioned at the suitable district of mark;
Step 3, to the mark figure behind the mark, establish the figure layer that mark can not gland;
Step 4, will carry out rasterizing and handle at the step 1 geodata figure layer after expressing that charted, the unit of rasterizing be square, and the length of side of the grid font size that equals to mark, and all trellis states could behind the rasterizing are set to not use;
Step 5, to establish certain mark diagrammatic representation be A, will mark figure A and other and mark figure and carry out the space collision detection;
If mark figure A exists gland to conflict with other mark figures; If the mark diagrammatic representation that exists gland to conflict with mark figure A is B; Then will mark the shared trellis states could of figure A and B and be labeled as and use, the status indication of mark figure A is for having conflict, entering step 7;
If mark figure A does not exist gland to conflict with other mark figures, then will mark the shared trellis states could of figure A and be labeled as and use, the status indication of mark figure A does not conflict for having, entering step 6;
Step 6, will mark the figure layer that figure A and its can not gland and detect; If mark figure A gland its can not gland the figure layer; The state that then will mark figure A has been labeled as conflict, otherwise the state that will mark figure A is labeled as and do not have conflict, gets into step 7 then;
Step 7, if the state of mark figure A for there not being conflict, gets into step 8;
If the state of mark figure A is for there being conflict, based on the mark range data, establishment marks suitable district, in mark suits to distinguish, gets rid of to be labeled as the grid that has used; Change marks the labeling position of figure A in the suitable district of mark, turns back to step 5 then and begins to repeat step 5-7, does not conflict for having until the state of judging mark figure A in step 7;
Step 8, to next mark figure execution in step 5-7, until states of all mark figures for there not being conflict.
And in the step 2 and 7, said mark range data is planar data, and the suitable district of mark establishes in the outside of this planar data representative regional extent.
And; When step 2 generates the mark figure and/or after step 8; The selection of map label pattern is provided, comprises field separator, the mark and the connected mode, the color of mark, the background colour of mark, the font of mark and the font size of mark that mark corresponding geodata of selecting mark.
And, in the step 7, when the state of mark figure A when conflict is arranged, in the suitable district of mark, change the labeling position that marks figure A, be according to from right to left, order from top to bottom changes one by one.
Advantage of the present invention be note property mark automatically configuration is succinct efficient, conflict handle fast and effect obvious, satisfy the configuration needs of the note property mark in the actual production, have good real-time performance and note property mark effect.
Description of drawings
Fig. 1 is the system architecture figure of the embodiment of the invention;
Fig. 2 is the system flow synoptic diagram of the embodiment of the invention;
Fig. 3 is that straight line of the present invention connects the pattern synoptic diagram;
Fig. 4 is that triangle of the present invention connects the pattern synoptic diagram.
The practical implementation method
Understand and embodiment of the present invention for the ease of those of ordinary skills, the present invention is made further detailed description below in conjunction with accompanying drawing and embodiment.
The system architecture that the embodiment of the invention is moved, as shown in Figure 1, it comprises database, drawing system and terminal user's three parts, and this structure has been utilized the active computer database technology.Among the embodiment, what database adopted is oracle database, and according to the needs of computer mapping, database comprises four types: geographical data bank, cartographic data base, map data base and map expert knowledge library.The geodata library storage be geodata, promptly original DLG (Digital Line Graphic) digital line is drawn data and metadata thereof, is the most basic data of computer mapping; The cartographic data library storage be cartographic data, promptly be specifically designed to the data of drawing, be according to cartographic convention, geodata is carried out the result after the retouching operations such as key element extraction, classification and figure merging.The map datum library storage be map datum, can directly be used for the data that map is published, comprise drawing expression of results, annotation, the outer ornamenting of figure etc.Map expertise library storage be the drawing expertise, the set of the knowledge of promptly charting can comprise map symbols bank, cartographic convention, symbol contrast rule, symbolic result plot order, annotation expert knowledge library, conflict rule, conflict processing rule etc.The data flow of computer mapping system is then as shown in Figure 2.At first geodatas such as the shapefile in the spatial database, E00 form are carried out data pretreatment operation such as data compression, data connection, river structuring, convert cartographic data into; Secondly under the constraint of map expert knowledge library, cartographic data is carried out Cartographic Symbolization, writing dispose automatically and scheme operation such as outer ornamenting, formation map datum; At last to map datum can further import to CorelDraw, Illustrator isovector edit tool is edited, the electronic map data of accomplishing the most at last files or prints output.
It is following to realize in the aforementioned calculation machine map making system that map note property marks idiographic flow automatically:
Step 1, input geodata, geodata figure layer to be marked and mark range data are to the expression of charting of geodata and geodata figure layer to be marked.
1) the geodata figure layer that present embodiment is to be marked is reservoir and embankment responsible official point-like data plot layer, and this figure layer has been stored information such as reservoir and each responsible official's of embankment responsible position, name, contact method.Carry out the data pre-service, generate cartographic data; To the cartographic data expression of charting, i.e. symbolism and annotation.Can import the concrete numerical value of mark range data this moment, also can the mark range data be made as sky.
Step 2, the geodata figure layer of treating mark generate the mark figure of map note property; When generating the mark figure, establish the suitable district of mark with reference to the mark range data, the mark figure behind the mark is positioned at the suitable district of mark.
When the geodata of treating mark marks, be empty if step 1 bidding is annotated range data, then the suitable district of explanation mark is whole figure amplitude range, and directly generation marks figure and gets final product; If specified the mark range data, then the mark figure behind the mark is positioned at the suitable district of the mark of establishing according to the mark range data.General mark range data is planar data, and the suitable district of mark establishes in the outside of this planar data representative regional extent.The labeled data of present embodiment is reservoir, embankment responsible official point-like data, and the mark range data is empty.
When generating the mark figure, the selection of map label pattern can be provided to the user, also can generate automatically based on the map label pattern of default setting.Content comprises field separator, the mark and the connected mode, the color of mark, the background colour of mark, the font of mark and the font size of mark that mark corresponding geodata of mark.Mark connects pattern and can adopt direct type to connect mark, like Fig. 3; Also can adopt triangle to connect mark, like Fig. 4.The mark field of embodiment is " Name " and " Phone " field; The mark separator is " carriage return character "; Mark is " straight line is connected " with waiting the connected mode that marks geodata; The color of mark is a black; The background colour of mark is a white, and transparency is 30%, and the mark font is " Song typeface ", and the mark font size is 2mm.
If a plurality of geodata figure layers to be marked are arranged, can realize setting mark priority, generate mark successively according to priority orders.
Step 3, to the mark figure behind the mark, establish the figure layer that mark can not gland.
The mark that embodiment establishes can not gland the figure layer be: point-like resident's map layer, reservoir and embankment responsible official point-like data plot layer.
Step 4, will carry out rasterizing and handle at the step 1 geodata figure layer after expressing that charted, the unit of rasterizing be square, and the length of side of the grid font size that equals to mark, and all trellis states could behind the rasterizing are set to not use.
Embodiment carries out rasterizing with map datum to be handled, and the grid length of side is 2mm.
Step 5, to establish certain mark diagrammatic representation be A, will mark figure A and other and mark figure and carry out the space collision detection;
If mark figure A exists gland to conflict with other mark figures; If the mark diagrammatic representation that exists gland to conflict with mark figure A is B; Then will mark the shared trellis states could of figure A and B and be labeled as and use, the status indication of mark figure A is for having conflict, entering step 7;
If mark figure A does not exist gland to conflict with other mark figures, then will mark the shared trellis states could of figure A and be labeled as and use, the status indication of mark figure A does not conflict for having, entering step 6.
Mark figure A possibly exist gland to conflict with other mark figures more than, if there is conflict, then marks figure A and exists the shared trellis states could of mark figure of conflict all to be labeled as with these to use.Embodiment schemes the mark figure of layer with reservoir and embankment responsible official, detects with grid cell, if when grid cell is only taken by a mark figure, trellis states could is labeled as uses, and mark figure A condition is labeled as does not have conflict; If grid cell is taken by plural mark figure simultaneously, then trellis states could is labeled as and uses, and mark figure A condition has been labeled as conflict.
Step 6, will mark the figure layer that figure A and its can not gland and detect; If mark figure A gland its can not gland the figure layer; The state that then will mark figure A has been labeled as conflict, otherwise the state that will mark figure A is labeled as and do not have conflict, gets into step 7 then.
Embodiment is conflict free mark figure with flag state, scheme layer with point-like resident map layer, reservoir and embankment responsible official and carry out the collision detection of figure gland, if mark figure gland its can not gland the figure layer, then it has been labeled as conflict.
Step 7, if the state of mark figure A for there not being conflict, gets into step 8;
If the state of mark figure A is for there being conflict, based on the mark range data, establishment marks suitable district, in mark suits to distinguish, gets rid of to be labeled as the grid that has used; Change marks the labeling position of figure A in the suitable district of mark, turns back to step 5 then and begins to repeat step 5-7, does not conflict for having until the state of judging mark figure A in step 7.
The mode of establishing the suitable district of mark is consistent with step 2.Because position of change; And carry out step 5-7 one time; Possible testing result is that mark figure A does not still reach no conflict situation, and embodiment sets the rule of change labeling position when at every turn being recycled to step 7, according to from right to left, the change of order from top to bottom labeling position.During practical implementation, also can adopt from left to right, wait from top to bottom other orders.
Step 8, to next mark figure execution in step 5-7, until states of all mark figures for there not being conflict.
Technical scheme provided by the present invention can adopt computer software technology specifically to realize; Embodiment adopts C# to write; Has above completion function; Interface variables comprises: and the suitable district of geodata figure layer to be marked, map note property mark (promptly marking range data), the rasterizing grid length of side (be generally the font size size of mark, too small automatic processing accuracy height but speed is fast, excessive automatic processing accuracy is little but speed is fast).
The above only is in order to practical implementation case of the present invention to be described; But be not in order to limit practical range of the present invention; Such as those skilled in the art must be covered by the scope of claim of the present invention not breaking away from all equivalence changes of being accomplished under indicated spirit of the present invention and the principle or modifying.

Claims (3)

1. the map note property mark method of automatic configuration under the digital environment is characterized in that: may further comprise the steps,
Step 1, input geodata, geodata figure layer to be marked and mark range data are to the expression of charting of geodata and geodata figure layer to be marked;
Step 2, the geodata figure layer of treating mark generate the mark figure; When generating the mark figure, establish the suitable district of mark with reference to the mark range data, the mark figure behind the mark is positioned at the suitable district of mark;
Said mark range data is planar data, and the suitable district of mark establishes in the outside of this planar data representative regional extent;
Step 3, to the mark figure behind the mark, establish the figure layer that mark can not gland;
Step 4, will carry out rasterizing and handle at the step 1 geodata figure layer after expressing that charted, the unit of rasterizing be square, and the length of side of the grid font size that equals to mark, and all trellis states could behind the rasterizing are set to not use;
Step 5, to establish certain mark diagrammatic representation be A, will mark figure A and other and mark figure and carry out the space collision detection;
If mark figure A exists gland to conflict with other mark figures; If the mark diagrammatic representation that exists gland to conflict with mark figure A is B; Then will mark the shared trellis states could of figure A and B and be labeled as and use, the status indication of mark figure A is for having conflict, entering step 7;
If mark figure A does not exist gland to conflict with other mark figures, then will mark the shared trellis states could of figure A and be labeled as and use, the status indication of mark figure A does not conflict for having, entering step 6;
Step 6, will mark the figure layer that figure A and its can not gland and detect; If mark figure A gland its can not gland the figure layer; The state that then will mark figure A has been labeled as conflict, otherwise the state that will mark figure A is labeled as and do not have conflict, gets into step 7 then;
Step 7, if the state of mark figure A for there not being conflict, gets into step 8;
If the state of mark figure A is for there being conflict, based on the mark range data, establishment marks suitable district, in mark suits to distinguish, gets rid of to be labeled as the grid that has used; Change marks the labeling position of figure A in the suitable district of mark, turns back to step 5 then and begins to repeat step 5-7, does not conflict for having until the state of judging mark figure A in step 7;
Said mark range data is planar data, and the suitable district of mark establishes in the outside of this planar data representative regional extent;
Step 8, to next mark figure execution in step 5-7, until states of all mark figures for there not being conflict.
2. according to the said map note property of claim 1 mark method of automatic configuration; It is characterized in that: when step 2 generates the mark figure and/or after step 8; The selection of map label pattern is provided, comprises field separator, the mark and the connected mode, the color of mark, the background colour of mark, the font of mark and the font size of mark that mark corresponding geodata of selecting mark.
3. according to claim 1 or 2 said map note property mark method of automatic configuration; It is characterized in that: in the step 7; When the state of mark figure A when conflict is arranged, in the suitable district of mark, change the labeling position that marks figure A, be according to from right to left, order from top to bottom changes one by one.
CN201110063554A 2011-03-17 2011-03-17 Automatic configuration method for annotation label of map under digital environment Expired - Fee Related CN102157003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110063554A CN102157003B (en) 2011-03-17 2011-03-17 Automatic configuration method for annotation label of map under digital environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110063554A CN102157003B (en) 2011-03-17 2011-03-17 Automatic configuration method for annotation label of map under digital environment

Publications (2)

Publication Number Publication Date
CN102157003A CN102157003A (en) 2011-08-17
CN102157003B true CN102157003B (en) 2012-09-05

Family

ID=44438482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110063554A Expired - Fee Related CN102157003B (en) 2011-03-17 2011-03-17 Automatic configuration method for annotation label of map under digital environment

Country Status (1)

Country Link
CN (1) CN102157003B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289991B (en) * 2011-09-05 2012-12-05 武汉大学 Visual-variable-based automatic classification and configuration method of map lettering
CN103914334B (en) * 2012-12-31 2017-06-20 北京百度网讯科技有限公司 The mask method and system of map
CN104280035B (en) * 2013-07-08 2018-10-16 厦门雅迅网络股份有限公司 The method for eliminating interest point in electronic map label gland road
CN103440322A (en) * 2013-08-30 2013-12-11 天津市测绘院 Method for quick extracting geographic information data
CN103942338A (en) * 2014-05-08 2014-07-23 百度在线网络技术(北京)有限公司 Mapping method, server and terminal
US10290137B2 (en) * 2017-01-31 2019-05-14 Saudi Arabian Oil Company Auto-generation of map landmarks using sensor readable tags
CN110634381A (en) * 2018-06-25 2019-12-31 百度在线网络技术(北京)有限公司 Method and device for determining labeling style
CN110738714B (en) * 2019-10-15 2023-07-04 电子科技大学 Mechanical drawing bubble position quick searching method based on priori knowledge
CN110853016A (en) * 2019-11-12 2020-02-28 西安中科星图空间数据技术有限公司 Automatic checking method and device for topographic map publishing quality

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183461A (en) * 2007-11-16 2008-05-21 武汉大学 Face-shaped element configuring method in computer graphics
CN101739497A (en) * 2009-12-31 2010-06-16 广州中船黄埔造船有限公司 Method for automatically computing figure labeling position
CN101901494A (en) * 2010-07-23 2010-12-01 中国科学院计算技术研究所 Method and system for automatically realizing map lettering

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183461A (en) * 2007-11-16 2008-05-21 武汉大学 Face-shaped element configuring method in computer graphics
CN101739497A (en) * 2009-12-31 2010-06-16 广州中船黄埔造船有限公司 Method for automatically computing figure labeling position
CN101901494A (en) * 2010-07-23 2010-12-01 中国科学院计算技术研究所 Method and system for automatically realizing map lettering

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
YANG Yong et al.Cartographic Label Placing Based on Tabu Search Heuristic.《Proceedings of SPIE》.2006,第6420卷第3.1节第1段及图1. *
朱正国 等.地图中面状要素标注算法的设计与改进.《西华大学学报(自然科学版)》.2009,第28卷(第2期),全文. *
耿留勇.地图注记自动配置的研究及其在AUTOCAD地图制图中的应用.《中国优秀硕士学位论文全文数据库 基础科学辑》.2007,(第6期),第23页最后一段. *

Also Published As

Publication number Publication date
CN102157003A (en) 2011-08-17

Similar Documents

Publication Publication Date Title
CN102157003B (en) Automatic configuration method for annotation label of map under digital environment
CN102136218B (en) Automatic collocation method for map lettering during map making through computer
CN103366633B (en) Water conservation map data model-based flood risk map drawing method and system thereof
CN102509511B (en) Rapid map making system based on GIS (Geographic Information System) data
CN103500296A (en) Inlaying method and device of digital watermarks in text documents
CN101901494B (en) Method and system for automatically realizing map lettering
CN106204684A (en) A kind of marine thematic map automatization preparation method of task based access control stream
CN102509510B (en) Interactive automatically updating method for legend content of electronic map
CN101430714B (en) Content structuring process method and system based on model
CN104063380A (en) Method and device for converting picture files into webpage files
CN102467519B (en) Visualization plotting method and system based on geographic information system
US8804139B1 (en) Method and system for repurposing a presentation document to save paper and ink
CN110070087A (en) Image identification method and device
CN102591612A (en) General webpage text extraction method based on punctuation continuity and system thereof
CN108806474A (en) It is a kind of based on adaptive scale measuring and calculating sheet line system go out drawing method and system
CN102509314A (en) Quick generating method for sunlight greenhouse construction drawing
CN101017479A (en) Method for automatically identifying digital document type page
CN101625712A (en) Computer plotting system and computer plotting method for making signssigns
CN105868392A (en) Method for lossless conversion and storage of massive complex planning data based on MicroStation
CN101593456B (en) Quick self-adaptive layout method for map legend
CN108182272B (en) Method for making Chinese environment risk graph based on average area concept
CN104516919A (en) Quoting annotation processing method and system
CN102314798A (en) Method and device for automatically simplifying shape points of polygonal surface elements of electronic map
CN101739497A (en) Method for automatically computing figure labeling position
CN113436298B (en) Method and device for automatically generating Chinese character stroke order animation and related components thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120905

Termination date: 20180317