CN111538700A - Method for publishing CAD file into electronic map - Google Patents
Method for publishing CAD file into electronic map Download PDFInfo
- Publication number
- CN111538700A CN111538700A CN202010322365.1A CN202010322365A CN111538700A CN 111538700 A CN111538700 A CN 111538700A CN 202010322365 A CN202010322365 A CN 202010322365A CN 111538700 A CN111538700 A CN 111538700A
- Authority
- CN
- China
- Prior art keywords
- file
- sld
- publishing
- generating
- electronic map
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 16
- 230000001172 regenerating effect Effects 0.000 abstract 1
- 230000007547 defect Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/116—Details of conversion of file system types or formats
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/56—Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention relates to a method for publishing a CAD file into an electronic map, which comprises the following steps of analyzing the CAD file in a DWG format, extracting and generating SHP vector files of surfaces, lines, points and marks, correspondingly generating SLD files, analyzing the surface containing relationship in information to form a hierarchical relationship, generating each layer by acquiring the SHP vector file and the corresponding SLD style file by using GeoServer, regenerating a layer according to the hierarchical relationship, externally forming a map interface for front-end calling and displaying, analyzing the CAD file by the method for publishing the electronic map to generate a plurality of SHP vector files and the corresponding SLD style files, superposing the SHP vector files and the corresponding SLD style files according to the hierarchical relationship, and publishing the electronic map, so that the published map can be ensured to be consistent with original maps.
Description
Technical Field
The invention relates to a method for publishing a CAD file into an electronic map.
Background
In the prior art, related tool software is used for secondary development, a CAD file is converted into a layered map, but the method is limited by the functions of the tool software, only SHP is exported, and the original style is lost. Or a manual extraction method, but this may result in the map not being completely consistent with the original map, and the efficiency is relatively low.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: in order to overcome the defects of the prior art, a method for publishing a CAD file into an electronic map is provided.
The technical scheme adopted by the invention for solving the technical problems is as follows: a method for publishing a CAD file into an electronic map comprises the following steps:
1) analyzing the CAD file in the DWG format, extracting and generating an SHP vector file of a surface, a line, a point and a mark, and correspondingly generating an SLD file;
2) analyzing the inclusion relationship of the planes in the information to form a hierarchical relationship;
3) and generating each layer by using the GeoServer through acquiring the SHP vector file and the corresponding SLD style file, and generating a layer group according to the hierarchical relation to externally form a map interface for front-end calling and displaying.
Preferably, in step 1), all lines are an SHP vector file, where each line generates an ID, and the attributes of each line are defined in the SLD file, where the attributes include width, style, and color.
Preferably, in step 1), all the points are an SHP vector file, where each point generates an ID, and the attributes of each point are defined in the SLD file, where the attributes include style and color.
Preferably, in step 1), all the tags are an SHP vector file, wherein each tag generates an ID, and the attributes of each tag, including size, color and font, are defined in the SLD file.
Preferably, in step 2), a pattern is located below the pattern in which it is contained, wherein lines are located above the surface, dots are located above all lines, and marks are located above the dots, lines, and surface.
The method for publishing the CAD file into the electronic map has the advantages that the CAD file is analyzed, a plurality of SHP vector files and corresponding SLD style files are generated, the SHP vector files and the SLD style files are overlaid according to the hierarchical relationship and are published into the map, and the published map can be guaranteed to be consistent with the original map.
Detailed Description
Example (b):
a method for publishing a CAD file into an electronic map comprises the following steps:
1) analyzing the CAD file in the DWG format, extracting and generating an SHP vector file of a surface, a line, a point and a mark, and correspondingly generating an SLD file;
2) analyzing the inclusion relationship of the planes in the information to form a hierarchical relationship;
here, the hierarchical relationship of a face to a face, a graphic is below the graphic that it is contained in, i.e., the contained graphic overlays the contained graphic, thereby ensuring that the graphic is not overlaid.
3) And generating each layer by using the GeoServer through acquiring the SHP vector file and the corresponding SLD style file, and generating a layer group according to the hierarchical relation to externally form a map interface for front-end calling and displaying.
The hierarchical data can be read through the REST interface, and the data are overlaid to form a layer for distribution.
Preferably, in step 1), all lines are an SHP vector file, where each line generates an ID, and the attributes of each line are defined in the SLD file, where the attributes include width, style, and color.
Preferably, in step 1), all the points are an SHP vector file, where each point generates an ID, and the attributes of each point are defined in the SLD file, where the attributes include style and color.
Preferably, in step 1), all the tags are an SHP vector file, wherein each tag generates an ID, and the attributes of each tag, including size, color and font, are defined in the SLD file.
Preferably, in step 2), a pattern is located below the pattern in which it is contained, wherein lines are located above the surface, dots are located above all lines, and marks are located above the dots, lines, and surface.
Compared with the prior art, the method for publishing the CAD file into the electronic map analyzes the CAD file, generates a plurality of SHP vector files and corresponding SLD style files, superposes the SHP vector files and the SLD style files according to the hierarchical relationship, and publishes the SHP vector files into the map, so that the published map can be ensured to be consistent with the original map.
In light of the foregoing description of the preferred embodiment of the present invention, many modifications and variations will be apparent to those skilled in the art without departing from the spirit and scope of the invention. The technical scope of the present invention is not limited to the content of the specification, and must be determined according to the scope of the claims.
Claims (5)
1. A method for publishing a CAD file into an electronic map is characterized by comprising the following steps:
1) analyzing the CAD file in the DWG format, extracting and generating an SHP vector file of a surface, a line, a point and a mark, and correspondingly generating an SLD file;
2) analyzing the inclusion relationship of the planes in the information to form a hierarchical relationship;
3) and generating each layer by using the GeoServer through acquiring the SHP vector file and the corresponding SLD style file, and generating a layer group according to the hierarchical relation to externally form a map interface for front-end calling and displaying.
2. The method for publishing an electronic map from a CAD file as recited in claim 1, wherein in step 1), all lines are an SHP vector file, wherein each line generates an ID, and wherein the attributes of each line are defined in the SLD file, wherein the attributes include width, style, and color.
3. The method of claim 1, wherein in step 1), all points are an SHP vector file, each point generating an ID, and the attributes of each point are defined in the SLD file, the attributes including style and color.
4. The method of publishing an electronic map from a CAD file as recited in claim 1, wherein in step 1), all marks are marked as an SHP vector file, wherein each mark generates an ID, and wherein in the SLD file, attributes of each mark are defined, wherein the attributes include size, color, and font.
5. The method for publishing a CAD file as an electronic map as recited in claim 1, wherein in step 2), a graphic is located at a lower layer of the graphic in which it is contained, wherein lines are located at an upper layer of the surface, dots are located at an upper layer of all lines, and marks are located at the upper layer of the points, lines, and surface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010322365.1A CN111538700A (en) | 2020-04-22 | 2020-04-22 | Method for publishing CAD file into electronic map |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010322365.1A CN111538700A (en) | 2020-04-22 | 2020-04-22 | Method for publishing CAD file into electronic map |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111538700A true CN111538700A (en) | 2020-08-14 |
Family
ID=71979430
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010322365.1A Pending CN111538700A (en) | 2020-04-22 | 2020-04-22 | Method for publishing CAD file into electronic map |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111538700A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113379912A (en) * | 2021-07-01 | 2021-09-10 | 中煤航测遥感集团有限公司 | Map service publishing method, map service publishing device, terminal equipment and readable storage medium |
CN117874150A (en) * | 2023-03-15 | 2024-04-12 | 广州海宁海务技术咨询有限公司 | Method for acquiring global electronic chart layered data |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106610958A (en) * | 2015-10-21 | 2017-05-03 | 星际空间(天津)科技发展有限公司 | Integrated management system of geographic information data |
CN106777811A (en) * | 2017-01-16 | 2017-05-31 | 昆明理工大学 | A kind of traffic channelling Map Design development approach |
CN109299202A (en) * | 2018-08-08 | 2019-02-01 | 中国地质大学(武汉) | A kind of geological spatial data sharing method based on GeoSciML |
CN110069556A (en) * | 2019-03-14 | 2019-07-30 | 武汉众智鸿图科技有限公司 | A kind of DWG format map vector service issuing method and device |
CN110188151A (en) * | 2019-05-17 | 2019-08-30 | 深圳来电科技有限公司 | A kind of method and electronic device generating indoor map based on CAD and GIS |
-
2020
- 2020-04-22 CN CN202010322365.1A patent/CN111538700A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106610958A (en) * | 2015-10-21 | 2017-05-03 | 星际空间(天津)科技发展有限公司 | Integrated management system of geographic information data |
CN106777811A (en) * | 2017-01-16 | 2017-05-31 | 昆明理工大学 | A kind of traffic channelling Map Design development approach |
CN109299202A (en) * | 2018-08-08 | 2019-02-01 | 中国地质大学(武汉) | A kind of geological spatial data sharing method based on GeoSciML |
CN110069556A (en) * | 2019-03-14 | 2019-07-30 | 武汉众智鸿图科技有限公司 | A kind of DWG format map vector service issuing method and device |
CN110188151A (en) * | 2019-05-17 | 2019-08-30 | 深圳来电科技有限公司 | A kind of method and electronic device generating indoor map based on CAD and GIS |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113379912A (en) * | 2021-07-01 | 2021-09-10 | 中煤航测遥感集团有限公司 | Map service publishing method, map service publishing device, terminal equipment and readable storage medium |
CN113379912B (en) * | 2021-07-01 | 2023-09-26 | 中煤航测遥感集团有限公司 | Map service issuing method, device, terminal equipment and readable storage medium |
CN117874150A (en) * | 2023-03-15 | 2024-04-12 | 广州海宁海务技术咨询有限公司 | Method for acquiring global electronic chart layered data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7386789B2 (en) | Method for determining logical components of a document | |
CN106204692B (en) | A kind of ocean section drawing drawing method based on GIS platform | |
KR102177550B1 (en) | Method of automatically recognizing and classifying information of design in imaged PID drawings | |
CN111538700A (en) | Method for publishing CAD file into electronic map | |
JP2011141677A (en) | Apparatus and method for digitizing documents | |
CN102157003B (en) | Automatic configuration method for annotation label of map under digital environment | |
CN110688687B (en) | Method for batch generation of reclaimed resource survey maps for urban and rural construction land | |
CN105139334B (en) | The preparation method of multline text watermark | |
CN105512235B (en) | A kind of GIS and AutoCAD method for interchanging data and intermediate file | |
JP2008176521A (en) | Pattern separation extraction program, pattern separation extraction apparatus and pattern separation extraction method | |
JP5526874B2 (en) | Image processing apparatus and image processing program | |
CN102509314A (en) | Quick generating method for sunlight greenhouse construction drawing | |
CN115393872B (en) | Method, device and equipment for training text classification model and storage medium | |
CN116402020A (en) | Signature imaging processing method, system and storage medium based on OFD document | |
JP2007109179A (en) | Image processing apparatus, its control method, and program | |
JP2006227824A (en) | Drawing recognition method and device | |
CN116245052A (en) | Drawing migration method, device, equipment and storage medium | |
CN111209356A (en) | Cross-platform vector map element symbol rendering method and device based on QGIS | |
CN107240150B (en) | Three-dimensional pipeline digital drawing method | |
CN116541912A (en) | Method and device for generating wiring diagram based on CAD image recognition | |
JP2013003906A (en) | Electronic document decoration device and electronic document decoration program | |
JP4825888B2 (en) | Document image processing apparatus and document image processing method | |
CN114820870A (en) | Nuclear power flow chart auxiliary drawing method and device, computer equipment and storage medium | |
CN110175563B (en) | Metal cutting tool drawing mark identification method and system | |
CN117648914B (en) | File generation method and device and terminal equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200814 |
|
RJ01 | Rejection of invention patent application after publication |