| 172 | } |
| 173 | |
| 174 | uint8_t getClassification( const char* buf, int format ) |
| 175 | { |
| 176 | if ( 0 <= format && format <= 5 ) |
| 177 | return reinterpret_cast<const LasPoint0*>( buf )->classification; |
| 178 | else if ( 6 <= format && format <= 10 ) |
| 179 | return reinterpret_cast<const LasPoint6*>( buf )->classification; |
| 180 | else |
| 181 | return 0; |
| 182 | } |
| 183 | |
| 184 | bool hasColorChannels( int format ) |
| 185 | { |