| 2020 | inline I32 get_command(CHAR* string) const { return sprintf(string, "-%s %lf ", name(), (time_spacing > 0 ? time_spacing : -time_spacing)); }; |
| 2021 | inline U32 get_decompress_selective() const { return LASZIP_DECOMPRESS_SELECTIVE_GPS_TIME; }; |
| 2022 | inline BOOL filter(const LASpoint* point) |
| 2023 | { |
| 2024 | I64 pos_t = I64_FLOOR(point->get_gps_time() / time_spacing); |
| 2025 | my_I64_set::iterator map_element = times.find(pos_t); |
| 2026 | if (map_element == times.end()) |
| 2027 | { |
| 2028 | times.insert(my_I64_set::value_type(pos_t)); |
| 2029 | return FALSE; |
| 2030 | } |
| 2031 | else |
| 2032 | { |
| 2033 | return TRUE; |
| 2034 | } |
| 2035 | } |
| 2036 | void reset() |
| 2037 | { |
| 2038 | times.clear(); |