MCPcopy Create free account
hub / github.com/LAStools/LAStools / filter

Method filter

LASlib/src/lasfilter.cpp:1569–1573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1567 inline I32 get_command(CHAR* string) const { return sprintf(string, "-%s %lf ", name(), below_gpstime); };
1568 inline U32 get_decompress_selective() const { return LASZIP_DECOMPRESS_SELECTIVE_GPS_TIME; };
1569 inline BOOL filter(const LASpoint* point) {
1570 I64 offset = 0;
1571 if (((global_encoding & (1 << LAS_TOOLS_GLOBAL_ENCODING_BIT_GPS_TIME_TYPE)) != 0) && ((global_encoding & (1 << LAS_TOOLS_GLOBAL_ENCODING_BIT_TIME_OFFSET_FLAG)) != 0))
1572 { offset = ((I64)time_offset - 1000) * 1000 * 1000; }
1573 return (point->have_gps_time && (point->gps_time < below_gpstime - offset)); };
1574 LAScriterionDropGpsTimeBelow(F64 below_gpstime) { this->below_gpstime = below_gpstime; };
1575private:
1576 F64 below_gpstime;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected