CN108009346A - According to the method for DXF form engineering drawing Fast Drawing SVG form maps - Google Patents
According to the method for DXF form engineering drawing Fast Drawing SVG form maps Download PDFInfo
- Publication number
- CN108009346A CN108009346A CN201711234837.2A CN201711234837A CN108009346A CN 108009346 A CN108009346 A CN 108009346A CN 201711234837 A CN201711234837 A CN 201711234837A CN 108009346 A CN108009346 A CN 108009346A
- Authority
- CN
- China
- Prior art keywords
- svg
- dxf
- maps
- room
- layer
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/40—Filling a planar surface by adding surface attributes, e.g. colour or texture
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Geometry (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Architecture (AREA)
- Civil Engineering (AREA)
- Structural Engineering (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention provides a kind of method according to DXF form engineering drawing Fast Drawing SVG form maps, DXF forms engineering drawing is according to figure layer norm-setting, it is characterised in that is comprised the following steps:The Drawing Object of crucial figure layer in step 1, extraction DXF form engineering drawings;The standard rule that DXF files are changed to SVG indoor maps, establishing criteria rule identification region and room, segment are formed, is SVG maps by DXF forms graphic exchanging;By the storehouse addition mapping relations corresponding with graphic icons of the corresponding object ID of complex figure in SVG maps.The CAD engineering drawings that the present invention solves the problems, such as to meet drawing norm derived from DXF formatted files be converted into the rapid translatings of SVG indoor maps, avoid the error of manual operation, reduce the drawing cycle, improve map accuracy.
Description
Technical field
The present invention relates to the conversion method that a kind of CAD turns SVG, more particularly to one kind is according to the accurate DXF lattice of indoor specification
The method of formula engineering drawing Fast Drawing SVG form maps, reduces the manual operation process of centre.
Background technology
DXF is the file format used in computer-assisted mapping instrument (CAD), and SVG is the scalable arrow based on XML language
Spirogram shape, both belong to vector graphics together, and the object of DXF and the element of SVG with corresponding conversion, can have the technology of this respect and turn
Change small tool.
But indoors in terms of map, it is necessary to manually according to drawing when the CAD diagram paper of engineering is converted to service type map
Content carries out secondary drafting using drawing instrument such as Inkscape, Adobe Illustrator etc., and is converted into SVG forms
Afterwards, the language text of SVG is not neat enough, need to manually adjust.The object properties of figure cannot be inherited in CAD, need subsequent manual to add
Add, so artificial operation can cause SVG figures and CAD artworks not quite identical, cause SVG maps inaccurate, can not be normal
Use.And artificial optimization's drawing process cycle is grown, and is not suitable for engineering project.
The content of the invention
The transfer efficiency of SVG form maps is converted into the present invention seeks to improve DXF form engineering drawings.
In order to achieve the above object, the technical scheme is that providing one kind according to DXF form engineering drawing rapid drawings
The method of SVG forms map processed, DXF forms engineering drawing are according to figure layer norm-setting, it is characterised in that including following step
Suddenly:
The Drawing Object of crucial figure layer in step 1, extraction DXF form engineering drawings, all Drawing Objects are all in the figure layer of SVG
Embodied in packet, and<g>Corresponding name under the ID of mark;
The classification of each Drawing Object in step 2, analysis DXF form engineering drawings, in the table of comparisons base of existing DXF and SVG
On plinth, the standard rule that DXF files are changed to SVG indoor maps, establishing criteria rule identification region and room, segment are formed,
It is SVG maps by DXF forms graphic exchanging;
Identification region and room include the following steps:
Step 2.1, according to definition for cut zone figure layer, determine indoor region and room scope, utilize standard
Rule reads its feature point coordinates, while reading feature point coordinates, for what is represented with figure layer in DXF form engineering drawings
Region or room title, directly using the ID for assigning object in SVG form maps, for map data mining platform in DXF form engineering drawings
The annotation word in indefinite figure layer, identification region and room, according to the region and room annotated in text point, with SVG
ID is matched;
Step 2.2, once connect each feature point coordinates in SVG by the figure coordinate order in DXF forms, uses path<
path>The border delineation in region and room is come out, for the figure of closure, color standard is retouched with suitable filling according to the map
When color rule is filled or retouches, for inc figure, if the distance of 2 points of first and last is in threshold value model set in advance
In enclosing, then the figure by inc pattern fits into closure, to the figure after fitting, color standard is with suitable according to the map
Filling is retouched when color rule is filled or retouches
Step 3, on the basis of the obtained SVG maps of step 2, correspond to storehouse according to graphic icons, will be complicated in SVG maps
The corresponding object ID of figure storehouse addition mapping relations corresponding with graphic icons, complicated figure is corresponded in storehouse with graphic icons
Simplification figure substitutes.
Preferably, in the step 2, identification segment includes the following steps:
Segment in DXF form engineering drawings is denominative figure, when changing segment using standard rule, uses a group label
<g>ID identify its segment title, and multiple identical segments in figure are distinguish between by ascending order addition numbering, it is right in map to ensure
As the uniqueness of title.
Preferably, in the step 3, the corresponding object ID of figure and figure that addition will be needed to annotate in SVG maps
Icon corresponds to storehouse addition mapping relations, so as to be automatically performed the work of interpolation data storehouse and SVG maps annotation.
The present invention solve meet the CAD engineering drawings institute of drawing norm derived from DXF formatted files with being converted into SVG the room in
The rapid translating problem of figure, avoids the error of manual operation, reduces the drawing cycle, improves map accuracy.
Brief description of the drawings
Fig. 1 turns SVG indoor map flows for DXF;
Fig. 2 (a) and Fig. 2 (b) changes the front and rear contrast of SVG indoor maps for DXF.
Embodiment
To make the present invention more aobvious understandable, elaborate below in conjunction with the accompanying drawings to the embodiment of the present invention:The present embodiment exists
Implemented under technical solution of the present invention, give the implementation process and implementation result of the present invention.Protection scope of the present invention is not
It is limited to following embodiments.
As shown in Figure 1, one kind provided by the invention is according to DXF forms engineering drawing, (DXF forms engineering drawing is to be advised according to figure layer
What model was formulated, figure layer specification is cartographic unit according to needing the specification formulated) methods of Fast Drawing SVG form maps, including
Following steps:
The Drawing Object of crucial figure layer in step 1, extraction DXF form engineering drawings, all Drawing Objects are all in the figure layer of SVG
Embodied in packet, and<g>Corresponding name under the ID of mark.
Such as:In the figure layer specification that cartographic unit formulates, with " wall ", " door ", " window " etc. or wherein word
The figure layer of sample is defined as the boundary in region and room, and the figure layer with " stair ", " LVTR " etc. or its Chinese characters is defined as covering
Cover material, and other professional equipment title figure layers.These are all embodied in the figure layer packet of SVG, and<g>It is right under the ID of mark
It should name.
The classification of each Drawing Object in step 2, analysis DXF form engineering drawings, in the table of comparisons base of existing DXF and SVG
On plinth, the standard rule that DXF files are changed to SVG indoor maps, establishing criteria rule identification region and room, segment are formed,
It is SVG maps by DXF forms graphic exchanging.
Identification region and room include the following steps:
Step 2.1, according to definition for cut zone figure layer, determine indoor region and room scope, utilize standard
Rule reads its feature point coordinates, while reading feature point coordinates, for what is represented with figure layer in DXF form engineering drawings
Region or room title, directly using the ID for assigning object in SVG form maps, for map data mining platform in DXF form engineering drawings
The annotation word in indefinite figure layer, identification region and room, according to the region and room annotated in text point, with SVG
ID is matched;
Step 2.2, once connect each feature point coordinates in SVG by the figure coordinate order in DXF forms, uses path<
path>The border delineation in region and room is come out, for the figure of closure, color standard is retouched with suitable filling according to the map
When color rule is filled or retouches, for inc figure, if the distance of 2 points of first and last is in threshold value model set in advance
In enclosing, then the figure by inc pattern fits into closure, to the figure after fitting, color standard is with suitable according to the map
Filling is retouched when color rule is filled or retouches.
Identification segment includes the following steps:
Segment in DXF form engineering drawings is denominative figure, when changing segment using standard rule, uses a group label
<g>ID identify its segment title, and multiple identical segments in figure are distinguish between by ascending order addition numbering, ensure object oriented
Uniquely.
Step 3, on the basis of the obtained SVG maps of step 2, correspond to storehouse according to graphic icons, will be complicated in SVG maps
The corresponding object ID of figure storehouse addition mapping relations corresponding with graphic icons, complicated figure is corresponded in storehouse with graphic icons
Simplification figure substitutes, meanwhile, the corresponding object ID of the figure storehouse corresponding with graphic icons that addition annotates will be needed to add in SVG maps
Mapping relations, so as to be automatically performed the work of interpolation data storehouse and SVG maps annotation.
If segment of the tool such as stair segment, ATM machine segment as described in is complicated segment, after adding mapping relations, by this
A little complexity segments are substituted for simplified figure.Need specifically to indicate room or region, simplify after segment, above carried in SVG
For explanatory note or corresponding icon, it is readable to improve SVG indoor maps.
Claims (3)
1. a kind of method according to DXF form engineering drawing Fast Drawing SVG form maps, DXF forms engineering drawing is according to figure layer
Norm-setting, it is characterised in that comprise the following steps:
The Drawing Object of crucial figure layer, all Drawing Objects are all grouped in the figure layer of SVG in step 1, extraction DXF form engineering drawings
Middle embodiment, and<g>Corresponding name under the ID of mark;
The classification of each Drawing Object in step 2, analysis DXF form engineering drawings, on the basis of the table of comparisons of existing DXF and SVG,
The standard rule that DXF files are changed to SVG indoor maps, establishing criteria rule identification region and room, segment are formed, by DXF
Form graphic exchanging is SVG maps;
Identification region and room include the following steps:
Step 2.1, according to definition for cut zone figure layer, determine indoor region and room scope, utilize standard rule
Its feature point coordinates is read, while reading feature point coordinates, for the region represented with figure layer in DXF form engineering drawings
Or room title, it is unknown for map data mining platform in DXF form engineering drawings directly using the ID for assigning object in SVG form maps
The annotation word in true figure layer, identification region and room, according to the region annotated in text point, with SVG and ID of room
Match somebody with somebody;
Step 2.2, once connect each feature point coordinates in SVG by the figure coordinate order in DXF forms, uses path<path>
The border delineation in region and room is come out, for the figure of closure, color standard retouches side face with suitable filling according to the map
Color rule is filled or retouches side, for inc figure, if the distance of 2 points of first and last in threshold range set in advance,
The then figure by inc pattern fits into closure, to the figure after fitting, the according to the map suitable filling of color standard
Retouch when color rule is filled or retouches
Step 3, on the basis of the obtained SVG maps of step 2, storehouse is corresponded to according to graphic icons, by complex figure in SVG maps
Complicated figure, is corresponded to graphic icons the simplification in storehouse by corresponding object ID corresponding with graphic icons storehouse addition mapping relations
Figure substitutes.
2. a kind of method according to DXF form engineering drawing Fast Drawing SVG form maps as claimed in claim 1, its feature
It is, in the step 2, identification segment includes the following steps:
Segment in DXF form engineering drawings is denominative figure, when changing segment using standard rule, uses a group label<g>
ID identify its segment title, and multiple identical segments in figure are distinguish between by ascending order addition numbering, ensure object in map
The uniqueness of title.
3. a kind of method according to DXF form engineering drawing Fast Drawing SVG form maps as claimed in claim 1, its feature
It is, in the step 3, the corresponding object ID of the figure storehouse corresponding with graphic icons of addition annotation will be needed in SVG maps
Mapping relations are added, so as to be automatically performed the work of interpolation data storehouse and SVG maps annotation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711234837.2A CN108009346B (en) | 2017-11-29 | 2017-11-29 | Method for quickly drawing SVG format map according to DXF format engineering drawing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711234837.2A CN108009346B (en) | 2017-11-29 | 2017-11-29 | Method for quickly drawing SVG format map according to DXF format engineering drawing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108009346A true CN108009346A (en) | 2018-05-08 |
CN108009346B CN108009346B (en) | 2021-09-07 |
Family
ID=62055289
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711234837.2A Active CN108009346B (en) | 2017-11-29 | 2017-11-29 | Method for quickly drawing SVG format map according to DXF format engineering drawing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108009346B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109636887A (en) * | 2018-11-29 | 2019-04-16 | 北京宇航系统工程研究所 | A kind of conversion of Two-dimensional electron technical drawing format and vector quantization interactive system |
CN110375744A (en) * | 2019-08-02 | 2019-10-25 | 金瓜子科技发展(北京)有限公司 | A kind of path processing method and device |
CN110968944A (en) * | 2019-11-19 | 2020-04-07 | 金现代信息产业股份有限公司 | Method for displaying and operating CAD drawing at Web front end |
CN111638878A (en) * | 2020-04-26 | 2020-09-08 | 华为终端有限公司 | Method and device for processing style of icon |
CN111854758A (en) * | 2020-07-03 | 2020-10-30 | 湖北枫丹白露智慧标识科技有限公司 | Indoor navigation map conversion method and system based on building CAD (computer-aided design) drawing |
CN113790730A (en) * | 2021-08-31 | 2021-12-14 | 北京航空航天大学 | Mobile robot navigation map conversion method and system based on DXF format |
CN114036616A (en) * | 2021-11-17 | 2022-02-11 | 北京蜂鸟视图科技有限公司 | System and method for generating closed surface during map construction based on CAD (computer-aided design) electronic drawing |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070185651A1 (en) * | 2006-02-07 | 2007-08-09 | Masaki Motoyama | Navigation system utilizing XML/SVG map data converted from geographic map data and layered structure of XML/SVG map data based on administrative regions |
CN102105809A (en) * | 2008-07-11 | 2011-06-22 | 诺基亚公司 | Method providing positioning and navigation inside large buildings |
CN103187002A (en) * | 2011-12-29 | 2013-07-03 | 北京移动坚石信息技术有限公司 | Method for generating electronic map |
CN103809959A (en) * | 2013-09-29 | 2014-05-21 | 国家电网公司 | Method for transforming VG (vector graphics) graph into SVG (scalable vector graphics) graph |
CN104103211A (en) * | 2013-04-09 | 2014-10-15 | 广东美晨通讯有限公司 | Indoor electronic map construction method and system |
CN106326565A (en) * | 2016-08-25 | 2017-01-11 | 中车青岛四方机车车辆股份有限公司 | Method for quickly transforming three-dimension design engineering drawing |
CN107220357A (en) * | 2017-06-05 | 2017-09-29 | 广东亿迅科技有限公司 | The visual implementation method of SVG map datums and device |
-
2017
- 2017-11-29 CN CN201711234837.2A patent/CN108009346B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070185651A1 (en) * | 2006-02-07 | 2007-08-09 | Masaki Motoyama | Navigation system utilizing XML/SVG map data converted from geographic map data and layered structure of XML/SVG map data based on administrative regions |
CN102105809A (en) * | 2008-07-11 | 2011-06-22 | 诺基亚公司 | Method providing positioning and navigation inside large buildings |
CN103187002A (en) * | 2011-12-29 | 2013-07-03 | 北京移动坚石信息技术有限公司 | Method for generating electronic map |
CN104103211A (en) * | 2013-04-09 | 2014-10-15 | 广东美晨通讯有限公司 | Indoor electronic map construction method and system |
CN103809959A (en) * | 2013-09-29 | 2014-05-21 | 国家电网公司 | Method for transforming VG (vector graphics) graph into SVG (scalable vector graphics) graph |
CN106326565A (en) * | 2016-08-25 | 2017-01-11 | 中车青岛四方机车车辆股份有限公司 | Method for quickly transforming three-dimension design engineering drawing |
CN107220357A (en) * | 2017-06-05 | 2017-09-29 | 广东亿迅科技有限公司 | The visual implementation method of SVG map datums and device |
Non-Patent Citations (5)
Title |
---|
XUETAO YIN 等: "Generating 3D Building Models", 《IEEE COMPUTER GRAPHICS AND APPLICATIONS 》 * |
刘辉等: "DXF到SVG图元转换关键问题分析", 《天津工业大学学报》 * |
柳玲等: "CAD文件转换为SVG文件的探讨", 《计算机应用》 * |
胡卫军 等: "一种面向领域应用的SVG标准图库生成算法研究", 《计算机工程与科学》 * |
魏建军 等: "基于XML的AutoCAD图形与SVG图形转换研究", 《微电子学与计算机》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109636887A (en) * | 2018-11-29 | 2019-04-16 | 北京宇航系统工程研究所 | A kind of conversion of Two-dimensional electron technical drawing format and vector quantization interactive system |
CN109636887B (en) * | 2018-11-29 | 2023-06-06 | 北京宇航系统工程研究所 | Two-dimensional electronic technology drawing format conversion and vectorization interaction system |
CN110375744A (en) * | 2019-08-02 | 2019-10-25 | 金瓜子科技发展(北京)有限公司 | A kind of path processing method and device |
CN110968944A (en) * | 2019-11-19 | 2020-04-07 | 金现代信息产业股份有限公司 | Method for displaying and operating CAD drawing at Web front end |
CN110968944B (en) * | 2019-11-19 | 2023-08-15 | 金现代信息产业股份有限公司 | Method for displaying and operating CAD drawing on Web front end |
CN111638878A (en) * | 2020-04-26 | 2020-09-08 | 华为终端有限公司 | Method and device for processing style of icon |
WO2021218501A1 (en) * | 2020-04-26 | 2021-11-04 | 华为技术有限公司 | Method and device for icon style processing |
CN111638878B (en) * | 2020-04-26 | 2023-06-02 | 华为终端有限公司 | Method and device for style processing of icons |
CN111854758A (en) * | 2020-07-03 | 2020-10-30 | 湖北枫丹白露智慧标识科技有限公司 | Indoor navigation map conversion method and system based on building CAD (computer-aided design) drawing |
CN113790730A (en) * | 2021-08-31 | 2021-12-14 | 北京航空航天大学 | Mobile robot navigation map conversion method and system based on DXF format |
CN114036616A (en) * | 2021-11-17 | 2022-02-11 | 北京蜂鸟视图科技有限公司 | System and method for generating closed surface during map construction based on CAD (computer-aided design) electronic drawing |
Also Published As
Publication number | Publication date |
---|---|
CN108009346B (en) | 2021-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108009346A (en) | According to the method for DXF form engineering drawing Fast Drawing SVG form maps | |
CN108228183B (en) | Front-end interface code generation method and device, electronic equipment and storage medium | |
CN104572647B (en) | Annotation equipment and mask method | |
CN104008252A (en) | Method for automatically generating plane-section drawing of underground cable duct lines | |
CN108761451A (en) | A kind of land use change survey intelligent Understanding method based on multi-temporal remote sensing image | |
CN103366633A (en) | Water conservation map data model-based flood risk map drawing method and system thereof | |
CN1936892A (en) | Image content semanteme marking method | |
CN105631113B (en) | Nuclear power engineering pipeline ISO (International standards organization) diagram customizing method | |
CN106202004A (en) | Combined data cutting method based on regular expressions and separator | |
CN110688687B (en) | Method for batch generation of reclaimed resource survey maps for urban and rural construction land | |
CN108986638A (en) | A kind of method of sea chart thematic map rapid drafting | |
CN104699758B (en) | The commanding document intelligent generating system and method for a kind of graphics and text library association | |
CN103955909A (en) | Method and system for manufacturing thematic map by fusing images based on MapGISK9 | |
CN102509314A (en) | Quick generating method for sunlight greenhouse construction drawing | |
CN113626455A (en) | Method and device for updating picture library in linkage manner, electronic equipment and storage medium | |
CN108287954A (en) | Hull structural design auxiliary system and Ship Structure method for drafting | |
CN101739498B (en) | Method for accurately designing and building ArcGIS symbol library | |
CN106898245B (en) | A kind of mask method and device of writing | |
CN113221773B (en) | Method for quickly constructing airplane classification data set based on remote sensing image | |
CN102184300A (en) | Label rectangular graph computer produced drawing method | |
CN108363879A (en) | Data processing method suitable for image of clothing | |
CN115375795A (en) | Rapid plotting method for flood frequency analysis | |
CN102467573B (en) | Digital mapping simplicity compiling method and internal sort method are auxiliary bee-line ranking method | |
CN109614602A (en) | A kind of rapid generation of profile measurement report | |
CN110675729B (en) | Multi-version local geographic information integrated drawing method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |