Skip to content

Commit

Permalink
Reverted ExtraByte min/max data type change from #4.
Browse files Browse the repository at this point in the history
Clarified form of the ExtraByte min/max field.
  • Loading branch information
esilvia committed Mar 21, 2019
1 parent 51eb87c commit 5ae7567
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions source/01_intro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ Summary of LAS 1.4 revisions:

* Added explanation and example of implicit arrays from descriptor names.

* Changed type of ExtraByte min/max from ``anytype`` to ``double`` and
clarified that min/max should be a transformed value.
* Clarified that ExtraByte min/max should be an untransformed value.
(`I-4 <https://github.com/ASPRSorg/LAS/issues/4>`_)
* Clarified that Legacy Point Counts should be set to zero if using non-legacy
PDRFs. (`I-12 <https://github.com/ASPRSorg/LAS/issues/12>`_)
Expand Down
10 changes: 5 additions & 5 deletions source/04_optional_vlrs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ across applications. The extra bytes descriptor is defined as follows:
unsigned char unused[4]; // 4 bytes
anytype no_data; // 8 bytes
unsigned char deprecated1[16]; // 16 bytes
double min; // 8 bytes
anytype min; // 8 bytes
unsigned char deprecated2[16]; // 16 bytes
double max; // 8 bytes
anytype max; // 8 bytes
unsigned char deprecated3[16]; // 16 bytes
double scale; // 8 bytes
unsigned char deprecated4[16]; // 16 bytes
Expand Down Expand Up @@ -184,15 +184,15 @@ be interpreted as NO_DATA. By default all bits are zero which means that the
values in the corresponding fields are to be disregarded. Any unused
"no_data", "min", "max", "scale", or "offset" fields must be set to zero.

If the selected data_type is less than 8 bytes, the no_data field
If the selected data_type is less than 8 bytes, the no_data, min, and max fields
should be upcast into 8-byte storage. For any float these 8 bytes would be
upcast to a double, for any unsigned char, unsigned short, or unsigned long
they would be upcast to an unsigned long long and for any char, short, or long,
they would be upcast to a long long.

If used, the min and max fields reflect the actual minimum and maximum values
of the attribute in the LAS file, fully transformed with any applicable scale
or offset values.
of the attribute in the LAS file, in its raw form, without any scale
or offset values applied.

The "reserved" field, the "unused" field, and the "deprecated" fields must be
set to zero and may be used in a future revision.
Expand Down

0 comments on commit 5ae7567

Please sign in to comment.