CN105589982A - Method and device for importing design drawings on basis of symbol templates - Google Patents

Method and device for importing design drawings on basis of symbol templates Download PDF

Info

Publication number
CN105589982A
CN105589982A CN201410571619.8A CN201410571619A CN105589982A CN 105589982 A CN105589982 A CN 105589982A CN 201410571619 A CN201410571619 A CN 201410571619A CN 105589982 A CN105589982 A CN 105589982A
Authority
CN
China
Prior art keywords
resource
symbol
attribute
space
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410571619.8A
Other languages
Chinese (zh)
Inventor
邓伟
杨远伟
杜大江
李宗玉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bright Oceans Inter Telecom Co Ltd
Original Assignee
Bright Oceans Inter Telecom 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 Bright Oceans Inter Telecom Co Ltd filed Critical Bright Oceans Inter Telecom Co Ltd
Priority to CN201410571619.8A priority Critical patent/CN105589982A/en
Publication of CN105589982A publication Critical patent/CN105589982A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method for importing design drawings on the basis of symbol templates. The method comprises the following steps: making a symbol template file according to a resource attribute and a surface feature attribute; obtaining a set of resource objects in a resource management system and carrying out spatial switching on the set of the resource objects, and obtaining resource symbol objects corresponding to the resource objects according to the symbol template file and the attribute information of the resource objects; obtaining a set of surface feature objects on a background map according to the set of the resource objects and carrying out spatial switching on the set of the surface feature objects, and obtaining surface feature symbol objects corresponding to the surface feature objects according to the symbol template file and the attribute information of the surface feature objects; and combining the resource symbol objects, the surface feature symbol objects and the spatial switching information to generate a design drawing file. The invention furthermore discloses a device for exporting design drawings on the basis of symbol templates.

Description

Derive the method and apparatus of design drawing based on symbol guide
Technical field
The present invention relates to computer drawing design field, be specifically related to a kind of derivation technology of computer drawing.
Background technology
Along with the develop rapidly of information-based and network, traffic, telecommunications etc. are in close relations with geographical location informationIndustry, in its resource management system separately, carries out combination by resource data and geographical location information, withGIS map is background, in GIS map, on corresponding geographical position, presents the resource identification that is positioned at this place,And on GIS map, carry out a series of resource placements, this mode has ensured resource placement and true geographical letterBreath is closely unified, brings great convenience to follow-up construction, maintenance, management to resource. But someDesign scenario need to be used proprietary instrument (for example AutoCAD) to carry out more professional presenting, revise and establishMeter, being therefore necessary the design drawing in resource management system to derive or be converted to proprietary design tool canThe form (for example DXF file) of identification.
The function implementation space data transaction generally providing by business GIS platform software now becomes DXF file,Or complete the DXF conversion of spatial data by the little plug-in software of other business, then by professional resources designerIn AutoCAD, each resource object is configured.
First, change by business GIS platform software, just need to pacify each PC changingThe business GIS desktop platform software of dress heavyweight, software license expense is high; If adopt other businessThe little plug-in software of industry software part completes the conversion of GIS data to DXF, and this plug-in unit is generally all to provide API,Need secondary development, and the data that derive are with customization the Symbol Style, use not convenient and swift.
Secondly, state in the use in platform software process, have very high requirement for operating personnel's qualification;This just needs to be grasped professional GIS platform software, and training cost is high; The same AutoCAD software application of grasping,Training cost is also very high.
Again, spatial data is completed after DXF conversion, need to be by professional resources designer at AutoCADIn each resource object is configured, these configurations all need manually to complete, and expend plenty of time and manpower,And easily make mistakes; Once because the Symbol Style sends after variation, also need personnel to continue manually to remodify,Very trouble.
Therefore a kind of drawing with low cost, easy to use, that conversion efficiency is high, accuracy rate is high is derived technology urgentlyWait to occur.
Summary of the invention
The invention provides the method that derives design drawing based on symbol guide, described method comprises:
Make symbol guide file according to Resource Properties and atural object attribute in advance;
Resource object set in Gains resources management system is also carried out space conversion to it, according to described symbolThe attribute information of template file and described each resource object obtains the corresponding resource symbol object of each resource object;
According to the earth object set on described resource object set background extraction map and it is carried out to space turnChange, obtain each earth object institute according to the attribute information of described symbol guide file and described each earth object rightThe cultural symbol object of answering;
By described resource symbol object, cultural symbol object and space transitional information combination producing design drawing literary compositionPart.
Preferably, make symbol mould according to the corresponding relation of described Resource Properties and atural object attribute and the Symbol StylePlate file;
Described symbol guide file is specific layout design form;
Described Resource Properties comprises service attribute and space attribute;
Described atural object attribute kit is containing Style Attributes and space attribute.
Further, described according to the earth object set on described resource object set background extraction mapMethod is specially:
Calculate described resource object according to each resource object geographical location information of living in described resource object setBoundary rectangle;
Cut off the atural object space segment that exceeds described boundary rectangle scope;
Obtain the earth object set on its background map comprising according to described boundary rectangle.
Further, described resource object is carried out to space conversion, and earth object is carried out to space conversionMethod is specially:
The coordinate mode described resource object being adopted according to the space attribute of described resource object is converted to planeRectangular coordinate system;
The coordinate mode described earth object being adopted according to the space attribute of described earth object is converted to planeRectangular coordinate system, and calculate described flat square in conjunction with described resource object space attribute, extraneous rectangular extentThe space transitional information of coordinate system range, central point, engineer's scale, resource atural object gland relation.
Further, by described resource symbol object, cultural symbol object and space transitional information combination producingThe method of design drawing file is specially:
Described resource symbol object, cultural symbol object are combined to and are included according to certain priority relationshipIn the design drawing file of described space transitional information.
Preferably, use third-party design software to open described design drawing file, described design drawing is enteredRow represents;
Described design drawing file is DXF form.
The present invention is open device of deriving design drawing based on symbol guide also, states device and comprises:
Symbol guide is made and is written into unit, for making symbol guide according to Resource Properties and atural object attribute in advanceFile is also written into all elements in described symbol guide file;
Resource object converting unit, for the resource object set of Gains resources management system and it is carried outSpace conversion, is written into unit according to described symbol guide making and makes and be written into the element in symbol guide fileObtain the corresponding resource symbol object of described each resource object with the attribute information of described each resource object;
Earth object converting unit, for according to the atural object pair on described resource object set background extraction mapResemble set and it is carried out to space conversion, being written into unit according to described symbol guide making and making and be written into symbolElement in template file and the attribute information of described each earth object obtain the corresponding atural object of each earth objectSymbol object;
Design drawing file generating unit, described for what obtain according to described resource object converting unitThe described cultural symbol object that resource symbol object, described reading matter object converting unit are obtained and space conversion letterBreath combination producing design drawing file.
Concrete, described symbol guide making is written into unit and further comprises:
Symbol guide is made module, corresponding for according to described Resource Properties and atural object attribute and the Symbol StyleRelation is made symbol guide file;
Symbol guide file insmods, for described symbol guide being made to the symbol guide literary composition of module makingPart is written into specific memory space;
Described symbol guide file is specific layout design form;
Described Resource Properties comprises service attribute and space attribute;
Described atural object attribute kit is containing Style Attributes and space attribute.
Concrete, described resource object converting unit further comprises:
Resource object acquisition module, for the resource object set of Gains resources management system;
Resource object space modular converter, for according to the space attribute of described resource object by described resource pairThe coordinate mode that resembles employing is converted to plane right-angle coordinate;
Resource object symbol transition module, makes and is written into for being written into unit according to described symbol guide makingIt is corresponding that element in symbol guide file and the attribute information of described each resource object obtain each resource objectResource symbol object.
Concrete, described earth object converting unit further comprises:
Boundary rectangle determination module, for according to according to the each resource object of described resource object set ground of living inDescribed in reason positional information calculation, the boundary rectangle of resource object, cuts off the ground that exceeds described boundary rectangle scopeObject space part;
Earth object acquisition module, for according to the definite boundary rectangle of described extraneous rectangle determination module, obtainsGet the earth object set within the scope of boundary rectangle;
Earth object space modular converter, for the earth object obtaining according to described earth object acquisition moduleThe coordinate mode that space attribute adopts described earth object is converted to plane right-angle coordinate, and described in combinationPlane right-angle coordinate scope, central point, ratio described in resource object space attribute, boundary rectangle range computationThe space transitional information of example chi, resource atural object gland relation;
Earth object symbol transition module, makes and is written into for being written into unit according to described symbol guide makingIt is corresponding that element in symbol guide file and the attribute information of described each earth object obtain each earth objectCultural symbol object.
Concrete, described design drawing file generating unit by described resource symbol object, cultural symbol object according toCertain priority relationship is combined in the design drawing file that includes described space transitional information.
Preferably, use third-party design software to open described design drawing file, described design drawing is enteredRow represents;
Described design drawing file is DXF form.
The present invention has made symbol guide file in advance, has specified that in resource system, resource is converting design drawing toTransformation rule when paper, because symbol guide file is to pre-establish, can according to actual conditions to resource,The pattern size of atural object conversion waits attribute to carry out detailed setting, very flexible; And then by obtaining targetResource object set and then obtain earth object set, has determined the scope of conversion of drawings, to being positioned at external squareResource object within the scope of shape and earth object are changed according to setting symbol template file, have realized and having turnedThe uniformity of changing; Finally by the resource symbol object after conversion and cultural symbol object merging are generated to drawingDesign document, is described drawing because it has adopted specific form, therefore can be corresponding third partyOn software, present, be converted to professional design drawing thereby realized the figure in resource system. Pass throughThe present invention, without business GIS platform software being installed on every PC using, has saved the soft of costliness greatlyPart mandate cost; And user gets final product the conversion of complete design drawing by shirtsleeve operation step, need not enterStudy and training that row is special, easily left-hand seat is easy to operate; Because the design drawing file format generating is followed relevantStandard therefore can directly open and use on third party software, does not need to carry out any secondary development; WhenWhen figure changes, only need to revise symbol guide file, again be written into, not need to carry out otherComplicated operation, has really realized low cost, the conversion of easy to operate, convenient figure accurately.
Brief description of the drawings
Fig. 1 shows for the flow process of method that derives design drawing based on symbol guide that the embodiment of the present invention one providesIntention;
The method flow schematic diagram that Fig. 2 provides for the embodiment of the present invention two;
The method flow schematic diagram that Fig. 3 provides for the embodiment of the present invention three;
The symbol guide example that Fig. 4 provides for the embodiment of the present invention three;
The apparatus structure signal based on symbol guide derivation design drawing that Fig. 5 provides for the embodiment of the present invention fourFigure;
The apparatus structure schematic diagram that Fig. 6 provides for the embodiment of the present invention five;
Detailed description of the invention
Below will coordinate graphic and embodiment to describe embodiments of the present invention in detail, by this to the present invention asThe implementation procedure that what application technology means solves technical problem and reaches technology effect can fully understand and according to thisImplement.
As shown in Figure 1, providing embodiments of the invention one below sets forth based on symbol guide derivation design drawingMethod, as described in method comprise:
Step S101: make symbol guide file according to Resource Properties and atural object attribute in advance.
Make symbol guide file according to the corresponding relation of described Resource Properties and atural object attribute and the Symbol Style;
Described symbol guide file is specific layout design form;
Described Resource Properties comprises service attribute and space attribute;
Described atural object attribute kit is containing Style Attributes and space attribute.
It should be noted that, Resource Properties and atural object attribute can come from the information that uses both sides to appoint,Also can come from existing attribute information in resource management system, can determine these according to actual conditionsThe source of attribute information, and make symbol guide file as standard.
Symbol guide file specifically layout design form is made, and third party easy to use like this establishesMeter software is opened this file and designs according to this file. Third-party design software including, but not limited toAutoCAD, symbol guide file format is including, but not limited to DXF file format.
The service attribute of Resource Properties mainly including but not limited to title, type of service, size, size etc. withThe attribute of traffic aided, and space attribute, include but not limited to space geometry type, coordinate system coordinate etc. withThe attribute of spatial information is described.
Same atural object attribute also has similar feature.
Step S102: the resource object set in Gains resources management system is also carried out space conversion, root to itObtain the corresponding money of each resource object according to the attribute information of described symbol guide file and described each resource objectSource symbol object.
Resource management system is managed nearly all resource object, in the time carrying out design drawing conversion, and Ke YixuanSelect the resource of a subsystem and carry out drawing protract, therefore need in resource system, obtain these target resourcesThe set of object.
Resource object in resource management system is presented on GIS map, and the coordinate system that GIS map adopts hasMay be spheric coordinate system, and therefore the plane right-angle coordinate that design drawing all adopts need to carry out spaceConversion, carries out the conversion of coordinate system.
Symbol guide file is the design drawing that meets of making according to resource object attribute, earth object attributeThe file of paper file description rule therefore, after Gains resources object, can obtain this in symbol guide fileThe corresponding resource symbol object of resource object.
Step S103: according to the earth object set on described resource object set background extraction map and to itCarry out space conversion, obtain various places according to the attribute information of described symbol guide file and described each earth objectThe corresponding cultural symbol object of thing object.
Earth object on GIS map has a lot, and the related atural object of design drawing is only a part wherein,Therefore the earth object set that needs delineation to obtain, these earth objects must be and resource object set geographyPosition is corresponding, exceeds the earth object of this scope not in the scope of obtaining.
Similar with the principle of step 102, need to carry out space conversion to earth object, equally at symbol guideIn file, obtain the corresponding cultural symbol object of earth object.
Step S104: by described resource symbol object, cultural symbol object and space transitional information combination producingDesign drawing file.
Space transitional information represented coordinate system that the design drawing file after conversion follows, scope, central point,Engineer's scale, resource atural object gland relation etc.
Resource symbol object, cultural symbol object composition are become to complete design drawing file together.
It should be noted that, can adopt multiple combination standard to carry out resource symbol object and cultural symbol objectCombination, as simple stack, combine, be subordinate to according to resource object business according to same subsystem modeRelation combines etc., can choose optimum combination according to practice.
In order better to set forth the present invention, provide embodiments of the invention two below, as shown in Figure 2:
Step S201: make symbol guide file according to Resource Properties and atural object attribute in advance.
Having made symbol guide file, is exactly the conversion foundation of arranging Resource Properties and atural object attribute in fact,Which type of symbol which type of Resource Properties converts to, has had symbol guide file, just can be according to symbolThe pattern of arranging in template file is changed.
Can make symbol guide file according to standard map form group code information, as according in DXF filespecGroup code carry out the making of symbol guide file.
Step S202: the resource object set in Gains resources management system is also converted to plane by its coordinate systemRectangular coordinate system.
It is background that resource management system has adopted GIS map, and the coordinate system of its use is likely flat squareCoordinate system or spheric coordinate system, therefore adopt described resource object according to the space attribute of described resource objectCoordinate mode be converted to plane right-angle coordinate, what just adopt if original was plane right-angle coordinate,Need not carry out the conversion of coordinate system.
In resource management system, can comprise a lot of resource objects, can be to belonging to the resource object of an operation system togetherCarrying out drawing derives operation, therefore needs to determine resource object set, can by resource system to businessObtaining of resource object set carried out in classification.
Step S203: obtain each money according to the attribute information of described symbol guide file and described each resource objectThe corresponding resource symbol object of source object.
Step S204: calculate institute according to the geographical location information of living in of each resource object in described resource object setState the boundary rectangle of resource object.
Design drawing can not be unconfined scope, according to the needs that design and represent, intercepts part and carries out itRemaining operation, therefore only need to obtain the drawing scope that includes resource object set can meet the demands, because ofThis calculates the boundary rectangle of described resource object according to the residing geographical location information of these resource objects, i.e. bagThe minimum rectangle that contains these resource objects.
Step S205: cut off the atural object space segment that exceeds described boundary rectangle scope.
Step S206: obtain the earth object set on its background map comprising according to described boundary rectangle.
Step S207: the coordinate mode described earth object being adopted according to the space attribute of described earth objectBe converted to plane right-angle coordinate.
In conjunction with described resource object space attribute, extraneous rectangular extent calculate described plane right-angle coordinate scope,The space transitional information of central point, engineer's scale, resource atural object gland relation.
Step S208: obtain various places according to the attribute information of described symbol guide file and described each earth objectThe corresponding cultural symbol object of thing object.
Step S209: by described resource symbol object, cultural symbol object and space transitional information combination producingDesign drawing file.
Described resource symbol object, cultural symbol object are combined to and are included according to certain priority relationshipIn the design drawing file of described space transitional information.
The priority relationship of combination can be set according to the multiple standards of practical application. As inferior in operation layer.
Step S210: use third-party design software to open described design drawing file, to described design drawingRepresent.
That third-party design software is the most frequently used is AutoCAD.
Provide implementation procedure of the present invention of the present invention below in conjunction with concrete instance in order more in detail clearly to illustrateEmbodiment tri-, as shown in Figure 3, illustrates in practical situations of the present invention.
Taking telecommunication resources management system as example, in telecommunication resources management system, managing a lot of telecommunication line moneySource, specifically can comprise website, machine room, electric pole, staff well etc., and these telecom cable resource actual distribution existThe geographical position that each is clear and definite, telecommunication resources management system exists according to the actual geographic position of these resources conventionallyOn GIS map, draw, to present the resource placement in specific region. For some specific scenes, canCan carry out more professional presenting and design to the resource in certain region, can adopt special designs drawing softwareAutoCAD carries out specialty and presents and design, and therefore needs to encourage the figure of drawing on GIS map and converts specialty toDesign drawing.
Because symbol guide file is made in advance, the resource of arranging what type in design drawing withWhich kind of pattern presents, and writes with general DXF file format, and symbol guide file can be at AutoCADIn directly open, as shown in Figure 4, shown in Fig. 4, be the example of part resource, when practical application not only forResource pattern in Fig. 4 presents.
Need to be with reference to DXF form while writing DXF symbol guide file, used some group codes hereContent, as BLOCK group code and ENDBLK group code.
BLOCK group code content is as shown in table 1:
Table 1BLOCK group code content
ENDBLK group code content is as shown in table 2:
Table 2ENDBLK group code content
In DXF symbol guide file about the related content (intercepting) as follows of " the original carriage release lever of SNG-":
In carrying out internal memory being judged before conversion of drawings, whether be written into the symbol guide in symbol guide fileObject, if there is no, can carry out and load all resources and background map the Symbol Style in symbol guide fileObject, if existed, can directly carry out step below. Money at this with " Taikang County Xie Anlu pipeline "Source is that example describes. Symbol guide DXF file is as follows, intercepts part.
Step S301: the resource object set of obtaining " Taikang County Xie Anlu pipeline ".
Can obtain corresponding resource object set by inquiry " Taikang County Xie Anlu pipeline " in resource system.The information (only intercept part, and conceal some attribute informations) as shown in table 3 of obtaining:
Table 3 " Taikang County Xie Anlu pipeline " the Resources list
In above-mentioned resource, be the line forming between well and well, have respectively starting point, terminal and line.
Step S302: the resource object in resource object set is carried out to space coordinate conversion.
The attribute information of each resource object is made up of business attribute information and space attribute information. Due toAutoCAD drawing is planar design drawing, therefore sits if the GIS coordinate system of resource system belongs to sphereMark, needs to carry out necessary space coordinate conversion, and spherical coordinate is converted to rectangular co-ordinate, and unit is with rice,Long measure retains decimal to 0.001 meter.
Here original is to adopt the spherical coordinate of WGS-84, and we convert it the right angle of Mercator projection toCoordinate system.
Step S303: according to the attribute information of symbol guide file and resource object, obtain each starting point, terminalSymbol object with line.
Point-like resource symbol pattern processing: starting point (terminal) resource is if pipe well resource type is used symbolDesignation " the newly-built carriage release lever of SNG-" in template file, enters according to the information of recording in symbol guide fileRow conversion; Its label character content sources resource name, that pattern font derives from appointment is title HZTEXTCAD font, height and width are all 3.5, width factor is 0.8, gradient is 0, marks the seat at centerCursor position equals the actual height of the deduct-text of Y-direction coordinate of endpoint location.
Starting point (terminal) resource is if machine room resource type is used the designation " JF-in symbol guideNewly-built machine room ", change; Its label character content sources resource name, pattern font derives from appointmentFor the CAD font of title HZTEXT, height and width are all 3.5, and width factor is 0.8, and gradient is 0,The Y-direction coordinate that the coordinate position at mark center equals endpoint location offsets downward the actual height of text.
The intermediate point of starting point and terminal does not have the Symbol Style, only carries out Coordinate Conversion.
Wire resource symbol pattern processing: comprise duct section, if resource section is duct section type, with successivelyConnection source, intermediate point, terminal are line segment, and width is 1, and color is green;
1) start position of line: carry out Coordinate Conversion;
2) final position of line: carry out Coordinate Conversion;
3) width of line: the initial sum of line stops width and all sets and be set as 0.6;
4) the fill style of line: line style adopts the ByLayer type of CAD, ratio 1, thickness is 0;
5) pattern of label character: font type is set to HZTEXT font, font height and width be 3.5,Calculate the anglec of rotation, guarantee word and line parallel, word center word is the Y-direction of line segment center point coordinateOffset downward the actual height of text, color adopts fuchsin.
Above-mentioned these the Symbol Styles, all on the books in symbol guide file, according to the attribute letter of resource objectBreath finds corresponding symbol object in symbol guide file, and record and completed coupling conversion, timeGo through all resource objects, it is mated after conversion one by one, matching result is recorded in DXF file.
Step S304: the boundary rectangle of computational resource.
Boundary rectangle can be regarded as the maximum abscissa in the each summit of given two-dimensional shapes, minimum abscissa,Maximum ordinate, minimum ordinate are fixed the rectangle on border. The scope of boundary rectangle can comprise all resourcesObject set, can obtain boundary rectangle by existing known algorithm.
Space beyond boundary rectangle just can cut off.
Step S305: obtain the earth object set in boundary rectangle, and it is completed to space coordinate conversion.
The scope of drawing that boundary rectangle is clear and definite, can obtain on the background map comprising from GISServerEarth object set, and then can know Style Attributes and the space attribute of each earth object.
If what earth object adopted is spheric coordinate system, need to be converted into plane according to its space attributeRectangular coordinate system.
Calculate rectangle and the central point of output: the rectangular centre point coordinates of AutoCAD view(1.2738939E7,4065560.5), width 97714.0, height 56163.0;
Calculate the engineer's scale of output: 1:1;
The gland relation representing between computational resource, between atural object: atural object is at bottom, between atural object priority be point,Line, face;
Resource line segment: in middle rank layer;
Point resource pipe well and machine room are in top.
Step S306: according to the Style Attributes of symbol guide file and earth object, obtain each earth object phaseThe symbol object of answering.
Point-like atural object pattern: point-like atural object adopts unified circle here, radius is 1, original coordinates is through turningCentral coordinate of circle is just set after changing, and dimension style is with pipe well resource points dimension style.
The conversion of linear ground object pattern: the unified multi-line section pattern that adopts AutoCAD here, select ByLayerLine style, live width adopts the ByLayer width of CAD, and color is set to ByBlock color, linetype scale 1.0,Thickness is 0.0, and mark is with pipe well resource points dimension style, but on the online middle point coordinates in center.
The conversion of area feature pattern: the unified multi-line section pattern that adopts AutoCAD here, select ByLayerLine style, live width adopts the ByLayer width of CAD, and color is set to ByBlock color, linetype scale 1.0,Thickness is 0.0; Mark is with pipe well resource points dimension style, but center is constructed how much on multi-line section summitOn profile center point coordinate.
Above-mentioned these cultural symbol patterns, all on the books in symbol guide file, according to the genus of earth objectProperty information, in symbol guide file, find corresponding symbol object, record and completed coupling conversion,Travel through all earth objects, it is mated after conversion one by one, matching result is recorded in DXF file.
Step S307: the spatial information of output conversion designs drawing file, by the resource symbol object obtaining andCultural symbol object outputs in this design drawing file.
Design drawing file is a DXF file, its spatial information coordinate system that above calculating obtains,The information such as scope, central point, engineer's scale. Finally form a DXF file, offered user and browseAnd download, can in AutoCAD, change the operations such as design.
Cultural symbol object and resource symbol object are merged while outputing in design drawing file, preferablyCan combine according to certain priority, this priority can be set according to actual conditions, here withThe combination priority level of Telecommunication Line Resource System is example. As shown in table 4 below:
Table 4 cultural symbol object and resource symbol object composition priority
The present invention also provides the device based on symbol guide derivation design drawing to lead based on symbol guide in order to realizeGo out the method for design drawing, provide embodiments of the invention four-function below so that the concrete structure of described device to be described,As shown in Figure 5.
The device of deriving design drawing based on symbol guide comprises:
Symbol guide is made and is written into unit 1, for making symbol guide according to Resource Properties and atural object attribute in advanceFile is also written into all elements in described symbol guide file.
Be written into all elements in symbol guide file, this operates in and carries out when design drawing is derived only need to doingOnce, can Reusability, but while having new symbol to be included into wherein, renewable symbol guide file,And again import.
Make symbol guide file according to the corresponding relation of described Resource Properties and atural object attribute and the Symbol Style;
Described symbol guide file is specific layout design form;
Described Resource Properties comprises service attribute and space attribute;
Described atural object attribute kit is containing Style Attributes and space attribute.
Resource object converting unit 2, for the resource object set of Gains resources management system and it is carried outSpace conversion, is written into unit according to described symbol guide making and makes and be written into the element in symbol guide fileObtain the corresponding resource symbol object of described each resource object with the attribute information of described each resource object.
Resource management system is managed nearly all resource object, in the time carrying out design drawing conversion, and Ke YixuanSelect the resource of a subsystem and carry out drawing protract, therefore need in resource system, obtain these target resourcesThe set of object.
Resource object in resource management system is presented on GIS map, and the coordinate system that GIS map adopts hasMay be spheric coordinate system, and therefore the plane right-angle coordinate that design drawing all adopts need to carry out spaceConversion, carries out the conversion of coordinate system.
Symbol guide file is the design drawing that meets of making according to resource object attribute, earth object attributeThe file of paper file description rule therefore, after Gains resources object, can obtain this in symbol guide fileThe corresponding resource symbol object of resource object.
Earth object converting unit 3, for according to the atural object pair on described resource object set background extraction mapResemble set and it is carried out to space conversion, being written into unit according to described symbol guide making and making and be written into symbolElement in template file and the attribute information of described each earth object obtain the corresponding atural object of each earth objectSymbol object.
Earth object on GIS map has a lot, and the related atural object of design drawing is only a part wherein,Therefore the earth object set that needs delineation to obtain, these earth objects must be and resource object set geographyPosition is corresponding, exceeds the earth object of this scope not in the scope of obtaining.
Design drawing file generating unit 4, described for what obtain according to described resource object converting unitThe described cultural symbol object that resource symbol object, described reading matter object converting unit are obtained and space conversion letterBreath combination producing design drawing file.
Based on embodiments of the invention four, provide embodiments of the invention five, each mould is originally installed in detailed explanationThe structure of piece, as shown in Figure 6.
Symbol guide making is written into unit 1 and further comprises:
Symbol guide is made module 11, right for according to described Resource Properties and atural object attribute and the Symbol StyleShould be related to and make symbol guide file;
Symbol guide file insmods 12, for described symbol guide being made to the symbol guide of module makingFile is written into specific memory space.
Resource object converting unit 2 further comprises:
Resource object acquisition module 21, for the resource object set of Gains resources management system;
Resource object space modular converter 22, for according to the space attribute of described resource object by described resourceThe coordinate mode that object adopts is converted to plane right-angle coordinate;
Resource object symbol transition module 23, makes and carries for being written into unit according to described symbol guide makingIt is corresponding that the attribute information that enters element in symbol guide file and described each resource object obtains each resource object instituteResource symbol object.
Earth object converting unit 3 further comprises:
Boundary rectangle determination module 31, for according to of living according to the each resource object of described resource object setGeographical location information calculates the boundary rectangle of described resource object, cuts off and exceeds described boundary rectangle scopeAtural object space segment;
Earth object acquisition module 32, for according to the definite boundary rectangle of described extraneous rectangle determination module,Obtain the earth object set within the scope of boundary rectangle;
Earth object space modular converter 33, for the atural object pair obtaining according to described earth object acquisition moduleThe coordinate mode that image space attribute adopts described earth object is converted to plane right-angle coordinate, and in conjunction with instituteState plane right-angle coordinate scope described in resource object space attribute, boundary rectangle range computation, central point,The space transitional information of engineer's scale, resource atural object gland relation;
Earth object symbol transition module 34, makes and carries for being written into unit according to described symbol guide makingIt is corresponding that the attribute information that enters element in symbol guide file and described each earth object obtains each earth object instituteCultural symbol object.
Design drawing file generating unit 4, for by described resource symbol object, cultural symbol object according to oneFixed priority relationship is combined in the design drawing file that includes described space transitional information.
Symbol guide is made module 11 according to the corresponding relation of described Resource Properties and atural object attribute and the Symbol StyleMake symbol guide file; Symbol guide file insmods and 12 symbol guide is made to module 11 makesSymbol guide file is written into specific memory space; In resource object acquisition module 21 Gains resources management systemsResource object set as the target resource object of this derivation; Resource object space modular converter 22 is to thisA little target resource object sets carry out space conversion; Resource object symbol transition module 23 is according to described symbol mouldPlate is made and is written into unit 12 and makes and be written into element in symbol guide file and the attribute of described each resource objectThe corresponding resource symbol object of the each resource object of information acquisition; Boundary rectangle determination module 31 is according to resource pairResemble set and determine boundary rectangle, shear the part exceeding; Earth object acquisition module 32 obtains according to boundary rectangleGet the earth object within the scope of boundary rectangle; Earth object space modular converter 33 carries out described earth objectSpace conversion; Earth object symbol transition module 34 is corresponding with earth object to obtaining according to symbol guideCultural symbol object; Design drawing file generating unit 4 by resource symbol object, cultural symbol object andThe design drawing file that space transitional information has been combined into, can adopt third-party design software to open designDrawing.
The operation principle of native system and example of practical application are described with reference to above corresponding method part, thenThis repeats no more.
Although the disclosed embodiment of the present invention as above, but described content is not in order to directly to limit thisThe protection domain of invention. Any the technical staff in the technical field of the invention, takes off not departing from the present inventionUnder the prerequisite of the spirit and scope of revealing, can do a little change what implement in form and in details. ThisBright protection domain, still must be as the criterion with the scope that appending claims was defined.

Claims (12)

1. the method that derives design drawing based on symbol guide, is characterized in that, described method comprises:
Make symbol guide file according to Resource Properties and atural object attribute in advance;
Resource object set in Gains resources management system is also carried out space conversion to it, according to described symbolThe attribute information of number template file and described each resource object obtains the corresponding resource symbol of each resource objectObject;
According to the earth object set on described resource object set background extraction map and it is carried out to spaceConversion, obtains each earth object according to the attribute information of described symbol guide file and described each earth objectCorresponding cultural symbol object;
By described resource symbol object, cultural symbol object and space transitional information combination producing design drawingFile.
2. method according to claim 1, is characterized in that:
Make symbol guide file according to the corresponding relation of described Resource Properties and atural object attribute and the Symbol Style;
Described symbol guide file is specific layout design form;
Described Resource Properties comprises service attribute and space attribute;
Described atural object attribute kit is containing Style Attributes and space attribute.
3. method according to claim 2, is characterized in that, describedly obtains according to described resource object setThe method of getting the earth object set on background map is specially:
Calculate described resource pair according to each resource object geographical location information of living in described resource object setThe boundary rectangle of elephant;
Cut off the atural object space segment that exceeds described boundary rectangle scope;
Obtain the earth object set on its background map comprising according to described boundary rectangle.
4. method according to claim 3, is characterized in that, described resource object is carried out to space conversion,Be specially with the method for earth object being carried out to space conversion:
The coordinate mode described resource object being adopted according to the space attribute of described resource object is converted to flatFace rectangular coordinate system;
The coordinate mode described earth object being adopted according to the space attribute of described earth object is converted to flatFace rectangular coordinate system, and calculate described plane in conjunction with described resource object space attribute, extraneous rectangular extentThe space transitional information of rectangular coordinate system scope, central point, engineer's scale, resource atural object gland relation.
5. method according to claim 4, is characterized in that, by described resource symbol object, atural object symbolThe method of number object and space transitional information combination producing design drawing file is specially:
Described resource symbol object, cultural symbol object are combined to and are comprised according to the priority relationship of agreementHave in the design drawing file of described space transitional information.
6. method according to claim 5, is characterized in that, described method also comprises:
Use third-party design software to open described design drawing file, described design drawing is represented;
Described design drawing file is DXF form.
7. the device of deriving design drawing based on symbol guide, is characterized in that, described device comprises:
Symbol guide is made and is written into unit, for making symbol mould according to Resource Properties and atural object attribute in advancePlate file is also written into all elements in described symbol guide file;
Resource object converting unit, for the resource object set of Gains resources management system and it is enteredRow space conversion, is written into unit according to described symbol guide making and makes and be written in symbol guide fileThe attribute information of element and described each resource object obtains the corresponding resource symbol pair of described each resource objectResemble;
Earth object converting unit, for according to the atural object on described resource object set background extraction mapObject set merging is carried out space conversion to it, is written into unit makes and be written into according to described symbol guide makingElement in symbol guide file and the attribute information of described each earth object obtain each earth object correspondenceCultural symbol object;
Design drawing file generating unit, for the described institute obtaining according to described resource object converting unitStating described cultural symbol object and the space that resource symbol object, described reading matter object converting unit obtain turnsChange information combination and generate design drawing file.
8. device according to claim 7, is characterized in that, described symbol guide is made and is written into listUnit further comprises:
Symbol guide is made module, right for according to described Resource Properties and atural object attribute and the Symbol StyleShould be related to and make symbol guide file;
Symbol guide file insmods, for described symbol guide being made to the symbol guide of module makingFile is written into specific memory space;
Described symbol guide file is specific layout design form;
Described Resource Properties comprises service attribute and space attribute;
Described atural object attribute kit is containing Style Attributes and space attribute.
9. device according to claim 8, is characterized in that, described resource object converting unit is furtherComprise:
Resource object acquisition module, for the resource object set of Gains resources management system;
Resource object space modular converter, for according to the space attribute of described resource object by described resourceThe coordinate mode that object adopts is converted to plane right-angle coordinate;
Resource object symbol transition module, makes and carries for being written into unit according to described symbol guide makingIt is right that the attribute information that enters element in symbol guide file and described each resource object obtains each resource object instituteThe resource symbol object of answering.
10. device according to claim 9, is characterized in that, described earth object converting unit is enteredOne step comprises:
Boundary rectangle determination module, for according to of living according to the each resource object of described resource object setGeographical location information calculates the boundary rectangle of described resource object, cuts off and exceeds described boundary rectangle scopeAtural object space segment;
Earth object acquisition module, for according to the definite boundary rectangle of described extraneous rectangle determination module,Obtain the earth object set within the scope of boundary rectangle;
Earth object space modular converter, for the atural object pair obtaining according to described earth object acquisition moduleThe coordinate mode that image space attribute adopts described earth object is converted to plane right-angle coordinate, and combinationPlane right-angle coordinate scope, center described in described resource object space attribute, boundary rectangle range computationThe space transitional information of point, engineer's scale, resource atural object gland relation;
Earth object symbol transition module, makes and carries for being written into unit according to described symbol guide makingIt is right that the attribute information that enters element in symbol guide file and described each earth object obtains each earth object instituteThe cultural symbol object of answering.
11. devices according to claim 10, is characterized in that:
Described design drawing file generating unit by described resource symbol object, cultural symbol object according to oneFixed priority relationship is combined in the design drawing file that includes described space transitional information.
12. devices according to claim 11, is characterized in that:
Use third-party design software to open described design drawing file, described design drawing is represented;Described design drawing file is DXF form.
CN201410571619.8A 2014-10-23 2014-10-23 Method and device for importing design drawings on basis of symbol templates Pending CN105589982A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410571619.8A CN105589982A (en) 2014-10-23 2014-10-23 Method and device for importing design drawings on basis of symbol templates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410571619.8A CN105589982A (en) 2014-10-23 2014-10-23 Method and device for importing design drawings on basis of symbol templates

Publications (1)

Publication Number Publication Date
CN105589982A true CN105589982A (en) 2016-05-18

Family

ID=55929560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410571619.8A Pending CN105589982A (en) 2014-10-23 2014-10-23 Method and device for importing design drawings on basis of symbol templates

Country Status (1)

Country Link
CN (1) CN105589982A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109190157A (en) * 2018-07-26 2019-01-11 中国核电工程有限公司 A kind of method for refreshing of the object location information for Autodesk AutoCAD P&ID
CN109783088A (en) * 2018-12-29 2019-05-21 北京辰安科技股份有限公司 Based on customization emergency maps sign webgis display methods and device
JP2020004153A (en) * 2018-06-29 2020-01-09 株式会社オービック Drawing exchange data generating apparatus, drawing exchange data generating method, and drawing exchange data generating program

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
孟妮娜 等: "GIS空间数据转换为DXF格式的方法研究", 《测绘科学》 *
李瑞霞 等: "基于FME的GIS到CAD数据"无损"转换", 《测绘通报》 *
杨义辉 等: "GIS空间数据转换为DXF格式的若干问题", 《测绘信息与工程》 *
石木耀: "AutoCAD数据与ArcGIS数据转换研究", 《中国优秀硕士学位论文全文数据库 基础科学辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020004153A (en) * 2018-06-29 2020-01-09 株式会社オービック Drawing exchange data generating apparatus, drawing exchange data generating method, and drawing exchange data generating program
JP7065709B2 (en) 2018-06-29 2022-05-12 株式会社オービック Drawing exchange data generator, drawing exchange data generation method, and drawing exchange data generation program
CN109190157A (en) * 2018-07-26 2019-01-11 中国核电工程有限公司 A kind of method for refreshing of the object location information for Autodesk AutoCAD P&ID
CN109190157B (en) * 2018-07-26 2023-05-23 中国核电工程有限公司 Refreshing method for object position information of Autodesk AutoCAD P & ID
CN109783088A (en) * 2018-12-29 2019-05-21 北京辰安科技股份有限公司 Based on customization emergency maps sign webgis display methods and device

Similar Documents

Publication Publication Date Title
CN107038259B (en) Operation method and system for constructing traffic network data
US20180052593A1 (en) Providing visual selection of map data for a digital map
CN102999671B (en) Computer design method of standard distribution network line
CN103366633B (en) Water conservation map data model-based flood risk map drawing method and system thereof
CN102136218B (en) Automatic collocation method for map lettering during map making through computer
CN105320811A (en) Method for establishing topological connected model of urban underground electricity pipe network
CN108009346B (en) Method for quickly drawing SVG format map according to DXF format engineering drawing
CN107967702A (en) The thermodynamic chart method for visualizing of reverse color applying drawing
CN106407540A (en) Underground pipeline auxiliary planning verification method based on three-dimensional GIS technology
CN110688756B (en) Collection and drawing integrated completion drawing manufacturing method
CN109086286A (en) A kind of production of Pictorial Map and dissemination method
CN105976313A (en) Method and system for transforming CAD plane coordinate system to Baidu map coordinate system
Liu et al. Optimization of simulation and visualization analysis of dam-failure flood disaster for diverse computing systems
CN109254760A (en) A kind of method of picture scaling
CN105608119A (en) Rapid thematic map drawing technology
CN105589982A (en) Method and device for importing design drawings on basis of symbol templates
CN102509314A (en) Quick generating method for sunlight greenhouse construction drawing
CN108961406A (en) Geographical information visualization method, apparatus and user terminal
CN104700225A (en) Real estate mapping management system
CN101739498B (en) Method for accurately designing and building ArcGIS symbol library
CN105183966A (en) Database-based method for fast drawing instrument plane arrangement diagram
CN103280152A (en) Building coding method based on longitude and latitude coordinate conversion code
CN112991490A (en) Informatization chart production method and system
CN108416842B (en) Urban three-dimensional integrated pipe network information management method
CN103345769B (en) Complete trails remote sensing image thematic charting method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160518

WD01 Invention patent application deemed withdrawn after publication