CN104794236A - Map making rule construction and structured organization method and system thereof - Google Patents

Map making rule construction and structured organization method and system thereof Download PDF

Info

Publication number
CN104794236A
CN104794236A CN201510229676.2A CN201510229676A CN104794236A CN 104794236 A CN104794236 A CN 104794236A CN 201510229676 A CN201510229676 A CN 201510229676A CN 104794236 A CN104794236 A CN 104794236A
Authority
CN
China
Prior art keywords
cartographic
node
layer
tree
module
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.)
Granted
Application number
CN201510229676.2A
Other languages
Chinese (zh)
Other versions
CN104794236B (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.)
Chinese Academy of Surveying and Mapping
Original Assignee
Chinese Academy of Surveying and Mapping
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 Chinese Academy of Surveying and Mapping filed Critical Chinese Academy of Surveying and Mapping
Priority to CN201510229676.2A priority Critical patent/CN104794236B/en
Publication of CN104794236A publication Critical patent/CN104794236A/en
Application granted granted Critical
Publication of CN104794236B publication Critical patent/CN104794236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a map making rule construction and a structured organization method and system thereof. Map making rules are determined; map making data are obtained and categories of the map making data are determined; the map making rules are formed to be of xml structures to store according to the categories of the map making data; the map making rules are analyzed according to the categories of the map making data during making a map; the analyzed map making rules are acted on the map making data to be matched with map making results; the map making results are output. By means of the method, a mix tree map to form model which is good in expansibility and loose-coupling is constructed, the whole is a tree, and the local is a map. Logical independence between map making processes and map making rules is achieved. A good-generality and obvious-interactivity map making process is showed for users, the strong-speciality map making rules are showed for professional staff, the professional map making rules are obtained by ordinary users through chains, the map making efficiency is improved, map making is popularized, the automation degree of the map making is improved, and the field of map using is expanded.

Description

A kind of map making rule builds and structured organization method and system
Technical field
The present invention relates to the method for display map data and map making, particularly relate to a kind of map making rule and build and structured organization method and system.
Background technology
Map is according to specific Mathematical rule, by the geography information (spontaneous phenomenon and socioeconomic phenomenon) on object (earth or other celestial bodies), by the summary of science, and use notation to represent the graph image in certain carrier zones, to show their quantity, the regularity of distribution of quality in the time and space and development and change, map is widely used in the numerous areas such as productive life, national economy and national defence scientific research.Map making is exactly the scientific and technical Method and Process of research map composition and seal carving.Current relative technological products both domestic and external such as ArcGIS, MapInfo, SuperMap, EC founder etc. have carried out certain accumulation and research in map visualization and map making, but current visual and chart generally Process-Oriented, design according to expert system: namely user (operator) is according to certain map making object, based on expertise and knowledge, the method for manual intervention is adopted to carry out.But often occur following not enough in actual map visualization and drawing course: 1) domestic consumer (amateur draftsman) lacks professional knowledge, cartographic representation uses appropriate not, and draught smanship can not satisfy the demands; 2) drawing course is loaded down with trivial details, can not meet the needs of emergent rapid drafting.3) more need figure again after new data, drawing efficiency is low.
For above problem, at present in map visualization and map making field, existing Patents has made contribution.Such as " a kind of knowledge for coping with emergencies storehouse maintenance system based on geographical information technology and implementation method " (application number: 201310618601.4) disclose a knowledge for coping with emergencies storehouse maintenance system based on GIS and related key technical thereof; " a kind of based on the drawing knowledge architecture of cartographic symbol and the method for Formal Representation " (application number: 201410140266.6) disclose a kind of based on the drawing knowledge architecture of cartographic symbol and the method for Formal Representation thereof; " a kind of electronic mapping method based on Fundamental Geographic Information Data " (application number: 201410059552.X) discloses a kind of electronic mapping method based on Fundamental Geographic Information Data; " mountain region disaster and danger zone mapping method " (application number: 200810118221.3) disclose a kind of mountain region disaster and danger zone mapping method; " system and method for editing cartographic data " (application number: 200880120814.1) describe the system for editing and show cartographic data, method and computer program product." method that a kind of remote sensing image batch integrated with vector data charts " (application number: 201310003015.9) disclose the method etc. that a kind of remote sensing image batch integrated with vector data charts.
But the relevant drafting method proposed in above patent and system, lay particular emphasis on analysis and the conclusion of knowledge rule, lack clear and definite map drawing course especially map making rule structure construction, storage and perform expression.
Summary of the invention
(1) technical matters that will solve how to build map making process and map making rule.
(2) technical scheme
An object of the present invention proposes a kind of map making rule to build and structured organization method; Two of object of the present invention proposes a kind of map making rule to build and structured organizational system.
An object of the present invention is achieved through the following technical solutions:
A kind of map making rule provided by the invention builds and structured organization method, comprises the following steps:
Step 1: build cartographic convention;
Step 2: obtain cartographic data and determine cartographic data classification;
Step 3: cartographic convention is formed xml structured storage according to cartographic data classification;
Step 4: resolve cartographic convention according to cartographic data classification;
Step 5: the cartographic convention parsed is acted on cartographic data and carry out coupling formation charting results;
Step 6: charting results is exported.
Further, the formation of the cartographic convention in described step 1 specifically comprises the following steps:
Step 1.1: build map making rule successively according to tree layer order;
Step 1.2: tree rules figure is built to each map making rule;
Step 1.3: each tree rules figure is formed structuring xml son file;
Step 1.4: successively xml son file and tree rules figure are carried out pass chain according to tree layer order, form local digraph structure;
Step 1.5: until complete the structure of whole cartographic convention tree.
Further, described cartographic convention adopts tree graph structure, and described tree graph structure comprises some leaf nodes, and each leaf node comprises attribute node Sum fanction node;
Described attribute node adopts tree structure, and described regular node adopts digraph structure, and described regular node is as the leaf node in tree structure;
Described regular node adopts the chained list being provided with primary key to carry out pass chain;
Described regular node comprises root regular node and sub-rule node, and described regular node forms a cartographic convention to each paths of sub-rule node, and described cartographic convention adopts structured storage.
Further, described tree rules figure comprises drawing scheme attribute node and drawing decision organization node, and described drawing scheme attribute node comprises Property Name, attribute description, page layout, output device; Described drawing decision organization node comprises some figure node layers; Described figure node layer comprises layer properties node and layer type node; Described layer properties node comprises layer title, layer display order, mark field, data source; Described layer type node comprises VectorLayer class, image layer class and raster map layer class;
Described VectorLayer class is for defining cartographic convention subtree figure corresponding to VectorLayer;
Described image layer class is for defining cartographic convention subtree figure corresponding to image layer;
Described raster map layer class is for defining cartographic convention subtree figure corresponding to raster map layer.
Further, described page layout comprises page size, drawing explanation, cartographic unit's explanation, the explanation of drawing time, engineer's scale pattern, north arrow pattern, frame, background color.
Further, the classification of the cartographic data in described step 2 is determined according to the following steps:
Step 2.1: judge whether current cartographic data is free hand drawing layer, if so, then enters step 3;
Step 2.2: if not, then judge the layer coordinate of cartographic data and Fundamentals of Mathematics whether consistent, if so, then enter step 3;
Step 2.3: if not, then carry out the conversion of coordinate consistance to layer coordinate;
Step 2.4: judge that whether the conversion of coordinate consistance is successful, if so, then enter step 3;
Step 2.5: if not, then exit.
Two of object of the present invention is achieved through the following technical solutions:
A kind of map making rule provided by the invention builds and structured organizational system, comprises cartographic convention and builds module, cartographic data acquisition module, cartographic convention structured storage module, cartographic convention parsing module, cartographic data matching module and charting results output module;
Described cartographic convention builds module, for determining cartographic convention;
Described cartographic data acquisition module, for obtaining cartographic data and determining cartographic data classification;
Described cartographic convention structured storage module, for forming xml structured storage according to cartographic data classification by cartographic convention;
Described cartographic convention parsing module, for resolving cartographic convention according to cartographic data classification;
Described cartographic data matching module, carries out coupling formation charting results for the cartographic convention parsed being acted on cartographic data;
Described charting results output module, for exporting charting results.
Further, described cartographic convention structure module comprises map making tree layer rule structure module, tree rules figure builds module, structuring xml son file forms module, locally digraph structure construction module and overall cartographic convention tree build module;
Described map making tree layer rule builds module, for building map making rule successively according to tree layer order;
Described tree rules figure builds module, for building tree rules figure to each map making rule;
Described structuring xml son file forms module, for each tree rules figure is formed structuring xml son file;
Described local digraph structure construction module, for successively xml son file and tree rules figure being carried out pass chain according to tree layer order, forms local digraph structure;
Described overall cartographic convention tree builds module, for completing the structure of whole cartographic convention tree;
Described cartographic convention adopts tree graph structure, and described tree graph structure comprises some leaf nodes, and each leaf node comprises attribute node Sum fanction node;
Described attribute node adopts tree structure, and described regular node adopts digraph structure, and described regular node is as the leaf node in tree structure;
Described regular node adopts the chained list being provided with primary key to carry out pass chain;
Described regular node comprises root regular node and sub-rule node, and described regular node forms a cartographic convention to each paths of sub-rule node, and described cartographic convention adopts structured storage.
Further, described tree rules figure comprises drawing scheme attribute node and drawing decision organization node, and described drawing scheme attribute node comprises Property Name, attribute description, page layout, output device; Described drawing decision organization node comprises some figure node layers; Described figure node layer comprises layer properties node and layer type node; Described layer properties node comprises layer title, layer display order, mark field, data source; Described layer type node comprises VectorLayer class, image layer class and raster map layer class;
Described VectorLayer class is for defining cartographic convention subtree figure corresponding to VectorLayer;
Described image layer class is for defining cartographic convention subtree figure corresponding to image layer;
Described raster map layer class is for defining cartographic convention subtree figure corresponding to raster map layer;
Described page layout comprises page size, drawing explanation, cartographic unit's explanation, the explanation of drawing time, engineer's scale pattern, north arrow pattern, frame, background color.
Further, described cartographic data acquisition module comprises free hand drawing layer judge module, layer consistance judge module, coordinate consistance modular converter and coordinate consistance conversion judge module;
Described free hand drawing layer judge module, for judging whether current cartographic data is free hand drawing layer;
Described layer consistance judge module, whether consistent for the layer coordinate and Fundamentals of Mathematics judging cartographic data;
Described coordinate consistance modular converter, for carrying out the conversion of coordinate consistance to layer coordinate;
Described coordinate consistance conversion judge module, for judging that whether the conversion of coordinate consistance is successful.
(3) beneficial effect
Compare with product with prior art, the present invention has the following advantages:
A kind of map making rule provided by the invention builds and structured organization method, drawing course is carried out abstract, build a kind of mixing " tree+figure " structure, namely tree structure is adopted for attribute, digraph structure is set up for rule, its arc tail is as a node in tree, and set up a kind of favorable expandability thus, loosely-coupled entirety is tree, be locally mixing " tree+figure " cartographic model of figure, the logic achieving drawing course and cartographic convention is independent.The drawing course user oriented outstanding by good for versatility interactivity, by strongly professional cartographic convention towards professional, domestic consumer obtains professional cartography rule by closing chain, improve map making efficiency, for the popularization of map making in layman, the automatization level promoting map making and emergent rapid drafting provide a kind of effective technology means, expand the use field of map, had important practical significance at mapping area of geographic information.
Accompanying drawing explanation
Fig. 1 is that cartographic convention in the invention process builds and the process flow diagram of structured organization method;
Fig. 2 is mixing " tree+figure " cartographic model structural drawing;
Fig. 3 is cartographic convention ground floor (drawing scheme) structural representation;
Fig. 4 is " page layout " subtree figure structure schematic representation;
Fig. 5 is " text style " subtree figure structure schematic representation;
Fig. 6 is " output device " subtree figure structure schematic representation;
Fig. 7 is " engineer's scale " subtree figure structure schematic representation;
Fig. 8 is " north arrow " subtree figure structure schematic representation;
Fig. 9 is " frame and background color " subtree figure structure schematic representation;
Figure 10 is " drawing decision organization " subtree figure structure schematic representation;
Figure 11 is " VectorLayer rule " subtree figure structure schematic representation;
Figure 12 is " image layer rule " subtree figure structure schematic representation;
Figure 13 is " raster map layer rule " subtree figure structure schematic representation;
Figure 14 is " mark rule " subtree figure structure schematic representation;
Figure 15 is that map making rule builds and structured organizational system theory diagram;
In figure, straight line represents relation of inclusion, and arrow camber line represents pass chain relation, and rectangle frame represents intermediate node, and circular rectangle frame represents leaf node, and circular expression closes chain node.
Embodiment
Understand for the ease of those of ordinary skill in the art and implement the present invention, below in conjunction with the drawings and the specific embodiments, the present invention is described in further detail.
Embodiment 1
As shown in the figure, a kind of map making rule that the present embodiment provides builds and structured organization method, it is characterized in that, comprises the following steps:
Step 1: build cartographic convention;
Step 2: obtain cartographic data and determine cartographic data classification;
Step 3: cartographic convention is formed xml structured storage according to cartographic data classification;
Step 4: resolve cartographic convention according to cartographic data classification;
With the node that charts for unit resolves drawing course; Drawing node is the elementary cell of drawing course and cartographic convention tree, and comprise attribute (such as cartographic data, printing, page layout etc.) Sum fanction (cartographic convention) (see Fig. 2), attribute and logic rules close chain.Traversal rule file, judge whether to close chain sub-rule by resolving element term, such as element term closes chain mark and is defined as " element term+Link ", and namely rear four characters " Link " are for closing chain identification key, identifies this node and closes chain rule.Concrete content is decided by adjacent next element " element term+Linkid " value of this element term, namely rear six characters " Linkid " are for closing chain identification index key word, such as element term is " LabelModeLink ", its value is " mylabelmode320 ", adjacent next element term " LabelModeLinkid ", its value is " 2 ", namely shows that the attribute of this node closes the cartographic convention of id=2 in chain cartographic convention file mylabelmode320.xml.
Step 5: the cartographic convention parsed is acted on cartographic data and carry out coupling formation charting results;
Step 6: charting results is exported.
The formation of the cartographic convention in described step 1 specifically comprises the following steps:
Step 1.1: build map making rule successively according to tree layer order;
Step 1.2: tree rules figure is built to each map making rule;
Step 1.3: each tree rules figure is formed structuring xml son file;
Step 1.4: successively xml son file and tree rules figure are carried out pass chain according to tree layer order, form local digraph structure;
Step 1.5: until complete the structure of whole cartographic convention tree.
Described cartographic convention adopts tree graph structure, and described tree graph structure comprises some leaf nodes, and each leaf node comprises attribute node Sum fanction node;
Described attribute node adopts tree structure, and described regular node adopts digraph structure, and described regular node is as the leaf node in tree structure;
Described regular node adopts the chained list being provided with primary key to carry out pass chain;
Described regular node comprises root regular node and sub-rule node, and described regular node forms a cartographic convention to each paths of sub-rule node, and described cartographic convention adopts structured storage.
Described tree rules figure comprises drawing scheme attribute node and drawing decision organization node, and described drawing scheme attribute node comprises Property Name, attribute description, page layout, output device; Described drawing decision organization node comprises some figure node layers; Described figure node layer comprises layer properties node and layer type node; Described layer properties node comprises layer title, layer display order, mark field, data source; Described layer type node comprises VectorLayer class, image layer class and raster map layer class;
Described VectorLayer class is for defining cartographic convention subtree figure corresponding to VectorLayer;
Described image layer class is for defining cartographic convention subtree figure corresponding to image layer;
Described raster map layer class is for defining cartographic convention subtree figure corresponding to raster map layer.
Described page layout comprises page size, drawing explanation, cartographic unit's explanation, the explanation of drawing time, engineer's scale pattern, north arrow pattern, frame, background color.
The classification of the cartographic data in described step 2 is determined according to the following steps:
Step 2.1: judge whether current cartographic data is free hand drawing layer, if so, then enters step 3;
Step 2.2: if not, then judge the layer coordinate of cartographic data and Fundamentals of Mathematics whether consistent, if so, then enter step 3;
Step 2.3: if not, then carry out the conversion of coordinate consistance to layer coordinate;
Step 2.4: judge that whether the conversion of coordinate consistance is successful, if so, then enter step 3;
Step 2.5: if not, then exit.
The present embodiment additionally provides a kind of map making rule and builds and structured organizational system, comprises cartographic convention and builds module, cartographic data acquisition module, cartographic convention structured storage module, cartographic convention parsing module, cartographic data matching module and charting results output module;
Described cartographic convention builds module, for determining cartographic convention;
Described cartographic data acquisition module, for obtaining cartographic data and determining cartographic data classification;
Described cartographic convention structured storage module, for forming xml structured storage according to cartographic data classification by cartographic convention;
Described cartographic convention parsing module, for resolving cartographic convention according to cartographic data classification;
Described cartographic data matching module, carries out coupling formation charting results for the cartographic convention parsed being acted on cartographic data;
Described charting results output module, for exporting charting results.
The present embodiment additionally provides cartographic data read module for reading map datum required in drawing course from cartographic data acquisition module; Also providing cartographic convention collection module simultaneously, for cartographic convention being integrated into a unified data set, being arranged between cartographic convention structured storage module and cartographic convention parsing module, be conducive to like this improving cartographic convention parsing module analyzing efficiency.
Described cartographic convention structure module comprises map making tree layer rule structure module, tree rules figure builds module, structuring xml son file forms module, locally digraph structure construction module and overall cartographic convention tree build module;
Described map making tree layer rule builds module, for building map making rule successively according to tree layer order;
Described tree rules figure builds module, for building tree rules figure to each map making rule;
Described structuring xml son file forms module, for each tree rules figure is formed structuring xml son file;
Described local digraph structure construction module, for successively xml son file and tree rules figure being carried out pass chain according to tree layer order, forms local digraph structure;
Described overall cartographic convention tree builds module, for completing the structure of whole cartographic convention tree;
Described cartographic convention adopts tree graph structure, and described tree graph structure comprises some leaf nodes, and each leaf node comprises attribute node Sum fanction node;
Described attribute node adopts tree structure, and described regular node adopts digraph structure, and described regular node is as the leaf node in tree structure;
Described regular node adopts the chained list being provided with primary key to carry out pass chain;
Described regular node comprises root regular node and sub-rule node, and described regular node forms a cartographic convention to each paths of sub-rule node, and described cartographic convention adopts structured storage.
Described tree rules figure comprises drawing scheme attribute node and drawing decision organization node, and described drawing scheme attribute node comprises Property Name, attribute description, page layout, output device; Described drawing decision organization node comprises some figure node layers; Described figure node layer comprises layer properties node and layer type node; Described layer properties node comprises layer title, layer display order, mark field, data source; Described layer type node comprises VectorLayer class, image layer class and raster map layer class;
Described VectorLayer class is for defining cartographic convention subtree figure corresponding to VectorLayer;
Described image layer class is for defining cartographic convention subtree figure corresponding to image layer;
Described raster map layer class is for defining cartographic convention subtree figure corresponding to raster map layer;
Described page layout comprises page size, drawing explanation, cartographic unit's explanation, the explanation of drawing time, engineer's scale pattern, north arrow pattern, frame, background color.
Described cartographic data acquisition module comprises free hand drawing layer judge module, layer consistance judge module, coordinate consistance modular converter and coordinate consistance conversion judge module;
Described free hand drawing layer judge module, for judging whether current cartographic data is free hand drawing layer;
Described layer consistance judge module, whether consistent for the layer coordinate and Fundamentals of Mathematics judging cartographic data;
Described coordinate consistance modular converter, for carrying out the conversion of coordinate consistance to layer coordinate;
Described coordinate consistance conversion judge module, for judging that whether the conversion of coordinate consistance is successful.
Embodiment 2
The tree graph structure that the present embodiment 2 provides comprises three class fundamentals: primary key, attribute Sum fanction arc tail; Attribute is adopted tree structure, sets up digraph structure for rule, its regular arc tail, as a node in tree, is set up favorable expandability, loosely-coupled a kind of entirety is tree, is locally the mixing tree graph cartographic model of figure.The structuring of tree to be connected with the direction of figure and to combine by the method, subtree figure entirety is included into pass chain node when traversal.Each paths from root node to leaf node forms a cartographic convention, and rule is carried out structured storage, and the logic achieving drawing course and cartographic convention is independent.
First the reading of map making rule, decipher and data and rule match is completed in drawing course; In cartographic convention structurizing process, need the compound tree graph Structure Representation of map making rule, form xml structured storage and set up and close chain.
It is independent that the method for the present embodiment achieves the logic building drawing course and cartographic convention structurizing process respectively, the drawing course user oriented outstanding by good for versatility interactivity, by strongly professional cartographic convention towards professional, domestic consumer obtains professional cartography rule by closing chain, improve map making efficiency, for the popularization of map making in layman, the automatization level promoting map making and emergent rapid drafting provide a kind of effective technology means, expand the use field of map, had important practical significance at mapping area of geographic information.
Embodiment 3
A kind of map making rule that the present embodiment provides builds and structured organization method, comprises two parts: drawing course and cartographic convention structurizing process.Wherein drawing course and cartographic convention structurizing process logic are independently, and the necessary condition of xml file as drawing course step of formation is expressed in cartographic convention structurizing process and storage.Wherein drawing course comprises the following steps:
Step 1: carry out consistance judgement after cartographic data data source being classified: enter step 2 after eligible; Its specific implementation comprises following sub-step:
Step 1.1: by cartographic data according to vector, image, grid classifying.
Step 1.2: free hand drawing layer directly enters step 2.Otherwise check that whether the coordinate system between different pieces of information source, projection pattern be consistent.If consistent, then enter step 2.Otherwise carry out the conversion of coordinate consistance, change successfully laggard enter step 2, otherwise to exit.
Step 2: resolve cartographic convention xml file, adopt preorder traversal method, according to tree layer ascending (from root to leaf node) sequentially, resolves xml (run into after subtree figure carries out pass chain and continue to resolve) successively from high level to low layer.
Wherein in step 2, cartographic convention structuring and xml storage forming process comprise the following steps:
Step 2.1: logical organization structure is carried out to drawing scheme.According to tree layer ascending (from root to leaf node) sequentially, tree rules figure is built successively from high level to low layer, closing chain node in regular node (arc tail) is temporarily empty (primary key is labeled as null or-1), and marks each rule according to Build Order.The ground floor logical organization wherein set asks for an interview Fig. 2.
Step 2.2: tree rules figure structure is carried out to each rule according to flag sequence from big to small.Its subtree figure builds specific implementation and comprises following sub-step:
Step 2.2.1: to " title ", " description " Node configuration attribute under " drawing scheme attribute " node, intermediate node (" page layout " and " output device " node) proceeds structuring and builds.Wherein structure is built to the logic of " page layout " node and ask for an interview Fig. 4; Structure is built to the logic of " output device " node and asks for an interview Fig. 5; In Fig. 4, structure is built to the logic of " engineer's scale " node and ask for an interview Fig. 6; Structure is built to the logic of " north arrow " node and asks for an interview Fig. 7; Structure is built to the logic of " frame and background color " node and asks for an interview Fig. 8.
Step 2.2.2: structuring is proceeded to " layer i " (1=<i<=n, n are total figure number of plies) node under " drawing decision organization " node and builds, ask for an interview Fig. 9.This node comprises following three classes, and wherein note elements is not as an independent class, but closes chain as structure content and following three class layer:
1) VectorLayer class: the cartographic convention subtree figure that definition VectorLayer is corresponding, asks for an interview Figure 10.
2) image layer class: the cartographic convention subtree figure that definition image layer is corresponding.In general the general step that needs of image data drawing as inlayed, cutting, even look, belong to the data processing of image in the present invention, do not describe separately as rule, if need display mark in image bearing layer, then this image bearing layer closes chain mark rule, asks for an interview Figure 11.
3) raster map layer class: the cartographic convention subtree figure that definition raster map layer is corresponding, asks for an interview Figure 12.
Step 2.3: structuring xml file is formed to each tree rules figure, regular node in step 2.1 (arc tail) is carried out pass chain, major key logical definition is " tree rules figure title+id code ", a tree rules figure and multiple regular node is allowed to close chain, i.e. the relation of " one-to-many ".The logical organization of this xml is described in detail below for mark rule in Figure 13.
Subtree figure in Figure 13 under " annotation attribute " node is from file annotation attribute (labelmodedefine.xml), and its main contents are expressed as follows:
<LabelMode id="0"LabelType="1"LabelPlacemnet="0"LabelArrangement=""CharacterSpace="3"LabelFromElement="4">
<LF font=" Song typeface " fontChange=" 0 " fontSize=" 12 " fontColor=" 112,153,89 " fontBold=" 0 " fontUnderline=" 0 "/>
</LabelMode>
<LabelMode id="1"LabelType="2"LabelPlacemnet=""LabelArrangement="1"CharacterSpace="2"LabelFromElement="4">
<LF font=" black matrix " fontChange=" 1 " fontSize=" 10 " fontColor=" 2,73,164 " fontBold=" 0 " fontUnderline=" 0 "/>
</LabelMode>
<LabelMode id="10"LabelType="3”LabelPlacemnet=””LabelArrangement=”3”CharacterSpace=”2”LabelFromElement=”2”>
<LF font=" regular script " fontChange=" 0 " fontSize=" 12 " fontColor=" 220,81,9 " fontBold=" 0 " fontUnderline=" 0 "/>
</LabelMode>
Corresponding content describes in detail as shown in table 1:
Table 1 annotation attribute xml key element illustrates signal
Subtree figure in Figure 12 under " annotation rule " node is from file annotation rule (LabelRule.xml), and annotation rule main contents are expressed as follows:
<LabelRule id="0"LabelField="Name"LabelModeLink="labelmodedefine"LabelModeLinkid="0"LabelConflictLink="labelconflictlinkdefine1"LabelConflictLinkid="2"></LabelMode>
<LabelRule id="1"LabelField="RiverName"LabelModeLink="labelmodedefine"LabelModeLinkid="2"LabelConflictLink="labelconflictlinkdefine2"LabelConflictLinkid="1"></LabelMode>
<LabelRule id="15"LabelField="Name"LabelModeLink="labelmodedefine"LabelModeLinkid="3"LabelConflictLink="labelconflictlinkdefine3"LabelConflictLinkid="2"></LabelMode>
Table 2 annotation rule xml key element illustrates signal
Step 2.4: adopt preorder traversal method, xml is built successively according to flag sequence (the tree number of plies from high to low) from big to small, regular node (arc tail) is carried out pass chain with tree rules figure, form local digraph structure, until complete the structure of whole cartographic convention tree, namely the content of xml comprises setup of attribute (parameter, such as, in table 2 id and LabelFileld) and regular node (arc tail) xml connection (closing chain tree graph, such as, in table 2 LabelMode and LabelConflict).
Step 3: the cartographic convention parsed is acted on data visualization and drawing flow process with the form of parameter or disposal route (function), realize Data Matching/pass chain cartographic convention, result output chart the most at last to relevant device/virtual unit/swap file, and drawing course terminates.
Embodiment 4
The cartographic convention structuring of the present embodiment forms xml process and comprises the following steps:
Step 1: logical organization structure is carried out to drawing scheme: adopt tree as agent structure expression way, according to tree layer ascending (from root to leaf node) sequentially, rule (being called tree rules figure) is built successively from high level to low layer, in tree rules figure, next stage subtree figure access node is temporarily empty, and marks each rule according to Build Order.
Step 2: according to preorder traversal method, carries out tree rules figure structure according to flag sequence from big to small to each rule.
Step 3: form structuring xml file to each tree rules figure, closes chain rule node (arc tail) and forms local digraph by subtree figure.Adopt local digraph pattern, the logical independence of effective implementation rule subtree figure and reusability.
Step 4: adopt preorder traversal method, xml is built successively according to flag sequence (the tree number of plies from high to low) from big to small, pass chain is carried out by needing the node accessing subtree figure, until complete the structure of whole cartographic convention tree, namely the content of xml comprises setup of attribute (parameter) and node xml (subtree figure) connection.
In sum, structuring map cartographic convention of the present invention builds and method for organizing, by cartographic data, drawing course and cartographic convention logical separation, by cartographic convention being abstracted into a kind of tree graph structure and being connected with the direction of figure by the stratification structure between tree, make to realize combination between Different Rule, call.Mixing that the method provides " tree+figure " drawing structure has good extensibility (other rule or expansion add with subtree figure be linked in this structure).Rule tree structure content of the present invention, be generally conventional cartographic convention, other extension rules are also undertaken processing and being applied to map making by the present invention.
Above embodiment is only one embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.Its concrete structure and size can adjust according to actual needs accordingly.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.

Claims (10)

1. map making rule builds and a structured organization method, it is characterized in that, comprises the following steps:
Step 1: build cartographic convention;
Step 2: obtain cartographic data and determine cartographic data classification;
Step 3: according to cartographic data classification cartographic convention formed xml structuring and store;
Step 4: resolve cartographic convention according to cartographic data classification;
Step 5: the cartographic convention parsed is acted on cartographic data and carry out coupling formation charting results;
Step 6: charting results is exported.
2. map making rule according to claim 1 builds and structured organization method, and it is characterized in that, the formation of the cartographic convention in described step 1 specifically comprises the following steps:
Step 1.1: build map making rule successively according to tree layer order;
Step 1.2: tree rules figure is built to each map making rule;
Step 1.3: each tree rules figure is formed structuring xml son file;
Step 1.4: successively xml son file and tree rules figure are carried out pass chain according to tree layer order, form local digraph structure;
Step 1.5: until complete the structure of whole cartographic convention tree.
3. map making rule according to claim 1 builds and structured organization method, and it is characterized in that, described cartographic convention adopts tree graph structure, and described tree graph structure comprises some nodes, and each leaf node comprises attribute node Sum fanction node;
Described attribute node adopts tree structure, and described regular node adopts digraph structure, and described regular node is as the leaf node in tree structure;
Described regular node adopts the chained list being provided with primary key to carry out pass chain;
Described regular node comprises root regular node and sub-rule node, and described regular node forms a cartographic convention to each paths of sub-rule node, and described cartographic convention adopts structured storage.
4. map making rule according to claim 2 builds and structured organization method, it is characterized in that, described tree rules figure comprises drawing scheme attribute node and drawing decision organization node, and described drawing scheme attribute node comprises Property Name, attribute description, page layout, output device; Described drawing decision organization node comprises some figure node layers; Described figure node layer comprises layer properties node and layer type node; Described layer properties node comprises layer title, layer display order, mark field, data source; Described layer type node comprises VectorLayer class, image layer class and raster map layer class;
Described VectorLayer class is for defining cartographic convention subtree figure corresponding to VectorLayer;
Described image layer class is for defining cartographic convention subtree figure corresponding to image layer;
Described raster map layer class is for defining cartographic convention subtree figure corresponding to raster map layer.
5. map making rule according to claim 4 builds and structured organization method, it is characterized in that, described page layout comprises page size, drawing explanation, cartographic unit's explanation, the explanation of drawing time, engineer's scale pattern, north arrow pattern, frame, background color.
6. map making rule according to claim 1 builds and structured organization method, and it is characterized in that, the classification of the cartographic data in described step 2 is determined according to the following steps:
Step 2.1: judge whether current cartographic data is free hand drawing layer, if so, then enters step 3;
Step 2.2: if not, then judge the layer coordinate of cartographic data and Fundamentals of Mathematics whether consistent, if so, then enter step 3;
Step 2.3: if not, then carry out the conversion of coordinate consistance to layer data coordinates;
Step 2.4: judge that whether the conversion of coordinate consistance is successful, if so, then enter step 3;
Step 2.5: if not, then exit.
7. map making rule builds and a structured organizational system, and system module figure is as shown below:
It is characterized in that, comprise cartographic convention and build module, cartographic data acquisition module, cartographic convention structured storage module, cartographic convention parsing module, cartographic data matching module and charting results output module;
Described cartographic convention builds module, for determining cartographic convention;
Described cartographic data acquisition module, for obtaining cartographic data and determining cartographic data classification;
Described cartographic convention structured storage module, for forming xml structured storage according to cartographic data classification by cartographic convention;
Described cartographic convention parsing module, for resolving cartographic convention according to cartographic data classification;
Described cartographic data matching module, carries out coupling formation charting results for the cartographic convention parsed being acted on cartographic data;
Described charting results output module, for exporting charting results.
8. map making rule according to claim 7 builds and structured organizational system, it is characterized in that, described cartographic convention structure module comprises map making tree layer rule structure module, tree rules figure builds module, structuring xml son file forms module, locally digraph structure construction module and overall cartographic convention tree build module;
Described map making tree layer rule builds module, for building map making rule successively according to tree layer order;
Described tree rules figure builds module, for building tree rules figure to each map making rule;
Described structuring xml son file forms module, for each tree rules figure is formed structuring xml son file;
Described local digraph structure construction module, for successively xml son file and tree rules figure being carried out pass chain according to tree layer order, forms local digraph structure;
Described overall cartographic convention tree builds module, for completing the structure of whole cartographic convention tree;
Described cartographic convention adopts tree graph structure, and described tree graph structure comprises some leaf nodes, and each leaf node comprises attribute node Sum fanction node;
Described attribute node adopts tree structure, and described regular node adopts digraph structure, and described regular node is as the leaf node in tree structure;
Described regular node adopts the chained list being provided with primary key to carry out pass chain;
Described regular node comprises root regular node and sub-rule node, and described regular node forms a cartographic convention to each paths of sub-rule node, and described cartographic convention adopts structured storage.
9. map making rule according to claim 8 builds and structured organizational system, it is characterized in that, described tree rules figure comprises drawing scheme attribute node and drawing decision organization node, and described drawing scheme attribute node comprises Property Name, attribute description, page layout, output device; Described drawing decision organization node comprises some figure node layers; Described figure node layer comprises layer properties node and layer type node; Described layer properties node comprises layer title, layer display order, mark field, data source; Described layer type node comprises VectorLayer class, image layer class and raster map layer class;
Described VectorLayer class is for defining cartographic convention subtree figure corresponding to VectorLayer;
Described image layer class is for defining cartographic convention subtree figure corresponding to image layer;
Described raster map layer class is for defining cartographic convention subtree figure corresponding to raster map layer;
Described page layout comprises page size, drawing explanation, cartographic unit's explanation, the explanation of drawing time, engineer's scale pattern, north arrow pattern, frame, background color.
10. according to claim 7, it is characterized in that, described cartographic data acquisition module comprises free hand drawing layer judge module, layer consistance judge module, coordinate consistance modular converter and coordinate consistance conversion judge module;
Described free hand drawing layer judge module, for judging whether current cartographic data is free hand drawing layer;
Described layer consistance judge module, whether consistent for the layer coordinate and Fundamentals of Mathematics judging cartographic data;
Described coordinate consistance modular converter, for carrying out the conversion of coordinate consistance to layer coordinate;
Described coordinate consistance conversion judge module, for judging that whether the conversion of coordinate consistance is successful.
CN201510229676.2A 2015-05-07 2015-05-07 A kind of map making rule structure and its structured organization method and system Active CN104794236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510229676.2A CN104794236B (en) 2015-05-07 2015-05-07 A kind of map making rule structure and its structured organization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510229676.2A CN104794236B (en) 2015-05-07 2015-05-07 A kind of map making rule structure and its structured organization method and system

Publications (2)

Publication Number Publication Date
CN104794236A true CN104794236A (en) 2015-07-22
CN104794236B CN104794236B (en) 2018-04-20

Family

ID=53559028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510229676.2A Active CN104794236B (en) 2015-05-07 2015-05-07 A kind of map making rule structure and its structured organization method and system

Country Status (1)

Country Link
CN (1) CN104794236B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106568377A (en) * 2016-11-07 2017-04-19 武汉大学 Tectonic geodetic survey mapping method and system based on ArcEngine
CN108286978A (en) * 2017-01-09 2018-07-17 北京四维图新科技股份有限公司 Road network automatic generating method and device and hybrid navigation system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909693A (en) * 2006-08-07 2007-02-07 华为技术有限公司 Method and device for transformation of data configuration file in different editions of software
CN102129464A (en) * 2011-03-14 2011-07-20 武汉大学 Method for dynamically constructing online thematic map
CN102411499A (en) * 2011-08-11 2012-04-11 浙江大学 Directed-graph-structure-based system information extraction method for single electronic control unit (ECU)
CN103150398A (en) * 2013-03-27 2013-06-12 武汉大学 National fundamental geographic information data-based incremental map updating method
CN103246649A (en) * 2012-02-02 2013-08-14 中国航空工业集团公司沈阳飞机设计研究所 Dynamic database building method
CN103761339A (en) * 2014-02-21 2014-04-30 武汉大学 Electronic map making method based on basic geographic information data
CN103870608A (en) * 2014-04-08 2014-06-18 武汉大学 Method for mapping knowledge construction and formalized expression based on map symbols
CN104008162A (en) * 2014-05-28 2014-08-27 中国地质大学(北京) Template based one-button type thematic map automatic forming method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909693A (en) * 2006-08-07 2007-02-07 华为技术有限公司 Method and device for transformation of data configuration file in different editions of software
CN102129464A (en) * 2011-03-14 2011-07-20 武汉大学 Method for dynamically constructing online thematic map
CN102411499A (en) * 2011-08-11 2012-04-11 浙江大学 Directed-graph-structure-based system information extraction method for single electronic control unit (ECU)
CN103246649A (en) * 2012-02-02 2013-08-14 中国航空工业集团公司沈阳飞机设计研究所 Dynamic database building method
CN103150398A (en) * 2013-03-27 2013-06-12 武汉大学 National fundamental geographic information data-based incremental map updating method
CN103761339A (en) * 2014-02-21 2014-04-30 武汉大学 Electronic map making method based on basic geographic information data
CN103870608A (en) * 2014-04-08 2014-06-18 武汉大学 Method for mapping knowledge construction and formalized expression based on map symbols
CN104008162A (en) * 2014-05-28 2014-08-27 中国地质大学(北京) Template based one-button type thematic map automatic forming method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106568377A (en) * 2016-11-07 2017-04-19 武汉大学 Tectonic geodetic survey mapping method and system based on ArcEngine
CN106568377B (en) * 2016-11-07 2019-07-23 武汉大学 Tectonic geodetic survey drawing methods and system based on ArcEngine
CN108286978A (en) * 2017-01-09 2018-07-17 北京四维图新科技股份有限公司 Road network automatic generating method and device and hybrid navigation system

Also Published As

Publication number Publication date
CN104794236B (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN111680025B (en) Method and system for intelligently assimilating space-time information of multi-source heterogeneous data oriented to natural resources
CN107038259B (en) Operation method and system for constructing traffic network data
Meeraus An algebraic approach to modeling
CN103412853B (en) A kind of automatic example generation method for file convertor
CN104598635A (en) Automatic complex document generating method based on XML (Extensive Markup Language) description
CN106020950A (en) Function call graph key node recognition and identification method based on complex network analysis
CN105975562A (en) Method and apparatus for automatically generating budget table of engineering drawing
WO2008107665A2 (en) A graphical user interface for use in integrating programming functions with spreadsheet applications
CN113051885B (en) AutoCAD-based design drawing rapid typesetting method
CN106557457A (en) A kind of system for automatically generating cross-platform Complicated Flow figure based on QT
CN110968294A (en) Business domain model establishing system and method
CN102157003A (en) Automatic configuration method for annotation label of map under digital environment
CN111144089A (en) Method and equipment for checking difference between part list and model file of design software
CN110908710A (en) Web front-end code dependency relationship visualization method
CN101211262A (en) Software architecture description language quick construction and support method
Tsandilas StructGraphics: Flexible visualization design through data-agnostic and reusable graphical structures
He Efficient parallel algorithms for series parallel graphs
Mrvar et al. Programs for analysis and visualization of very large networks reference manual
CN104794236A (en) Map making rule construction and structured organization method and system thereof
CN105912723A (en) Storage method of custom field
CN113608903A (en) Fault management method based on XML language
Kumar et al. Exploring the application of property graph model in visualizing COBie data
CN116796707A (en) Document multi-format data filling and modularized automatic generation method
CN113642291B (en) Method, system, storage medium and terminal for constructing logical structure tree reported by listed companies
CN110675729B (en) Multi-version local geographic information integrated drawing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant