CN104317567B - The method that batch drawing is realized by computer operation map element - Google Patents

The method that batch drawing is realized by computer operation map element Download PDF

Info

Publication number
CN104317567B
CN104317567B CN201410508571.6A CN201410508571A CN104317567B CN 104317567 B CN104317567 B CN 104317567B CN 201410508571 A CN201410508571 A CN 201410508571A CN 104317567 B CN104317567 B CN 104317567B
Authority
CN
China
Prior art keywords
picture frame
map
stage
current page
arcmap
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.)
Active
Application number
CN201410508571.6A
Other languages
Chinese (zh)
Other versions
CN104317567A (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.)
NANJING GUOTU INFORMATION INDUSTRY Co Ltd
Original Assignee
NANJING GUOTU INFORMATION INDUSTRY 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 NANJING GUOTU INFORMATION INDUSTRY Co Ltd filed Critical NANJING GUOTU INFORMATION INDUSTRY Co Ltd
Priority to CN201410508571.6A priority Critical patent/CN104317567B/en
Publication of CN104317567A publication Critical patent/CN104317567A/en
Application granted granted Critical
Publication of CN104317567B publication Critical patent/CN104317567B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A kind of method that batch drawing is realized by computer operation map element, sequentially passes through pretreatment stage, application factor kind B stage, preserves each figure layer and define stages of content of text of querying attributes, the setting stage of current page, in the stage for changing picture frame size, moving map order of element section, change each figure layer and define inquiry phase and memory phase.Such method can be prevented effectively from the very low defect so as to adapt to the efficient requirement of electronics industry of formation efficiency of electronic map of the prior art.

Description

The method that batch drawing is realized by computer operation map element
Technical field
The invention belongs to the technical field of electronic map, and in particular to a kind of realized by computer operation map element is criticized The method for measuring drawing.
Background technology
The manufacturing process of existing electronic map be often interpolation data into the region of blank, then data are accorded with Number change expression rendered with the picture for carrying out electronic map, then carry out drawing ornamenting, finally obtain the finished product of electronic map, still The making of existing electronic map be usually not easy to be uniformly processed and can only be piecemeal be fabricated separately, thus bring electronics The formation efficiency of map is very low, it is impossible to adapt to the efficient requirement of electronics industry.
The content of the invention
It is an object of the invention to provide a kind of method that batch drawing is realized by computer operation map element, sequentially pass through Pretreatment stage, application factor kind B stage, preserve each figure layer and define stages of content of text of querying attributes, current page Setting stage, the stage for changing picture frame size, moving map order of element section, each figure layer of modification define inquiry phase and storage rank Section.The formation efficiency that such method can be prevented effectively from electronic map of the prior art is very low so that electronics work can not be adapted to The defect of the efficient requirement of industry.
In order to overcome deficiency of the prior art, realized and criticized by computer operation map element the invention provides one kind The solution of the method for drawing is measured, it is specific as follows:
A kind of method that batch drawing is realized by computer operation map element, step is as follows:
Step 1:Pretreatment stage, described pretreatment stage is made in batches to be provided with a computer first for realizing The module of figure, ArcMap map file A and the ArcGIS individual databases of pre-production;In described ArcGIS individual databases Include the mark for representing every width figure, legend relative to picture frame position, compass relative to picture frame position, width of frame, picture frame Highly, part figure layer is included in the map title, map file name and the sign for replacement, described ArcMap map files A Define non-spatial attributes as the character string of a part of character string in querying attributes and represent the space category of picture frame scope The factor kind B of property, described factor kind B non-spatial attributes include every width map logo, legend relative to picture frame position, refer to north Pin is relative to picture frame position, width of frame, picture frame height, the map title, map file name and mark for replacement, the part The every width map logo of expression in a part of character string, legend in the definition querying attributes of figure layer relative to picture frame position, refer to north Character string of the pin relative to picture frame position, width of frame, picture frame height, the map title, map file name and mark for replacement B.ID, B.LG, B.NA, B.FW, B.FH, B.TT, B.FN and B.DQ are designated as respectively;
Step 2:Application factor kind B stage, described application factor kind B stage is to be charted in batches by using to realize Module open in ArcMap map files A, described ArcMap map files A and be preloaded with factor kind B as ground One figure layer of figure, and set factor kind B as index figure layer, it is applied in the setting of the data-driven page of map, in addition Include other figure layers in ArcMap map files A, and pre-set legend, compass and the map title such ground pel Element, the refresh data driving page;
Step 3:Preserve the stage that each figure layer defines the content of text of querying attributes, each figure layer definition inquiry of described preservation The stage of the content of text of attribute is that the content of text that each figure layer in ArcMap map files A is defined into querying attributes is stored in one In individual character string dimension C;
Step 4:The setting stage of current page, the setting stage of described current page is if step 3 is to be held for the first time OK, it is first page to set current page, and the lower one page for otherwise setting current page is new current page;
Step 5:Change the stage of picture frame size, the stage of described modification picture frame size, current page is corresponding to be wanted to obtain The value of B.FW and B.FH in plain class B, according to B.FW and B.FH value, change the size of the picture frame in ArcMap map files, Ensure that picture frame lower-left Angle Position is constant, and make picture frame it is wide and high respectively equal to B.FW and B.FH respectively plus a constant and to On be rounded on figure the value after 1cm, while mobile picture frame indication range, enables figure corresponding with current page in factor kind B Be shown centered on in picture frame;
Step 6:Moving map order of element section, the stage of the described mobile map title is according to the corresponding B.LG's of current page Value, legend is moved to the lower left corner or the lower right corner of picture frame, according to the corresponding B.NA of current page value, compass is moved into figure The upper left corner or the upper right corner of frame, according to the corresponding B.TT of current page value, change the content of text of the map title, the map title are moved into figure Constant distance above outer frame, and relative to picture frame left and right directions centered position, mobile footnote text point makes it right with picture frame End alignment, moving ratio chi position makes it placed in the middle relative in picture frame left and right directions;
Step 7:Change each figure layer and define inquiry phase, the described substitute character string stage is one by one with character string dimension C In each member be former character string, it is corresponding as substring to be replaced, with B.DQ value using a constant character string Character string is the substring after replacing, and is replaced operation, the character string after replacement is respectively as in ArcMap map files A The value for defining querying attributes of each figure layer newly;
Step 8:Memory phase, described memory phase is that separately to deposit current ArcMap map files be lowest version ArcGIS 9.3 copy D, because the file of lowest version does not support the setting of the data-driven page, so lowest version ArcGIS 9.3 pair The related setting of current page is only preserved in this D, if current page is last page, algorithm terminates;Otherwise return and perform step 3。
By these technical characteristics, generation method formation efficiency of the invention is high, can really realize batch production.
Brief description of the drawings
Fig. 1 is a kind of Mass production system flow schematic diagram of electronic cartography of the present invention.
Fig. 2 is the effect diagram of the embodiment of the present invention.
Embodiment
The purpose of the present invention is that efficient a kind of realized by computer operation map element for developing automation is made in batches The method of figure, is further detailed by drawings and examples:
As depicted in figs. 1 and 2, the method that batch drawing is realized by computer operation map element, step is as follows:
Step 1:Pretreatment stage, described pretreatment stage is made in batches to be provided with a computer first for realizing The module of figure, ArcMap map file A and the ArcGIS individual databases of pre-production;In described ArcGIS individual databases Include the mark for representing every width figure, legend relative to picture frame position, compass relative to picture frame position, width of frame, picture frame Highly, part figure layer is included in the map title, map file name and the sign for replacement, described ArcMap map files A Define non-spatial attributes as the character string of a part of character string in querying attributes and represent the space category of picture frame scope The factor kind B of property, described factor kind B non-spatial attributes include every width map logo, legend relative to picture frame position, refer to north Pin is relative to picture frame position, width of frame, picture frame height, the map title, map file name and mark for replacement, the part The every width map logo of expression in a part of character string, legend in the definition querying attributes of figure layer relative to picture frame position, refer to north Character string of the pin relative to picture frame position, width of frame, picture frame height, the map title, map file name and mark for replacement B.ID, B.LG, B.NA, B.FW, B.FH, B.TT, B.FN and B.DQ are designated as respectively;
Step 2:Application factor kind B stage, described application factor kind B stage is to be charted in batches by using to realize Module open in ArcMap map files A, described ArcMap map files A and be preloaded with factor kind B as ground One figure layer of figure, and set factor kind B as index figure layer, it is applied in the setting of the data-driven page of map, in addition Include other figure layers in ArcMap map files A, and pre-set legend, compass and the map title such ground pel Element, the refresh data driving page;
Step 3:Preserve the stage that each figure layer defines the content of text of querying attributes, each figure layer definition inquiry of described preservation The stage of the content of text of attribute is that the content of text that each figure layer in ArcMap map files A is defined into querying attributes is stored in one In individual character string dimension C;
Step 4:The setting stage of current page, the setting stage of described current page is if step 3 is to be held for the first time OK, it is first page to set current page, and the lower one page for otherwise setting current page is new current page;
Step 5:Change the stage of picture frame size, the stage of described modification picture frame size, current page is corresponding to be wanted to obtain The value of B.FW and B.FH in plain class B, according to B.FW and B.FH value, change the size of the picture frame in ArcMap map files, Ensure that picture frame lower-left Angle Position is constant, and make picture frame it is wide and high respectively equal to B.FW and B.FH respectively plus a constant and to On be rounded on figure the value after 1cm, while mobile picture frame indication range, enables figure corresponding with current page in factor kind B Be shown centered on in picture frame;
Step 6:Moving map order of element section, the stage of the described mobile map title is according to the corresponding B.LG's of current page Value, legend is moved to the lower left corner or the lower right corner of picture frame, according to the corresponding B.NA of current page value, compass is moved into figure The upper left corner or the upper right corner of frame, according to the corresponding B.TT of current page value, change the content of text of the map title, the map title are moved into figure Constant distance above outer frame, and relative to picture frame left and right directions centered position, mobile footnote text point makes it right with picture frame End alignment, moving ratio chi position makes it placed in the middle relative in picture frame left and right directions;
Step 7:Change each figure layer and define inquiry phase, the described substitute character string stage is one by one with character string dimension C In each member be former character string, it is corresponding as substring to be replaced, with B.DQ value using a constant character string Character string is the substring after replacing, and is replaced operation, the character string after replacement is respectively as in ArcMap map files A The value for defining querying attributes of each figure layer newly;
Step 8:Memory phase, described memory phase is that separately to deposit current ArcMap map files be lowest version ArcGIS 9.3 copy D, because the file of lowest version does not support the setting of the data-driven page, so lowest version ArcGIS 9.3 pair The related setting of current page is only preserved in this D, if current page is last page, algorithm terminates;Otherwise return and perform step 3。
The above described is only a preferred embodiment of the present invention, any formal limitation not is made to the present invention, though So the present invention is disclosed above with preferred embodiment, but is not limited to the present invention, any to be familiar with this professional technology people Member, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modification For the equivalent embodiment of equivalent variations, as long as be without departing from technical solution of the present invention content, according to the technical spirit of the present invention, Within the spirit and principles in the present invention, any simple modification, equivalent substitution and improvement for being made to above example etc., still Belong within the protection domain of technical solution of the present invention.

Claims (1)

1. a kind of method that batch drawing is realized by computer operation map element, it is characterised in that step is as follows:
Step 1:Pretreatment stage, described pretreatment stage is to be provided with a computer first for realizing batch drawing Module, ArcMap map file A and the ArcGIS individual databases of pre-production;Included in described ArcGIS individual databases Have the mark for representing every width figure, legend relative to picture frame position, compass relative to picture frame position, width of frame, picture frame height, The definition for including part figure layer in the map title, map file name and the sign for replacement, described ArcMap map files A is looked into Ask non-spatial attributes as the character string of a part of character string in attribute and represent wanting for the space attribute of picture frame scope It is relative relative to picture frame position, compass that plain class B, described factor kind B non-spatial attributes include every width map logo, legend In picture frame position, width of frame, picture frame height, the map title, map file name and mark for replacement, described factor kind B Non-spatial attributes to include every width map logo, legend wide relative to picture frame position, picture frame relative to picture frame position, compass Degree, picture frame height, the map title, map file name and for the mark of replacement character string be designated as respectively B.ID, B.LG, B.NA, B.FW, B.FH, B.TT, B.FN and B.DQ;
Step 2:Application factor kind B stage, described application factor kind B stage is by using realizing the mould of batch drawing Block is opened in ArcMap map files A, described ArcMap map files A and has been preloaded with factor kind B as map One figure layer, and set factor kind B as index figure layer, it is applied in the setting of the data-driven page of map, in addition Include other figure layers in ArcMap map files A, and pre-set legend, compass and the map title such ground pel Element, the refresh data driving page;
Step 3:The stage that each figure layer defines the content of text of querying attributes is preserved, each figure layer of described preservation defines querying attributes Content of text stage be each figure layer in ArcMap map files A is defined into querying attributes content of text be stored in a word In symbol string array C;
Step 4:The setting stage of current page, the setting stage of described current page be if step 3 be for the first time be performed, if Current page is put for first page, the lower one page for otherwise setting current page is new current page;
Step 5:Change the stage of picture frame size, the stage of described modification picture frame size is the corresponding factor kind of acquisition current page The value of B.FW and B.FH in B, according to B.FW and B.FH value, change the size of the picture frame in ArcMap map files, it is ensured that Picture frame lower-left Angle Position is constant, and the wide and high respectively equal to B.FW and B.FH of picture frame is added a constant respectively and is taken upwards Value after the whole upper 1cm to figure, while mobile picture frame indication range, enables figure corresponding with current page in factor kind B placed in the middle In display and picture frame;
Step 6:Moving map order of element section, the stage of the mobile map title is the value according to the corresponding B.LG of current page, by legend The lower left corner or the lower right corner of picture frame are moved to, according to the corresponding B.NA of current page value, compass is moved to the upper left of picture frame Angle or the upper right corner, according to the corresponding B.TT of current page value, change the content of text of the map title, and the map title is moved into top outside picture frame Constant distance, and relative to picture frame left and right directions centered position, mobile footnote text point makes itself and picture frame right alignment, Moving ratio chi position, makes it placed in the middle relative in picture frame left and right directions;
Step 7:Change each figure layer and define inquiry phase, the substitute character string stage for one by one with character string dimension C it is each into Member be former character string, take a constant character string as substring to be replaced, using the corresponding character string of B.DQ value as Substring after changing, is replaced operation, and the character string after replacement is respectively as each figure layer in ArcMap map files A new Define the value of querying attributes;
Step 8:Memory phase, described memory phase is that separately to deposit current ArcMap map files be lowest version ArcGIS9.3 Copy D, because the file of lowest version does not support the setting of the data-driven page, so lowest version ArcGIS 9.3 copy D In only preserve the related setting of current page, if current page is last page, algorithm terminates;Otherwise return and perform step 3.
CN201410508571.6A 2014-09-28 2014-09-28 The method that batch drawing is realized by computer operation map element Active CN104317567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410508571.6A CN104317567B (en) 2014-09-28 2014-09-28 The method that batch drawing is realized by computer operation map element

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410508571.6A CN104317567B (en) 2014-09-28 2014-09-28 The method that batch drawing is realized by computer operation map element

Publications (2)

Publication Number Publication Date
CN104317567A CN104317567A (en) 2015-01-28
CN104317567B true CN104317567B (en) 2017-08-01

Family

ID=52372802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410508571.6A Active CN104317567B (en) 2014-09-28 2014-09-28 The method that batch drawing is realized by computer operation map element

Country Status (1)

Country Link
CN (1) CN104317567B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104599295A (en) * 2015-02-28 2015-05-06 南京国图信息产业股份有限公司 Method of constructing adjusting scale and north arrow in electronic map through computer
CN110427036A (en) * 2019-08-14 2019-11-08 成都普诺思博科技有限公司 A kind of cloud management system of commercialization clean robot

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582068A (en) * 2008-05-14 2009-11-18 北京灵图软件技术有限公司 Method and system for organizing geographic data
CN102999573A (en) * 2012-11-09 2013-03-27 中国铁道科学研究院电子计算技术研究所 Cache updating method for stripped GIS (Geographic Information System) map elements
CN103955909A (en) * 2014-05-09 2014-07-30 北京交通大学 Method and system for manufacturing thematic map by fusing images based on MapGISK9

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582068A (en) * 2008-05-14 2009-11-18 北京灵图软件技术有限公司 Method and system for organizing geographic data
CN102999573A (en) * 2012-11-09 2013-03-27 中国铁道科学研究院电子计算技术研究所 Cache updating method for stripped GIS (Geographic Information System) map elements
CN103955909A (en) * 2014-05-09 2014-07-30 北京交通大学 Method and system for manufacturing thematic map by fusing images based on MapGISK9

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"系列地图批处理自动成图解决方案-以勘察地球化学系列图为例";陈志军 等;《地质学刊》;20130928;第37卷(第3期);第457页第2栏第3段-第458页第1栏第2段,第459页第2栏最后1段-第463页第2栏第3段 *

Also Published As

Publication number Publication date
CN104317567A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
US10290128B2 (en) Interactive scene graph manipulation for visualization authoring
CN111428457B (en) Automatic formatting of data tables
JP2011523133A (en) Layout file structure processing method and apparatus
CN103838933A (en) Three-dimensional model integrating and labeling method based on digital technology
US9582615B2 (en) Modeling using thin plate spline technology
CN103823839A (en) AutoCAD symbol configuration showing method based on gallery integration
CN105335445A (en) Layout display method and device
US20150074519A1 (en) Method and apparatus of controlling page element
CN104317567B (en) The method that batch drawing is realized by computer operation map element
CN102509510A (en) Interactive automatically updating method for legend content of electronic map
CN104679453A (en) Information input, storage, typesetting and printing general system and information input, storage, typesetting and printing method
CN116630468A (en) Two-dimensional drawing generation method and device, storage medium and electronic equipment
CN109086515B (en) Modeling method for primary equipment drawing information in SSD (solid State drive) of intelligent substation based on SVG (scalable vector graphics)
US9098559B2 (en) Optimized visualization and analysis of tabular and multidimensional data
Martins IPython notebook essentials
CN103942819A (en) Method and device for drawing geologic symbols
CN104268191A (en) Document display method and device
CN116772821A (en) Map generation method, map generation device, computer equipment and storage medium
CN102768655A (en) JAVA-based display method of Mongolian
Istas et al. On locally self-similar fractional random fields indexed by a manifold
Huang et al. A matrix-based structure for vario-scale vector representation over a wide range of map scales: The case of river network data
CN114327395A (en) Webpage design method, device, computer equipment, storage medium and product
CN107918648A (en) A kind of foundation of planar design template library and template lookup method
Raschka Instant heat maps in R: how-to
US20240153170A1 (en) Managing multiple datasets for data bound objects

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant