summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 11:27:29 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 11:27:29 +0000
commitcbfe23db1ade31d9190aeba2ef6380d7ac2480ba (patch)
treee93da2204aa2297f400e0d7ebd5a5e330de10a66
parentd3d1a2b377a19a845abb5b1c92ec835051b58396 (diff)
automatic import of python-laspy
-rw-r--r--.gitignore1
-rw-r--r--python-laspy.spec327
-rw-r--r--sources1
3 files changed, 329 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f2ea653 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/laspy-2.4.1.tar.gz
diff --git a/python-laspy.spec b/python-laspy.spec
new file mode 100644
index 0000000..1a47059
--- /dev/null
+++ b/python-laspy.spec
@@ -0,0 +1,327 @@
+%global _empty_manifest_terminate_build 0
+Name: python-laspy
+Version: 2.4.1
+Release: 1
+Summary: Native Python ASPRS LAS read/write library
+License: BSD
+URL: https://github.com/laspy/laspy
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7a/68/c864ea8e55c1fc3f1259375a0a31c60a06618cda4e14572c7d0e0aada6c2/laspy-2.4.1.tar.gz
+BuildArch: noarch
+
+
+%description
+# Laspy
+
+Laspy is a python library for reading, modifying and creating LAS LiDAR
+files.
+
+Laspy is compatible with Python 3.7+.
+
+## Features
+
+- LAS support.
+- LAZ support via `lazrs` or `laszip` backend.
+- LAS/LAZ streamed/chunked reading/writting.
+- [COPC] support over files.
+- [COPC] support over https with `requests` package.
+- CRS support via `pyproj` package.
+
+
+[COPC]: https://github.com/copcio/copcio.github.io
+
+
+## Examples
+
+Directly read and write las
+```Python
+import laspy
+
+las = laspy.read('filename.las')
+las.points = las.points[las.classification == 2]
+las.write('ground.laz')
+```
+
+
+Open data to inspect header (opening only reads the header and vlrs)
+
+```Python
+import laspy
+
+with laspy.open('filename.las') as f:
+ print(f"Point format: {f.header.point_format}")
+ print(f"Number of points: {f.header.point_count}")
+ print(f"Number of vlrs: {len(f.header.vlrs)}")
+```
+Use the 'chunked' reading & writing features
+
+```Python
+import laspy
+
+with laspy.open('big.laz') as input_las:
+ with laspy.open('ground.laz', mode="w", header=input_las.header) as ground_las:
+ for points in input_las.chunk_iterator(2_000_000):
+ ground_las.write_points(points[points.classification == 2])
+
+```
+
+Appending points to existing file
+
+```Python
+import laspy
+
+with laspy.open('big.laz') as input_las:
+ with laspy.open('ground.laz', mode="a") as ground_las:
+ for points in input_las.chunk_iterator(2_000_000):
+ ground_las.append_points(points[points.classification == 2])
+```
+
+API Documentation and tutorials are available at
+[ReadTheDocs](https://laspy.readthedocs.io/en/latest/).
+
+## Installation
+
+Laspy can be installed either with `pip`:
+
+```
+pip install laspy # without LAZ support
+# Or
+pip install laspy[laszip] # with LAZ support via LASzip
+# Or
+pip install laspy[lazrs] # with LAZ support via lazrs
+```
+
+## Changelog
+
+See [CHANGELOG.md](CHANGELOG.md)
+
+
+
+
+%package -n python3-laspy
+Summary: Native Python ASPRS LAS read/write library
+Provides: python-laspy
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-laspy
+# Laspy
+
+Laspy is a python library for reading, modifying and creating LAS LiDAR
+files.
+
+Laspy is compatible with Python 3.7+.
+
+## Features
+
+- LAS support.
+- LAZ support via `lazrs` or `laszip` backend.
+- LAS/LAZ streamed/chunked reading/writting.
+- [COPC] support over files.
+- [COPC] support over https with `requests` package.
+- CRS support via `pyproj` package.
+
+
+[COPC]: https://github.com/copcio/copcio.github.io
+
+
+## Examples
+
+Directly read and write las
+```Python
+import laspy
+
+las = laspy.read('filename.las')
+las.points = las.points[las.classification == 2]
+las.write('ground.laz')
+```
+
+
+Open data to inspect header (opening only reads the header and vlrs)
+
+```Python
+import laspy
+
+with laspy.open('filename.las') as f:
+ print(f"Point format: {f.header.point_format}")
+ print(f"Number of points: {f.header.point_count}")
+ print(f"Number of vlrs: {len(f.header.vlrs)}")
+```
+Use the 'chunked' reading & writing features
+
+```Python
+import laspy
+
+with laspy.open('big.laz') as input_las:
+ with laspy.open('ground.laz', mode="w", header=input_las.header) as ground_las:
+ for points in input_las.chunk_iterator(2_000_000):
+ ground_las.write_points(points[points.classification == 2])
+
+```
+
+Appending points to existing file
+
+```Python
+import laspy
+
+with laspy.open('big.laz') as input_las:
+ with laspy.open('ground.laz', mode="a") as ground_las:
+ for points in input_las.chunk_iterator(2_000_000):
+ ground_las.append_points(points[points.classification == 2])
+```
+
+API Documentation and tutorials are available at
+[ReadTheDocs](https://laspy.readthedocs.io/en/latest/).
+
+## Installation
+
+Laspy can be installed either with `pip`:
+
+```
+pip install laspy # without LAZ support
+# Or
+pip install laspy[laszip] # with LAZ support via LASzip
+# Or
+pip install laspy[lazrs] # with LAZ support via lazrs
+```
+
+## Changelog
+
+See [CHANGELOG.md](CHANGELOG.md)
+
+
+
+
+%package help
+Summary: Development documents and examples for laspy
+Provides: python3-laspy-doc
+%description help
+# Laspy
+
+Laspy is a python library for reading, modifying and creating LAS LiDAR
+files.
+
+Laspy is compatible with Python 3.7+.
+
+## Features
+
+- LAS support.
+- LAZ support via `lazrs` or `laszip` backend.
+- LAS/LAZ streamed/chunked reading/writting.
+- [COPC] support over files.
+- [COPC] support over https with `requests` package.
+- CRS support via `pyproj` package.
+
+
+[COPC]: https://github.com/copcio/copcio.github.io
+
+
+## Examples
+
+Directly read and write las
+```Python
+import laspy
+
+las = laspy.read('filename.las')
+las.points = las.points[las.classification == 2]
+las.write('ground.laz')
+```
+
+
+Open data to inspect header (opening only reads the header and vlrs)
+
+```Python
+import laspy
+
+with laspy.open('filename.las') as f:
+ print(f"Point format: {f.header.point_format}")
+ print(f"Number of points: {f.header.point_count}")
+ print(f"Number of vlrs: {len(f.header.vlrs)}")
+```
+Use the 'chunked' reading & writing features
+
+```Python
+import laspy
+
+with laspy.open('big.laz') as input_las:
+ with laspy.open('ground.laz', mode="w", header=input_las.header) as ground_las:
+ for points in input_las.chunk_iterator(2_000_000):
+ ground_las.write_points(points[points.classification == 2])
+
+```
+
+Appending points to existing file
+
+```Python
+import laspy
+
+with laspy.open('big.laz') as input_las:
+ with laspy.open('ground.laz', mode="a") as ground_las:
+ for points in input_las.chunk_iterator(2_000_000):
+ ground_las.append_points(points[points.classification == 2])
+```
+
+API Documentation and tutorials are available at
+[ReadTheDocs](https://laspy.readthedocs.io/en/latest/).
+
+## Installation
+
+Laspy can be installed either with `pip`:
+
+```
+pip install laspy # without LAZ support
+# Or
+pip install laspy[laszip] # with LAZ support via LASzip
+# Or
+pip install laspy[lazrs] # with LAZ support via lazrs
+```
+
+## Changelog
+
+See [CHANGELOG.md](CHANGELOG.md)
+
+
+
+
+%prep
+%autosetup -n laspy-2.4.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-laspy -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.4.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..7ae6928
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+acf0056e0398cf61e758d3da2dd88427 laspy-2.4.1.tar.gz