Coder Social home page Coder Social logo

wjjpt / cad2gis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from open-indoor/cad2gis

0.0 0.0 0.0 66 KB

Convert AutoCAD file to geojson format

License: GNU General Public License v3.0

Shell 1.12% Python 23.70% HTML 73.06% Dockerfile 2.12%

cad2gis's Introduction

cad2gis

Tool to convert autocad file format to geojson file format

Build and run

with docker

$ docker build . -t openindoor/cad2gis
$ docker run --rm openindoor/cad2gis

with docker-compose

docker-compose up cad2gis

Usage

Specs

https://cad2gis.openindoor.io/api/convert/_LNG_/_LAT_/_XOFFSET_/_YOFFSET_/_ROTATION_/_SCALE_

Example

curl -F "file=@data/my_dxf.dxf" \
    https://cad2gis.openindoor.io/api/convert/3.93/43.56 \
    > my_geojson.geojson

Result:

Latitude/longitude located

Play with XOFFSET and YOFFSET

curl -F "file=@data/my_dxf.dxf" \
    https://cad2gis.openindoor.io/api/cad2gis/convert/3.93/43.56/0.01/0.0 \
    > my_geojson.geojson

xoffset (longitude)

curl -F "file=@cad2gis/data/kingconf/sett_22-11_23.dxf"     https://cad2gis.openindoor.io/api/convert/3.93/43.56/0.01/0.0 > cad2gis/data/kingconf/sett_22-11_23.geojson

Other...

curl \
    -F "file=@cad2gis/data/kingconf/sett_22-11_23.dxf" \
    -F "setup=@cad2gis/data/kingconf/setup.json" \
    https://cad2gis.openindoor.io/api/convert/3.9425/43.5695/0.0/0.0/236.23/0.25 \
    > cad2gis/data/kingconf/sett_22-11_23.geojson
curl \
    -F "file=@cad2gis/data/kingconf/sett_22-11_23.dxf" \
    -F "setup=@cad2gis/data/kingconf/setup.json" \
    https://cad2gis.openindoor.io/api/convert/3.94238/43.56971/0.0/0.0/236.23/0.25 \
    > cad2gis/data/kingconf/sett_22-11_23.geojson

744.61 187.26

43,5705037, 3,9510574 43,5707698, 3,9509225 0,0002661, -0,0001349

cad2gis's People

Contributors

cigone-openindoor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.