渲染大型 DWG 文件在很大程度上显示出性能下降。计划通过传单使用 map 图 block 的概念。需要一些有关如何将 DWG 文件转换为 map 图 block 的指示/信息。
最佳答案
经过太多时间,到处寻找使用任何自动化命令行工具转换 DWG/DXF 文件的解决方案,最后我找到了 QCAD.org .
甚至可以在 Windows、MacOS 和 Linux 上运行。
快速查看文档后,我发现 the section for command line tools .
他们是:
dwg2bmp, dwg2png, dwg2jpeg, dwg2tiff, dxf2png, dxf2jpeg, dxf2tiff
还有很棒的:
dwg2maptiles and dxf2maptiles
使用这个工具,他们使用 leaflet.js 制作了一个漂亮的示例: http://qcad.org/res/map/
The project is OpenSource, but this scripts are only avaliable at QCAD Professional edition. You can use the free open source QCAD Community Edition by downloading the trial version for your platform (Win, Mac, Linux) and then remove the QCAD Professional add-on running in trial mode. Alternatively, you may compile your own package from sources.
PS:我很高兴支持该项目购买专业副本。
关于vector - AutoCAD 绘图 (DWG) 到 map 图 block ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41220477/