use of com.revolsys.elevation.cloud.las.zip.LazDecompressGpsTime11V2 in project com.revolsys.open by revolsys.
the class LasPointCloud method newLazDecompressors.
public LazDecompress[] newLazDecompressors(final LasZipHeader lasZipHeader, final ArithmeticDecoder decoder) {
final int numItems = lasZipHeader.getNumItems();
final LazDecompress[] pointDecompressors = new LazDecompress[numItems];
for (int i = 0; i < numItems; i++) {
final LazItemType type = lasZipHeader.getType(i);
final int version = lasZipHeader.getVersion(i);
if (version < 1 || version > 2) {
throw new RuntimeException(version + " not yet supported");
}
switch(type) {
case POINT10:
if (version == 1) {
pointDecompressors[i] = new LazDecompressPoint10V1(this, decoder);
} else {
pointDecompressors[i] = new LazDecompressPoint10V2(this, decoder);
}
break;
case GPSTIME11:
if (version == 1) {
pointDecompressors[i] = new LazDecompressGpsTime11V1(decoder);
} else {
pointDecompressors[i] = new LazDecompressGpsTime11V2(decoder);
}
break;
case RGB12:
if (version == 1) {
pointDecompressors[i] = new LazDecompressRgb12V1(decoder);
} else {
pointDecompressors[i] = new LazDecompressRgb12V2(decoder);
}
break;
default:
throw new RuntimeException(type + " not yet supported");
}
}
return pointDecompressors;
}
Aggregations