CN105976313A - Method and system for transforming CAD plane coordinate system to Baidu map coordinate system - Google Patents
Method and system for transforming CAD plane coordinate system to Baidu map coordinate system Download PDFInfo
- Publication number
- CN105976313A CN105976313A CN201610246690.8A CN201610246690A CN105976313A CN 105976313 A CN105976313 A CN 105976313A CN 201610246690 A CN201610246690 A CN 201610246690A CN 105976313 A CN105976313 A CN 105976313A
- Authority
- CN
- China
- Prior art keywords
- cad
- map
- baidu
- coordinate system
- coordinates
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/20—Linear translation of a whole image or part thereof, e.g. panning
Abstract
The invention provides a method for transforming a CAD plane coordinate system to a Baidu map coordinate system, which comprises the steps of 1) loading CAD files so as to acquire all region layers; 2) selecting a region layer to be processed, and transforming all regions in the selected region layer into a point set; 3) traversing point coordinates of a plane coordinate system in the point set in a circulation manner, acquiring coordinates of a longitude-latitude coordinate system supported by a Baidu map through a transformation method, and outputting the coordinates to a file with a specified format; and 4) acquiring a region point set after transformation of the coordinate system, and drawing coordinate points on the map by using a map API provided by the Baidu map. The beneficial effects are that a point set of a Xi'an 80 coordinate system in an original CAD file region layer can be quickly transformed into a coordinate system supported by the Baidu map because of adoption of the technical scheme, and a CAD block can be integrally displayed on the Baidu map. The workload of original manual entry is greatly reduced.
Description
Technical field
The invention belongs to power planning consulting drawing geography informatization field, especially relate to CAD plane coordinate system and be transformed into latitude and longitude coordinates system, method and the system of Baidu's map.
Background technology
When carrying out power planning consulting related work, usually need a city is done unit grid planning, in most cases, operator can only be supplied to CAD diagram paper by power office, the coordinate system of drawing standard is Xi'an1980 coordinate system, in order to there is more geographical location information, it is accomplished by staff and the gridding information in CAD is recorded into, by formulating software, the latitude and longitude coordinates system that Baidu's map is supported, greatly increase workload, this just need badly a kind of can be with fast resolving CAD diagram paper and by the method for coordinate system rapid translating.
Summary of the invention
The invention provides a kind of CAD plane coordinate system and be transformed into latitude and longitude coordinates system, method and the system of Baidu's map, can be with fast resolving CAD diagram paper and by coordinate system rapid translating.
The technical scheme is that and be achieved in that:
A kind of method that CAD plane coordinate system is transformed into Baidu's map coordinates system, comprises the following steps:
1), load cad file and obtain all territory figure layers;
2) to be processed territory figure layer, is selected;By all territories in the figure layer of territory, selected face
It is converted into a set;
3), the point coordinates of searching loop point set midplane coordinate system, obtain, by conversion method, the latitude and longitude coordinates system coordinate that Baidu map is supported, and export in specified format file;
4), above-mentioned steps obtain changing territory, the face point set after coordinate system, coordinate points is plotted on map by the map API utilizing Baidu's map to provide.
Further, described step 1) it is that the CAD Processing Interface provided by Arcgis obtains all territory figure layers in CAD.
Further, described step 2) CAD Processing Interface CadWorkspaceFactoryClass that provided by Arcgis, all territories in the figure layer of territory, selected face are converted into a set.
Further, step 3) described conversion method is: the algorithm of the space conversion provided by Arcgis, the plane coordinates point in the CAD of source, is converted into latitude and longitude coordinates point.
Another aspect of the present invention, a kind of CAD plane coordinate system is transformed into the system of Baidu's map coordinates system, including CAD parsing module, figure layer extraction module, coordinate transferring, output module and Baidu's map drawing module, described CAD parsing module is used for loading cad file and obtains all territory figure layers;Described figure layer extraction module is used for selecting to be processed territory figure layer, and all territories in the figure layer of territory, selected face are converted into a set;Described coordinate transferring, for the point coordinates of searching loop point set midplane coordinate system, obtains, by conversion method, the latitude and longitude coordinates system coordinate that Baidu's map is supported;Described output module is for exporting the latitude and longitude coordinates mooring points set of conversion in specified format file;Described Baidu map drawing module is for reading the point of the latitude and longitude coordinates system in output file, and the API utilizing Baidu's map to provide will show in all point-renderings to Baidu's map.
Further, the CAD Processing Interface that described CAD parsing module link Arcgis provides.
Further, the CAD Processing Interface that described figure layer extraction module link Arcgis provides.
Further, described coordinate transferring link Arcgis software, the algorithm that the space using Arcgis to provide is changed.
The present invention has the advantage that with good effect: owing to using technique scheme, quickly the some set of the Xi'an1980 coordinate system in the figure layer of former cad file face can be converted into the coordinate system that Baidu's map is supported, complete for CAD block can be shown on Baidu's map.Significantly reduce the workload of former manual entry.
Accompanying drawing explanation
Fig. 1 is the FB(flow block) of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention; the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise; broadly falling into the scope of protection of the invention, in the case of not conflicting, the embodiment in the present invention and the feature in embodiment can be mutually combined.
Elaborate a lot of detail in the following description so that fully understanding the present invention, but the present invention can also use other to be different from alternate manner described here to be implemented, those skilled in the art can do similar popularization in the case of intension of the present invention, and therefore the present invention is not limited by following public specific embodiment.
Secondly, in describing the invention, it is to be understood that
ArcGIS: provide the user one telescopic, comprehensive GIS platform.ArcObjects contains substantial amounts of programmable component, relating to face from the object (such as mutual with existing ArcMap document map object) of fine-grained object (the most single geometric object) to coarseness extremely wide, these objects are that developer is integrated with comprehensive GIS function.Each ArcGIS product using ArcObjects to build up provides the container of an application and development for developer, including desktop GIS (ArcGIS Desktop), Embedded GIS (ArcGIS Engine) and service GIS (ArcGIS Server)
GIS: GIS-Geographic Information System (Geographic Information System or Geo-Information system, GIS) is sometimes referred to as " GeoscienceInformation System ".It is a kind of specific highly important space information system.It is under computer hardware and software system is supported, the relevant geographic distribution data in earth top layer (including atmosphere) space all or in part be acquired, store, manage, computing, the technological system analyzing, be shown and described
Coordinate system: coordinate system is the reference frame describing the locus (coordinate) that material exists, and is realized by definition special datum and parametric form thereof.Coordinate is the one group of numerical value describing position.It is generally divided into one-dimensional coordinate (highway mileage upright stone tablet) and two dimension (Cartesian plane rectangular coordinate, Gaussian parabolic line), three-dimensional coordinate (geodetic coordinates, rectangular space coordinate) by the dimension of coordinate.In order to describe or determine position, it is necessary to setting up coordinate system, just coordinate is only present in certain coordinate system the meaning of reality and concrete position.
As it is shown in figure 1, CAD plane coordinate system based on Arcgis is transformed into the latitude and longitude coordinates system, method of Baidu's map, comprise the following steps:
1), load cad file and obtain all territory figure layers;User selects an effective cad file (.DWG form) by software program, and the CAD Processing Interface provided by Arcgis obtains all territory figure layers in CAD;
2), user selects figure layer to be processed;User passes through software interface, selects to need to be processed territory figure layer;CAD Processing Interface CadWorkspaceFactoryClass provided by Arcgis, is resolved in cad file layer then selected by user, all territories in selected layer is converted into a set;
3), above-mentioned steps obtains the some set in all territories, the point coordinates of searching loop set midplane coordinate system, obtain, by conversion method, the latitude and longitude coordinates system coordinate that Baidu's map is supported, and export in polygon.json file, and preserve with UTF-8 coded format;
4), above-mentioned steps obtain changing territory, the face point set after coordinate system, left and right coordinate points is plotted on map by the map API utilizing Baidu's map to provide.
In actual test process, we have found that the method can the most effectively read the point coordinates in CAD diagram layer and can be transformed into latitude and longitude coordinates system.Make effectively be shown on Baidu's map by complete for CAD block in this way, finally give the result making operator satisfied.
The present invention proposes a kind of CAD plane coordinate system based on Arcgis and is transformed into the latitude and longitude coordinates system, method of Baidu's map.The present invention utilizes the characteristic (CAD diagram paper block coordinate system is standard Xi'an1980 coordinate system) of power planning consulting drawing, the point in the territory, face in figure layer to be processed that will need that can be complete to drawing extracts and is converted into the latitude and longitude coordinates system of Baidu's support, is shown in Baidu's map.Substantially increase the work efficiency of designer, and extend to multiple fields such as architectural design and power planning.
Above embodiments of the invention are described in detail, but described content has been only presently preferred embodiments of the present invention, it is impossible to be considered the practical range for limiting the present invention.All impartial changes made according to the present patent application scope and improvement etc., within all should still belonging to the patent covering scope of the present invention.
Claims (8)
1. the method that a CAD plane coordinate system is transformed into Baidu's map coordinates system, it is characterised in that:
Comprise the following steps:
1), load cad file and obtain all territory figure layers;
2) to be processed territory figure layer, is selected;All territories in the figure layer of territory, selected face are converted into a little
Set;
3), the point coordinates of searching loop point set midplane coordinate system, obtain Baidu by conversion method
The latitude and longitude coordinates system coordinate that map is supported, and export in specified format file;
4), above-mentioned steps obtain changing territory, the face point set after coordinate system, utilize Baidu's map to provide
Coordinate points is plotted on map by map API.
CAD plane coordinate system the most according to claim 1 is transformed into the side of Baidu's map coordinates system
Method, it is characterised in that: described step 1) it is that the CAD Processing Interface provided by Arcgis obtains CAD
In all territory figure layers.
CAD plane coordinate system the most according to claim 2 is transformed into the side of Baidu's map coordinates system
Method, it is characterised in that: described step 2) the CAD Processing Interface that provided by Arcgis
All territories in the figure layer of territory, selected face are converted into a set by CadWorkspaceFactoryClass.
CAD plane coordinate system the most according to claim 3 is transformed into the side of Baidu's map coordinates system
Method, it is characterised in that: step 3) described conversion method is: the space conversion provided by Arcgis
Algorithm, the plane coordinates point in the CAD of source, is converted into latitude and longitude coordinates point.
5. a CAD plane coordinate system is transformed into the system of Baidu's map coordinates system, it is characterised in that:
Paint including CAD parsing module, figure layer extraction module, coordinate transferring, output module and Baidu's map
Molding block, described CAD parsing module is used for loading cad file and obtains all territory figure layers;Described figure layer
Extraction module is used for selecting to be processed territory figure layer, is converted in all territories in the figure layer of territory, selected face
Point set;Described coordinate transferring is for the point coordinates of searching loop point set midplane coordinate system, logical
Cross conversion method and obtain the latitude and longitude coordinates system coordinate that Baidu's map is supported;Described output module will be for turning
The latitude and longitude coordinates mooring points set changed exports in specified format file;Described Baidu map drawing module is used
In the point of the latitude and longitude coordinates system read in output file, utilize API that Baidu's map provides by a little
It is plotted in Baidu's map show.
What CAD plane coordinate system the most according to claim 5 was transformed into Baidu's map coordinates system is
System, it is characterised in that: the CAD Processing Interface that described CAD parsing module link Arcgis provides.
What CAD plane coordinate system the most according to claim 6 was transformed into Baidu's map coordinates system is
System, it is characterised in that: the CAD Processing Interface that described figure layer extraction module link Arcgis provides.
What CAD plane coordinate system the most according to claim 7 was transformed into Baidu's map coordinates system is
System, it is characterised in that: described coordinate transferring link Arcgis software, use Arcgis to provide
The algorithm of space conversion.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610246690.8A CN105976313A (en) | 2016-04-19 | 2016-04-19 | Method and system for transforming CAD plane coordinate system to Baidu map coordinate system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610246690.8A CN105976313A (en) | 2016-04-19 | 2016-04-19 | Method and system for transforming CAD plane coordinate system to Baidu map coordinate system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105976313A true CN105976313A (en) | 2016-09-28 |
Family
ID=56993913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610246690.8A Pending CN105976313A (en) | 2016-04-19 | 2016-04-19 | Method and system for transforming CAD plane coordinate system to Baidu map coordinate system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105976313A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106643698A (en) * | 2016-12-20 | 2017-05-10 | 南京国电南自电网自动化有限公司 | Preset two-dimensional bar code identifier-based closed region precise navigation method |
CN106643755A (en) * | 2016-12-20 | 2017-05-10 | 南京国电南自电网自动化有限公司 | Navigation map generation method based on closed region plane graph |
CN106940187A (en) * | 2017-05-02 | 2017-07-11 | 中国神华能源股份有限公司 | The air navigation aid and system quickly patrolled for grass |
CN107169132A (en) * | 2017-06-09 | 2017-09-15 | 中国神华能源股份有限公司 | Draw method, storage device, storage medium and the device of mining map |
CN107885773A (en) * | 2017-09-29 | 2018-04-06 | 深圳高速工程顾问有限公司 | Data processing method and device based on GIS-Geographic Information System |
CN108009301A (en) * | 2017-12-29 | 2018-05-08 | 重庆南华中天信息技术有限公司 | Describe for CAD conduit line maps and show the method and apparatus in Baidu map |
CN108509720A (en) * | 2018-03-31 | 2018-09-07 | 国网浙江省电力有限公司温州供电公司 | A kind of coordinate system conversion method of the subsidiary geological state switching of power pipeline |
CN108952734A (en) * | 2018-05-15 | 2018-12-07 | 同济大学 | A kind of shield-tunneling construction plane vertical section information mobile phone end real-time exhibition method |
CN110310503A (en) * | 2019-07-08 | 2019-10-08 | 北方工业大学 | High-precision positioning system of miniature model car |
CN114608563A (en) * | 2022-05-11 | 2022-06-10 | 成都瑞讯物联科技有限公司 | Navigation map generation method and fusion positioning navigation method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103984787A (en) * | 2013-10-16 | 2014-08-13 | 北京掌尚无限信息技术有限公司 | Vector modeling and display and interaction method of indoor map at mobile terminal |
CN104048659A (en) * | 2014-06-16 | 2014-09-17 | 广州杰赛科技股份有限公司 | Method and system for transforming map coordinate system |
-
2016
- 2016-04-19 CN CN201610246690.8A patent/CN105976313A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103984787A (en) * | 2013-10-16 | 2014-08-13 | 北京掌尚无限信息技术有限公司 | Vector modeling and display and interaction method of indoor map at mobile terminal |
CN104048659A (en) * | 2014-06-16 | 2014-09-17 | 广州杰赛科技股份有限公司 | Method and system for transforming map coordinate system |
Non-Patent Citations (4)
Title |
---|
FENGYICONG461: "《Arcgis中的坐标转换》", 《HTTPS://WENKU.BAIDU.COM/VIEW/A06EB5B55FBFC77DA269B1F6.HTML?FROM=SEARCH》 * |
任东风等: "《CAD到ArcGIS数据转换问题》", 《辽宁工程技术大学学报(自然科学版)》 * |
百度经验: "《在arcgis中如何将面要素转为点要素》", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/A681B0DE0A1C0C3B18434622.HTML》 * |
肖智等: "《ArcGIS软件应用实验指导书》", 31 July 2015, 西南交通大学出版社 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106643698A (en) * | 2016-12-20 | 2017-05-10 | 南京国电南自电网自动化有限公司 | Preset two-dimensional bar code identifier-based closed region precise navigation method |
CN106643755A (en) * | 2016-12-20 | 2017-05-10 | 南京国电南自电网自动化有限公司 | Navigation map generation method based on closed region plane graph |
CN106940187A (en) * | 2017-05-02 | 2017-07-11 | 中国神华能源股份有限公司 | The air navigation aid and system quickly patrolled for grass |
CN106940187B (en) * | 2017-05-02 | 2020-12-11 | 中国神华能源股份有限公司 | Navigation method and system for mine ground rapid inspection |
CN107169132A (en) * | 2017-06-09 | 2017-09-15 | 中国神华能源股份有限公司 | Draw method, storage device, storage medium and the device of mining map |
CN107169132B (en) * | 2017-06-09 | 2020-03-20 | 中国神华能源股份有限公司 | Method, storage device, storage medium and device for drawing mine map |
CN107885773B (en) * | 2017-09-29 | 2019-03-26 | 深圳高速工程顾问有限公司 | Data processing method and device based on GIS-Geographic Information System |
CN107885773A (en) * | 2017-09-29 | 2018-04-06 | 深圳高速工程顾问有限公司 | Data processing method and device based on GIS-Geographic Information System |
CN108009301A (en) * | 2017-12-29 | 2018-05-08 | 重庆南华中天信息技术有限公司 | Describe for CAD conduit line maps and show the method and apparatus in Baidu map |
CN108509720A (en) * | 2018-03-31 | 2018-09-07 | 国网浙江省电力有限公司温州供电公司 | A kind of coordinate system conversion method of the subsidiary geological state switching of power pipeline |
CN108952734A (en) * | 2018-05-15 | 2018-12-07 | 同济大学 | A kind of shield-tunneling construction plane vertical section information mobile phone end real-time exhibition method |
CN108952734B (en) * | 2018-05-15 | 2020-02-14 | 同济大学 | Shield construction flat longitudinal section information mobile phone end real-time display method |
CN110310503A (en) * | 2019-07-08 | 2019-10-08 | 北方工业大学 | High-precision positioning system of miniature model car |
CN110310503B (en) * | 2019-07-08 | 2020-09-08 | 北方工业大学 | High-precision positioning system of miniature model car |
CN114608563A (en) * | 2022-05-11 | 2022-06-10 | 成都瑞讯物联科技有限公司 | Navigation map generation method and fusion positioning navigation method |
CN114608563B (en) * | 2022-05-11 | 2022-07-26 | 成都瑞讯物联科技有限公司 | Navigation map generation method and fusion positioning navigation method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105976313A (en) | Method and system for transforming CAD plane coordinate system to Baidu map coordinate system | |
CN105701103B (en) | Three-dimensional application system based on geographic information | |
CN105701104B (en) | Three-dimensional data engine system based on geographic information | |
Soon et al. | CityGML modelling for Singapore 3D national mapping | |
CN113157665B (en) | Intelligent all-in-one geographic information system | |
CN103177103A (en) | Three-dimensional geographical information system management platform | |
CN104951526A (en) | Three-dimensional model management system | |
CN110516015B (en) | Method for manufacturing geographical PDF map based on map graphic data and DLG | |
CN108038138A (en) | A kind of method for the WGS84 coordinate systems that Google Maps is transformed into from CAD plane coordinate systems | |
US20170186225A1 (en) | Method and apparatus for generating a composite indexable linear data structure to permit selection of map elements based on linear elements | |
Yang et al. | Complementarity of historic building information modelling and geographic information systems | |
CN115114356B (en) | Real-time decryption method based on vector data front-end display | |
Maraş et al. | Topological error correction of GIS vector data | |
CN111968011A (en) | Power planning multi-source data integration method | |
He et al. | Contour line simplification method based on the two‐level Bellman–Ford algorithm | |
Sengul | Extracting semantic building models from aerial stereo images and conversion to CityGML | |
CN114490907A (en) | Method and device for constructing famous city management database and storage medium | |
CN109509234B (en) | Urban building group high-definition grid map vectorization-based method | |
Wang et al. | A propagating update method of multi-represented vector map data based on spatial objective similarity and unified geographic entity code | |
Zhang et al. | Research of vector tile construction technology based on apache sedona | |
CN114238239B (en) | Survey delimitation report generation method and system based on python | |
CN115357675B (en) | Method and system for establishing image control point database through standardized processing of image control points | |
Wadembere et al. | Overcoming Object Misalignment in Geo-Spatial Datasets | |
Skwirosz et al. | The Inventory and Recording of Historic Buildings Using Laser Scanning and Spatial Systems | |
Kunchev | Internet GIS for central balkan national park |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160928 |
|
RJ01 | Rejection of invention patent application after publication |