dxf2json

1.0.3 • Public • Published

dxf2json

[![NPM version][npm-image]][npm-url] [![NPM downloads][downloads-image]][downloads-url] [![Build status][travis-image]][travis-url]

convert dxf file into json or geojson format

Getting started

npm install dxf2json --save
const fs = require('fs')
const { DxfParser, toGeojson } = require('dxf2json')

new DxfParser().init('./sample/file2.dxf' , 'out.json')
.then(result=>{
    return result 
})

const content = fs.readFileSync('./sample/file2.dxf', 'utf-8')
new DxfParser().parseContent(content)
.then(result=>{
    return toGeojson(result) 
})

references:

/dxf2json/

    Package Sidebar

    Install

    npm i dxf2json

    Weekly Downloads

    143

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    17.9 MB

    Total Files

    34

    Last publish

    Collaborators

    • xiaoma12634