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

Method filter

LASlib/src/lasfilter.cpp:1553–1557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1551 inline I32 get_command(CHAR* string) const { return sprintf(string, "-%s %lf %lf ", name(), below_gpstime, above_gpstime); };
1552 inline U32 get_decompress_selective() const { return LASZIP_DECOMPRESS_SELECTIVE_GPS_TIME; };
1553 inline BOOL filter(const LASpoint* point) {
1554 I64 offset = 0;
1555 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))
1556 { offset = ((I64)time_offset - 1000) * 1000 * 1000; }
1557 return (point->have_gps_time && ((point->gps_time < below_gpstime - offset) || (point->gps_time > above_gpstime - offset))); };
1558 LAScriterionKeepGpsTime(F64 below_gpstime, F64 above_gpstime) { this->below_gpstime = below_gpstime; this->above_gpstime = above_gpstime; };
1559private:
1560 F64 below_gpstime, above_gpstime;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected