File: test_las_1_1.py

package info (click to toggle)
python-laspy 2.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,928 kB
  • sloc: python: 9,065; makefile: 20
file content (22 lines) | stat: -rw-r--r-- 443 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import io
from pathlib import Path

import laspy

simple_1_1 = Path(__file__).parent / "data" / "simple1_1.las"


def test_read_las_1_1():
    las = laspy.read(simple_1_1)


def test_create_las_1_1():
    las = laspy.create(point_format=1, file_version="1.1")


def write_las_1_1():
    las = laspy.create(point_format=1, file_version="1.1")
    with io.BytesIO() as out:
        las.write(out)
        out.seek(0)
        las = las.read(out)