ign-pdal-tools 1.8.0__py3-none-any.whl → 1.8.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ign_pdal_tools-1.8.0.dist-info → ign_pdal_tools-1.8.1.dist-info}/METADATA +1 -1
- {ign_pdal_tools-1.8.0.dist-info → ign_pdal_tools-1.8.1.dist-info}/RECORD +7 -7
- {ign_pdal_tools-1.8.0.dist-info → ign_pdal_tools-1.8.1.dist-info}/WHEEL +1 -1
- pdaltools/_version.py +1 -1
- pdaltools/add_points_in_pointcloud.py +4 -5
- {ign_pdal_tools-1.8.0.dist-info → ign_pdal_tools-1.8.1.dist-info}/licenses/LICENSE.md +0 -0
- {ign_pdal_tools-1.8.0.dist-info → ign_pdal_tools-1.8.1.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
ign_pdal_tools-1.8.
|
|
2
|
-
pdaltools/_version.py,sha256=
|
|
3
|
-
pdaltools/add_points_in_pointcloud.py,sha256
|
|
1
|
+
ign_pdal_tools-1.8.1.dist-info/licenses/LICENSE.md,sha256=iVzCFZTUXeiqP8bP474iuWZiWO_kDCD4SPh1Wiw125Y,1120
|
|
2
|
+
pdaltools/_version.py,sha256=h3YpE0kofxFLptgIZDqRkDU33Y3pyOvd2HkmX5qItO8,74
|
|
3
|
+
pdaltools/add_points_in_pointcloud.py,sha256=-xFdqrBr5KC-5ab7g-poaG2rR8dcbyKP9bLFbfd2V2c,12513
|
|
4
4
|
pdaltools/color.py,sha256=vJgpb8dOvT5rnq5NdVOaMdGc_pKL3damLy4HwGvigJQ,14472
|
|
5
5
|
pdaltools/las_add_buffer.py,sha256=sBpTywlfsHHS8KuCUa-eydB2hylshEvjrMQt5TrqXb8,11275
|
|
6
6
|
pdaltools/las_clip.py,sha256=GvEOYu8RXV68e35kU8i42GwSkbo4P9TvmS6rkrdPmFM,1034
|
|
@@ -11,7 +11,7 @@ pdaltools/pcd_info.py,sha256=NIAH5KGikVDQLlbCcw9FuaPqe20UZvRfkHsDZd5kmZA,3210
|
|
|
11
11
|
pdaltools/replace_attribute_in_las.py,sha256=po1F-fi8s7iilqKWaryW4JRbsmdMOUe0yGvG3AEKxtk,4771
|
|
12
12
|
pdaltools/standardize_format.py,sha256=gqm2GJbtDkT4k4oC_NX2LIPh9R2BLh4sMHLKYgfKrMc,3973
|
|
13
13
|
pdaltools/unlock_file.py,sha256=pIThdWMNkTph0xgJVVRaM1o9aUMQhM6804PscScB3JI,1963
|
|
14
|
-
ign_pdal_tools-1.8.
|
|
15
|
-
ign_pdal_tools-1.8.
|
|
16
|
-
ign_pdal_tools-1.8.
|
|
17
|
-
ign_pdal_tools-1.8.
|
|
14
|
+
ign_pdal_tools-1.8.1.dist-info/METADATA,sha256=BNBK2WhJ6rfeHGcRdERPiKzAbIH_bsi7avbmYpH2Df4,5777
|
|
15
|
+
ign_pdal_tools-1.8.1.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
16
|
+
ign_pdal_tools-1.8.1.dist-info/top_level.txt,sha256=KvGW0ZzqQbhCKzB5_Tp_buWMZyIgiO2M2krWF_ecOZc,10
|
|
17
|
+
ign_pdal_tools-1.8.1.dist-info/RECORD,,
|
pdaltools/_version.py
CHANGED
|
@@ -127,6 +127,9 @@ def add_points_to_las(
|
|
|
127
127
|
crs (str): CRS of the data.
|
|
128
128
|
virtual_points_classes (int): The classification value to assign to those virtual points (default: 66).
|
|
129
129
|
"""
|
|
130
|
+
# Copy data pointcloud
|
|
131
|
+
copy2(input_las, output_las)
|
|
132
|
+
|
|
130
133
|
if input_points_with_z.empty:
|
|
131
134
|
print(
|
|
132
135
|
"No points to add. All points of the geojson file are outside the tile. Copying the input file to output"
|
|
@@ -141,7 +144,7 @@ def add_points_to_las(
|
|
|
141
144
|
classes = virtual_points_classes * np.ones(nb_points)
|
|
142
145
|
|
|
143
146
|
# Open the input LAS file to check and possibly update the header of the output
|
|
144
|
-
with laspy.open(input_las) as las:
|
|
147
|
+
with laspy.open(input_las, "r") as las:
|
|
145
148
|
header = las.header
|
|
146
149
|
if not header:
|
|
147
150
|
header = laspy.LasHeader(point_format=8, version="1.4")
|
|
@@ -152,11 +155,7 @@ def add_points_to_las(
|
|
|
152
155
|
raise ValueError(f"Invalid CRS: {crs}")
|
|
153
156
|
header.add_crs(crs_obj)
|
|
154
157
|
|
|
155
|
-
# Copy data pointcloud
|
|
156
|
-
copy2(input_las, output_las)
|
|
157
|
-
|
|
158
158
|
# Add the new points with 3D points
|
|
159
|
-
nb_points = len(x_coords)
|
|
160
159
|
with laspy.open(output_las, mode="a", header=header) as output_las: # mode `a` for adding points
|
|
161
160
|
# create nb_points points with "0" everywhere
|
|
162
161
|
new_points = laspy.ScaleAwarePointRecord.zeros(nb_points, header=header) # use header for input_las
|
|
File without changes
|
|
File without changes
|