%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 - 2.4.1-1 - Package Spec generated