[Liblas-devel] Header::SetDataFormatId, and supported schemas

Ben Discoe bdiscoe at 510systems.com
Sat Mar 5 20:20:47 EST 2011


I have a question about the method Header::SetDataFormatId(), which is
apparently required when writing a LAS file with liblas.

It seems a bit under-documented - or perhaps the param is well known
to people familiar with the LAS standard (not me).
AFAICT from studying the source, the supported values are:

ePointFormat0: has dimensions "X, Y, Z, Intensity, Return Number,
Number of Returns, Scan Direction, Flightline Edge, Classification,
Scan Angle Rank, User Data, Point Source ID".

ePointFormat1: all of those, plus it adds "Time".

ePointFormat2: adds Color ("Red", "Green", "Blue")

ePointFormat3: adds "Time" and Color.

ePointFormat4: adds "Time" (and WavePacket?)

ePointFormat5: adds ???

Besides clarifying those options a bit more for the documentation,
could someone tell if this means we cannot define our own schema?
E.g. if all we need is X,Y,Z and R,G,B, can we store just those
dimensions to LAS?  If so, what valid argument would i pass to
Header::SetDataFormatId() (or the Schema() constructor)?

Thanks,
Ben


More information about the Liblas-devel mailing list