-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add EPT writer docs for creating EPT addon dimensions, and update EPT…
… reader doc for using the 'addon' option.
- Loading branch information
1 parent
430b330
commit 04acbeb
Showing
2 changed files
with
82 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
.. _writers.ept: | ||
|
||
writers.ept | ||
=========== | ||
|
||
The **EPT writer** supports writing additional dimensions to `Entwine Point Tile`_ datasets. Thus the EPT Writer is unique among most other PDAL writers due to its limitation that it may only be used along with an `EPT reader`_. | ||
|
||
The addon dimensions created by this writer may be stored independently from the corresponding EPT dataset, therefore write-access to the EPT resource itself is not required to create and use addon dimensions. | ||
|
||
.. embed:: | ||
|
||
Example | ||
-------------------------------------------------------------------------------- | ||
|
||
This example downloads the Autzen dataset (10M points) and runs the `SMRF filter`_, which populates the ``Classification`` dimension with ground values, and writes the resulting attribute to an EPT addon dataset on the local filesystem. | ||
|
||
.. code-block:: json | ||
[{ | ||
"type": "readers.ept", | ||
"filename": "http://na.entwine.io/autzen/ept.json", | ||
"threads": 12 | ||
}, { | ||
"type": "filters.assign", | ||
"assignment": "Classification[:]=0" | ||
}, { | ||
"type": "filters.smrf" | ||
}, { | ||
"type": "writers.ept", | ||
"addons": { "~/entwine/addons/autzen/smrf": "Classification" }, | ||
"threads": 12 | ||
}] | ||
And here is a follow-up example of reading this dataset with the `EPT reader`_ - with the created addon overwriting the ``Classification`` value - and then writing the output to a single file with the `LAS writer`_. | ||
|
||
.. code-block:: json | ||
[{ | ||
"type": "readers.ept", | ||
"filename": "http://na.entwine.io/autzen/ept.json", | ||
"addons": { "Classification": "~/entwine/addons/autzen/smrf" }, | ||
"threads": 12 | ||
}, { | ||
"type": "writers.las", | ||
"filename": "autzen-ept-smrf.las" | ||
}] | ||
Options | ||
-------------------------------------------------------------------------------- | ||
|
||
addons | ||
A JSON object whose keys represent output paths for each addon dimension, and whose corresponding values represent the attributes to be written to these addon dimensions. | ||
|
||
.. note:: | ||
|
||
The ``addons`` option is reversed between the EPT reader and writer: in each case, the right-hand side represents an assignment to the left-hand side. In the writer, the dimension value is assigned to an addon path. In the reader, the addon path is assigned to a dimension. | ||
|
||
threads | ||
Number of worker threads used to write EPT addon data. A minimum of 4 will be used no matter what value is specified. | ||
|
||
.. _Entwine Point Tile: https://github.com/connormanning/entwine/blob/master/doc/entwine-point-tile.md | ||
.. _EPT reader: https://pdal.io/stages/readers.ept.html | ||
.. _SMRF filter: https://pdal.io/stages/filters.smrf.html | ||
.. _LAS writer: https://pdal.io/stages/writers.las.html | ||
|