Skip to content

Commit 2e630da

Browse files
authored
Merge PR#144 to draft-1.5 from hobu/wkt-updates
Removed support for geotiff CRS definitions. (#104) All OGC WKT definitions are now valid. (#95, #129)
2 parents d58eb2e + a9dfa22 commit 2e630da

File tree

9 files changed

+149
-203
lines changed

9 files changed

+149
-203
lines changed

.readthedocs.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
build:
9+
os: "ubuntu-lts-latest"
10+
tools:
11+
python: "mambaforge-latest"
12+
13+
sphinx:
14+
builder: html
15+
configuration: source/conf.py
16+
fail_on_warning: false
17+
18+
python:
19+
install:
20+
- requirements: source/requirements.txt
21+
22+
conda:
23+
environment: source/environment.yml
24+
25+
formats:
26+
- pdf
27+
- epub

source/01_intro.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@ The additions of LAS 1.5 include:
3232
* Backward compatibility with LAS 1.1 – LAS 1.4.
3333
* LAS 1.5 mode which supports:
3434

35+
* Removed support for PDRFs 0-5.
36+
(`I-128 <https://github.com/ASPRSorg/LAS/issues/128>`_)
3537
* Added Max/Min GPS Time fields to header block.
3638
(`I-118 <https://github.com/ASPRSorg/LAS/issues/118>`_)
3739
* Added Offset GPS Time definition.
3840
(`I-6 <https://github.com/ASPRSorg/LAS/issues/6>`_)
41+
* CRS support expanded to all published WKT versions, removing support for GeoTIFF CRS encoding.
42+
(`I-95 <https://github.com/ASPRSorg/LAS/issues/95>`_,
43+
`I-104 <https://github.com/ASPRSorg/LAS/issues/104>`_,
44+
`I-129 <https://github.com/ASPRSorg/LAS/issues/129>`_)
3945
* Clarify requirement that the Extra Bytes VLR must be unique.
4046
(`I-150 <https://github.com/ASPRSorg/LAS/issues/150>`_)
4147

source/02.04_header.sub

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,10 @@ a value of 1). This bit field is defined as:
182182
| | | multiple returns. |
183183
+-------+-----------------------+------------------------------------------+
184184
| 4 | WKT | If set, the Coordinate Reference System |
185-
| | | (CRS) is WKT. If not set, the CRS is |
186-
| | | GeoTIFF. It should not be set if the |
187-
| | | file writer wishes to ensure legacy |
188-
| | | compatibility (which means the CRS must |
189-
| | | be GeoTIFF). |
185+
| | | (CRS) is WKT. This bit must be set in |
186+
| | | LAS 1.5; GeoTIFF CRS definitions are not |
187+
| | | supported for legacy |
188+
| | | compatibility beginning with LAS 1.5. |
190189
+-------+-----------------------+------------------------------------------+
191190
| 5 | Reserved | Must be set to zero (0). |
192191
+-------+-----------------------+------------------------------------------+
@@ -446,7 +445,7 @@ The Time Offset field can be used to optimize :ref:`GPS Time <gpstime_link>` pre
446445
Offset GPS Time for a point record is equal to standard GPS Time, minus :math:`10^6` * Time Offset.
447446

448447
For example, Adjusted Standard GPS Time uses a total offset of 1 billion (:math:`10^9`) seconds, which would be specified by a Time Offset of 1000.
449-
This achieves 100 nanosecond precision for the years 2007-2015. The LAS wiki provides
448+
This achieves 100 nanosecond precision for the years 2007-2015. The LAS wiki provides
450449
`recommended values <https://github.com/ASPRSorg/LAS/wiki/Suggested-LAS-1.5-Time-Offset-Values>`_
451450
and year ranges that users are encouraged to use to maximize compatibility between datasets.
452451

source/03_crs.txt

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
.. raw:: latex
2+
3+
\newpage
4+
5+
Coordinate Reference System
6+
--------------------------------------------------------------------------------
7+
8+
Coordinate Reference System (CRS) information is required for a LAS 1.5 file.
9+
LAS 1.5 defines VLRs in :ref:`vlrdef_label` and EVLRs in :ref:`evlrdef_label` and
10+
requires them for specifying the Coordinate Reference System (CRS) of the file.
11+
12+
CRS information shall be placed in VLRs or EVLRs and represented as `OGC Well
13+
Known Text <https://www.ogc.org/standard/wkt-crs/>`__ (WKT) without regard to
14+
the :ref:`Global Encoding <globalencoding_link>` bit.
15+
16+
GeoTIFF CRS representations are no longer supported as of LAS 1.5.
17+
18+
.. _crs_wkt:
19+
20+
OGC Coordinate System WKT Record (Required)
21+
................................................................................
22+
23+
The WKT record is **required** and can be specified as either a VLR or an
24+
EVLR. If an EVLR is to override an already existing CRS VLR, writers
25+
should also write a :ref:`Superseded VLR <superseded_vlr_label>` to label it.
26+
27+
+-----------------+-----------------------------+
28+
| User ID | LASF_Projection |
29+
+-----------------+-----------------------------+
30+
| Record ID | 2112 |
31+
+-----------------+-----------------------------+
32+
33+
This record must contain the textual data representing a WKT as defined by any
34+
published OGC Well Known Text standard with the following considerations:
35+
36+
* The OGC Coordinate System WKT VLR data shall be a null-terminated string.
37+
* The OGC Coordinate System WKT VLR data shall be considered UTF-8.
38+
* The OGC Coordinate System WKT VLR data shall be considered C locale-based with
39+
no localization of the numeric strings within the WKT being performed.
40+
41+
42+
.. note::
43+
44+
Any published version of an OGC WKT standard is a valid definition for LAS 1.5.
45+
OGC has published multiple versions of WKT, including the following noteworthy versions:
46+
47+
* `18-010r11 <https://docs.ogc.org/is/18-010r11/18-010r11.pdf>`__ - Commonly called "WKT2"
48+
or "WKTv2" and is the most current version of WKT as of this publication.
49+
* `18-010r7 <https://docs.ogc.org/is/18-010r11/18-010r11.pdf>`__ - This variant of "WKT2"
50+
added support for the definition of ``EPOCH`` for defining the date against which
51+
coordinates in the LAS file are referenced in a dynamic coordinate reference system.
52+
* `12-063r5 <https://portal.opengeospatial.org/files/12-063r5>`__ -
53+
Commonly called "WKT1" and the formally ratified variant of WKT that was used
54+
for LAS 1.4.
55+
56+
If OGC were to publish a new WKT standard, it would also be a
57+
valid definition for LAS 1.5.
58+
59+
.. _math_wkt:
60+
61+
OGC Math Transform WKT Record (Optional)
62+
................................................................................
63+
64+
Writers may include an optional OGC Math Transform WKT Record to provide a
65+
supplemental parameterized math transform definition.
66+
67+
+-----------------+-----------------------------+
68+
| User ID | LASF_Projection |
69+
+-----------------+-----------------------------+
70+
| Record ID | 2111 |
71+
+-----------------+-----------------------------+
72+
73+
This record must contain a Math Transform WKT consistent with the same WKT
74+
specification being used by :ref:`crs_wkt`, with the following considerations:
75+
76+
* The OGC Math Transform WKT VLR data shall be a null-terminated string.
77+
* The OGC Math Transform WKT VLR data shall be considered UTF-8.
78+
* The OGC Math Transform WKT VLR data shall be considered C locale-based, and
79+
no localization of the numeric strings within the WKT should be performed.

source/03_required_vlrs.txt

Lines changed: 0 additions & 190 deletions
This file was deleted.

source/04_optional_vlrs.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
\newpage
44

5-
Other Specification Defined VLRs (Optional)
5+
.. _optional_vlrs:
6+
7+
Optional VLR Definitions
68
--------------------------------------------------------------------------------
79

810
Classification Lookup

0 commit comments

Comments
 (0)