pdal::PointView
-
class PointView : public pdal::PointContainer
Public Functions
-
PointView(PointTableRef pointTable)
-
PointView(PointTableRef pointTable, const SpatialReference &srs)
-
virtual ~PointView()
-
PointViewIter begin()
-
PointViewIter end()
-
inline int id() const
-
inline point_count_t size() const
-
inline bool empty() const
-
inline PointViewPtr makeNew() const
Return a new point view with the same point table as this point buffer.
-
inline PointRef point(PointId id)
-
void dump(std::ostream &ostr) const
-
inline std::size_t pointSize() const
-
inline DimTypeList dimTypes() const
-
inline virtual PointLayoutPtr layout() const
-
inline PointTableRef table() const
-
inline SpatialReference spatialReference() const
-
inline void getPackedPoint(const DimTypeList &dims, PointId idx, char *buf) const
Fill a buffer with point data specified by the dimension list.
- Parameters:
dims – [in] List of dimensions/types to retrieve.
idx – [in] Index of point to get.
buf – [in] Pointer to buffer to fill.
-
inline void setPackedPoint(const DimTypeList &dims, PointId idx, const char *buf)
Load the point buffer from memory whose arrangement is specified by the dimension list.
- Parameters:
dims – [in] Dimension/types of data in packed order
idx – [in] Index of point to write.
buf – [in] Packed data buffer.
-
inline char *getPoint(PointId id)
Provides access to the memory storing the point data.
Though this function is public, other access methods are safer and preferred.
-
inline char *getOrAddPoint(PointId id)
Provides access to the memory storing the point data.
Though this function is public, other access methods are safer and preferred.
-
inline void clearTemps()
-
MetadataNode toMetadata() const
-
void invalidateProducts()
-
TriangularMesh *createMesh(const std::string &name)
Creates a mesh with the specified name.
- Parameters:
name – Name of the mesh.
- Returns:
Pointer to the new mesh. Null is returned if the mesh already exists.
-
TriangularMesh *mesh(const std::string &name = "")
Get a pointer to a mesh.
- Parameters:
name – Name of the mesh.
- Returns:
New mesh. Null is returned if the mesh already exists.
-
Rasterd *createRaster(const std::string &name, const RasterLimits &limits, double noData = 0)
Creates a raster with the specified name.
- Parameters:
name – Name of the raster.
limits – Limits of the raster to create.
- Returns:
Pointer to the new raster. Null is returned if the raster already exists.
-
Rasterd *raster(const std::string &name = "")
Get a pointer to a raster.
- Parameters:
name – Name of the raster.
- Returns:
Pointer to the New raster. Null
-
KD3Index &build3dIndex()
-
KD2Index &build2dIndex()
Friends
- friend class plang::Invocation
-
PointView(PointTableRef pointTable)