Converts engineering 'DWG' drawings ('AutoCAD' 2013+ format) to 'GeoJSON' entirely in-process, with no 'CAD' software, 'LibreDWG', or 'GDAL' required. Wraps the pure-Rust 'dwg2geo' conversion core <https://github.com/milkway/dwg2geo>, which reads the 'DWG' format with the third-party 'acadrust' library by Hakan AK <https://github.com/hakanaktt/acadrust> (Mozilla Public License 2.0), bundled with the package: every feature carries resolved 'CAD' style metadata (layer, colour, line weight, text), skipped and failed entities are reported with reasons, and the output is deterministic: the same bytes always produce byte-identical 'GeoJSON'. Coordinates are kept in the drawing's local system; the package never guesses a coordinate reference system. Not affiliated with 'Autodesk'; 'DWG' and 'AutoCAD' are trademarks of 'Autodesk, Inc.'.
| Version: | 0.2.5 |
| Depends: | R (≥ 4.2) |
| Imports: | cli, jsonlite, rlang, tibble |
| Suggests: | sf, testthat (≥ 3.0.0), withr |
| Published: | 2026-11-30 |
| DOI: | 10.32614/CRAN.package.dwg2geo |
| Author: | André Leite dwg2geo author details |
| Maintainer: | André Leite <leite at castlab.org> |
| BugReports: | https://github.com/milkway/dwg2geo-r/issues |
| License: | MIT + file LICENSE |
| Copyright: | The R interface and the 'dwg2geo' conversion core are
copyright of the package authors. The bundled 'acadrust' crate,
which reads the 'DWG' format, is copyright of Hakan AK and
distributed under the Mozilla Public License 2.0; its source is
included in src/rust/vendor.tar.xz and the license text in
inst/COPYRIGHTS. See inst/AUTHORS for the copyright holders and
licenses of all bundled 'Rust' crates. dwg2geo copyright details |
| URL: | https://milkway.github.io/dwg2geo-r/, https://github.com/milkway/dwg2geo-r |
| NeedsCompilation: | yes |
| SystemRequirements: | Cargo (Rust's package manager), rustc (>= 1.85) |
| Materials: | README, NEWS |
| CRAN checks: | dwg2geo results |
| Reference manual: | dwg2geo.html , dwg2geo.pdf |
| Package source: | dwg2geo_0.2.5.tar.gz |
| Windows binaries: | r-devel: dwg2geo_0.2.4.zip, r-release: dwg2geo_0.2.4.zip, r-oldrel: dwg2geo_0.2.4.zip |
| macOS binaries: | r-release (arm64): dwg2geo_0.2.5.tgz, r-oldrel (arm64): dwg2geo_0.2.5.tgz, r-release (x86_64): dwg2geo_0.2.5.tgz, r-oldrel (x86_64): dwg2geo_0.2.5.tgz |
| Old sources: | dwg2geo archive |
Please use the canonical form https://CRAN.R-project.org/package=dwg2geo to link to this page.