Coder Social home page Coder Social logo

dxf_utils's Introduction

dxf_utils's People

Contributors

csempe17 avatar zsiki avatar zvezdochiot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

csabiegeto loop80

dxf_utils's Issues

TXT->DXF(LAYERS)?

In https://geodesist.ru/threads/ehksport-iz-leica-ts07.87240/ the question arose of converting TXT to DXF so that all points were decomposed into layers, and the layer corresponds to the point code:

27.03.21.TXT:

RP1,1000.0000,1000.0000,100.0000,,,,,,,,,
A1,1001.3467,998.0560,101.8736,DER,,,,,,,,
A2,999.5654,998.6857,102.0377,DER,,,,,,,,

"the point code" == $5 (default = "0")

Any ideas?

SDR2CSV?

โ“ Maybe add SDR2CSV?

$ cat sdr2csv.sh 
#!/bin/sh

awk '{ if (substr($0,1,2)=="02") print (substr($0,5,16) "," substr($0,21,16) "," substr($0,37,16) "," substr($0,53,16) "," substr($0,69,16) "," substr($0,85,16) "," substr($0,101,16)); }' "$1" | awk '{$1=$1};1' > "$1.xyh0.csv"
awk '{ if (substr($0,1,2)=="08") print (substr($0,5,16) "," substr($0,21,16) "," substr($0,37,16) "," substr($0,53,16) "," substr($0,69,16) "," substr($0,85,16)); }' "$1" | awk '{$1=$1};1' > "$1.xyh.csv"
awk '{ if (substr($0,1,2)=="09") print (substr($0,5,16) "," substr($0,21,16) "," substr($0,37,16) "," substr($0,53,16) "," substr($0,69,16) "," substr($0,85,16) "," substr($0,101,16)); }' "$1" | awk '{$1=$1};1' > "$1.svb.csv"

/bin/gawk: bad interpreter

$ ./blk_list.awk
/bin/gawk: bad interpreter: No such file or directory

$ head -n 1 blk_list.awk
#!/bin/gawk -f

$ command -v gawk
/usr/bin/gawk

$ command -v awk
/usr/bin/awk

$ file /usr/bin/awk
/usr/bin/awk: symbolic link to /etc/alternatives/awk

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.