Зачем конвертировать SHP в DWG?
SHP is a GIS vector format while DWG is the native format for AutoCAD drawings. Engineers and surveyors import GIS data into CAD to use it as a base map for site plans, utility layouts, or land surveys where the rest of the work happens in AutoCAD.
Способы конвертации SHP в DWG
AutoCAD Map 3D APP
Open a DWG in AutoCAD Map 3D, type MAPIMPORT, select the .shp file, set the coordinate system to match your project, and save the drawing as DWG.
FME Form APP
Create a workspace with an Esri Shapefile reader and an AutoCAD DWG writer, add a Reprojector transformer if needed, then run to write the DWG directly.
ogr2ogr OPEN-SOURCE
Run ogr2ogr -f DXF output.dxf input.shp to produce a DXF, then open it in AutoCAD or another CAD application and save as DWG. ogr2ogr ships with QGIS.
Об этих форматах
Файл .shp - это почти всегда Esri Shapefile, представляющий собой геопространственные векторные данные (точки, линии, полигоны), используемые в GIS-программах. Он является частью набора:…
Открыть детали .SHP →Файл DWG - это чертеж CAD, родной формат Autodesk AutoCAD, обычно представляющий собой архитектурный план или инженерный проект. Чтобы бесплатно просмотреть, измерить или распечатать его,…
Открыть детали .DWG →Качество и на что обратить внимание
- Coordinate systems are the biggest risk - always check the
.prjfile and set the matching CRS in AutoCAD before importing, or geometry will appear at the wrong location or scale. - ogr2ogr produces DXF, not DWG; a secondary save step in a CAD application is required to get a DWG file.
- GIS attributes from the Shapefile
.dbfcan be imported as object data in AutoCAD Map 3D; how much carries over depends on the import settings chosen.
Часто задаваемые вопросы
Can I use standard AutoCAD (not Map 3D) to import a Shapefile?
Will polygons convert correctly to DWG?
Does the Shapefile need all its companion files?
.dbf and .shx must be in the same folder as the .shp, and the .prj is essential for correct coordinate placement in the DWG.