Skip to content

Commit c037f8a

Browse files
uclaroswonder-sk
authored andcommittedApr 13, 2023
fix point count
1 parent 966c6b4 commit c037f8a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
 

‎src/core/pointcloud/qgspointcloudsubindex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class QgsPointCloudSubIndex
3434
QString uri;
3535
QgsRectangle extent;
3636
QgsGeometry geometry;
37-
qint64 count;
37+
qint64 count = 0;
3838
};
3939

4040
///@endcond

‎src/core/providers/vpc/qgsvirtualpointcloudprovider.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ void QgsVirtualPointCloudProvider::parseFile()
310310
}
311311
mPolygonBounds->addPart( si.geometry );
312312
mSubLayers.push_back( si );
313+
mPointCount += si.count;
313314
}
314315
mExtent = mPolygonBounds->boundingBox();
315316
populateAttributeCollection( attributeNames );

‎src/core/providers/vpc/qgsvirtualpointcloudprovider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class QgsVirtualPointCloudProvider: public QgsPointCloudDataProvider
7070

7171
QStringList mUriList;
7272
QgsRectangle mExtent;
73-
qint64 mPointCount;
73+
qint64 mPointCount = 0;
7474
QgsCoordinateReferenceSystem mCrs;
7575
};
7676

0 commit comments

Comments
 (0)
Please sign in to comment.