@@ -18,22 +18,78 @@ namespace pdal
1818#include < stdbool.h> // for bool
1919#include < stdint.h> // for uint64_t
2020#endif
21+ /* *
22+ * Disposes the provided point `view`.
23+ *
24+ * @param view The point view to dispose
25+ */
2126 PDAL_C_API void PDALDisposePointView (PDALPointViewPtr view);
2227
28+ /* *
29+ * Returns the ID of the provided point `view`.
30+ *
31+ * @see pdal::PointView::id
32+ *
33+ * @param view The point view
34+ * @return The view's ID
35+ */
2336 PDAL_C_API int PDALGetPointViewId (PDALPointViewPtr view);
2437
38+ /* *
39+ * Returns the number of points in the provided `view`.
40+ *
41+ * @see pdal::PointView::size
42+ *
43+ * @param view The point view
44+ * @return The number of points
45+ */
2546 PDAL_C_API uint64_t PDALGetPointViewSize (PDALPointViewPtr view);
2647
48+ /* *
49+ * Returns whether the provided point `view` is empty, i.e., has no points.
50+ *
51+ * @see pdal::PointView::empty
52+ *
53+ * @param view The point view
54+ * @return Whether the point view is empty
55+ */
2756 PDAL_C_API bool PDALIsPointViewEmpty (PDALPointViewPtr view);
57+
2858 /* *
59+ * Clones the provided point `view`.
60+ *
2961 * @see pdal::PointView::makeNew
62+ *
63+ * @param view The original point view
64+ * @return A pointer to the new point view
3065 */
3166 PDAL_C_API PDALPointViewPtr PDALClonePointView (PDALPointViewPtr view);
3267
68+ /* *
69+ * Returns the proj4 projection string for the provided point `view`.
70+ *
71+ * @see pdal::PointView::spatialReference
72+ *
73+ * @param view The point view
74+ * @param[out] proj The buffer used to hold the resulting proj4 projection string
75+ * @param size The size of the proj4 projection string buffer
76+ * @return The size of the resulting proj4 projection string
77+ */
3378 PDAL_C_API size_t PDALGetPointViewProj4 (PDALPointViewPtr view, char *proj, size_t size);
3479
80+ /* *
81+ * Returns the Well-Known Text (WKT) projection string for the provided point `view`.
82+ * @see pdal::PointView::spatialReference
83+ *
84+ * @param view The point view
85+ * @param[out] wkt The buffer used to hold the resulting WKT projection string
86+ * @param size The size of the wkt projection string buffer
87+ * @param pretty Whether to enhance the formatting of the resulting WKT string
88+ * @return The size of the resulting WKT projection string
89+ */
3590 PDAL_C_API size_t PDALGetPointViewWkt (PDALPointViewPtr view, char *wkt, size_t size, bool pretty);
3691
92+ // ! PDAL_C_API PDALPointLayoutPtr PDALGetPointViewLayout(PDALPointViewPtr view);
3793
3894 /* *
3995 * Fill a buffer with point data specified by the dimension list.
@@ -42,10 +98,19 @@ namespace pdal
4298 * @param idx Index of point to get.
4399 * @param[out] buf Pointer to buffer to fill.
44100 */
101+ // ! PDAL_C_API void getPackedPoint(const DimTypeList& dims, PointId idx, char *buf);
45102
103+ // ! PDAL_C_API void getPackedPoints(const DimTypeList& dims, PointId idx, char *buf);
46104
47105 /* *
106+ * Fill a buffer with point data specified by the dimension list, accounts index
107+ * Using this functions it is possible to pack all points into one buffer
108+ * @param pv PointView pointer.
109+ * @param dims List of dimensions/types to retrieve.
110+ * @param idx Index of point to get.
111+ * @param buf Pointer to buffer to fill
48112 */
113+ // ! PDAL_C_API void appendPackedPoint(PointViewPtr pv, const DimTypeList& dims, PointId idx, std::size_t pointSize, char *buf)
49114
50115#ifdef __cplusplus
51116 }
0 commit comments