Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update ignores and add a few example pipelines

  • Loading branch information...
commit c99c2c4b7941214a5f614f78d7a316d62833ea27 1 parent 6b4cf09
@hobu hobu authored chambbj committed
View
1  .gitignore
@@ -63,6 +63,7 @@ doc/doxygen/xml
test/temp/*.txt
test/temp/*.las
test/temp/*.laz
+test/data/local
#
# OS X stuff
View
8 test/data/pipeline/pipeline_crop_wkt.xml
@@ -35,12 +35,12 @@
</Option>
<Option name="x_dim">drivers.las.reader.X</Option>
<Reader type="drivers.las.reader">
- <Option name="filename">
- ../autzen-colorized-1.2-3.las
- </Option>
<!-- <Option name="filename">
- ../1.2-with-color.las
+ ../autzen-colorized-1.2-3.las
</Option> -->
+ <Option name="filename">
+ ../1.2-with-color.las
+ </Option>
</Reader>
</Filter>
</Writer>
View
52 test/data/pipeline/pipeline_crop_wkt_2d-classification.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0"?>
+<Pipeline version="1.0">
+ <Writer type="drivers.las.writer">
+ <Option name="filename">
+ crop-wkt-2d-classification.las
+ </Option>
+ <Option name="compression">
+ false
+ </Option>
+ <Option name="chunk_size">
+ 100000
+ </Option>
+ <Filter type="filters.predicate"><Option name="function">filter</Option><Option name="source">
+import numpy as np
+
+def filter(ins,outs):
+ cls = ins['Classification']
+
+ keep_classes = [1,2]
+
+ # Use the first test for our base array.
+ keep = np.equal(cls, keep_classes[0])
+
+ # For 1:n, test each predicate and join back
+ # to our existing predicate array
+ for k in range(1,len(keep_classes)):
+ t = np.equal(cls, keep_classes[k])
+ keep = keep + t
+
+ outs['Mask'] = keep
+ return True
+ </Option><Option name="module">anything</Option>
+ <Filter type="filters.crop">
+ <Option name="polygon">
+ POLYGON ((636889.4129512392682955 851528.5122932585654780, 636899.1423342394409701 851475.0006867571501061, 636899.1423342394409701 851475.0006867571501061, 636928.3304832403082401 851494.4594527576118708, 636928.3304832403082401 851494.4594527576118708, 636928.3304832403082401 851494.4594527576118708, 636976.9773982415208593 851513.9182187581900507, 636976.9773982415208593 851513.9182187581900507, 637069.4065367440925911 851475.0006867571501061, 637132.6475262457970530 851445.8125377562828362, 637132.6475262457970530 851445.8125377562828362, 637336.9645692512858659 851411.7596972554456443, 637336.9645692512858659 851411.7596972554456443, 637473.1759312548674643 851158.7957392486277968, 637589.9285272579872981 850711.2441212366102263, 637244.5354307487141341 850511.7917697312077507, 636758.0662807356566191 850667.4618977354839444, 636539.1551632297923788 851056.6372177458833903, 636889.4129512392682955 851528.5122932585654780))
+
+ </Option>
+ <Option name="outside">
+ false
+ </Option>
+ <Reader type="drivers.las.reader">
+ <!-- <Option name="filename">
+ ../autzen-colorized-1.2-3.las
+ </Option> -->
+ <Option name="filename">
+ ../1.2-with-color.las
+ </Option>
+ </Reader>
+ </Filter>
+ </Filter>
+ </Writer>
+</Pipeline>
View
31 test/data/pipeline/pipeline_crop_wkt_2d.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<Pipeline version="1.0">
+ <Writer type="drivers.las.writer">
+ <Option name="filename">
+ autzen-colorized-1.2.3-hole.las
+ </Option>
+ <Option name="compression">
+ false
+ </Option>
+ <Option name="chunk_size">
+ 1000000
+ </Option>
+
+ <Filter type="filters.crop">
+ <Option name="polygon">
+ POLYGON ((636889.4129512392682955 851528.5122932585654780, 636899.1423342394409701 851475.0006867571501061, 636899.1423342394409701 851475.0006867571501061, 636928.3304832403082401 851494.4594527576118708, 636928.3304832403082401 851494.4594527576118708, 636928.3304832403082401 851494.4594527576118708, 636976.9773982415208593 851513.9182187581900507, 636976.9773982415208593 851513.9182187581900507, 637069.4065367440925911 851475.0006867571501061, 637132.6475262457970530 851445.8125377562828362, 637132.6475262457970530 851445.8125377562828362, 637336.9645692512858659 851411.7596972554456443, 637336.9645692512858659 851411.7596972554456443, 637473.1759312548674643 851158.7957392486277968, 637589.9285272579872981 850711.2441212366102263, 637244.5354307487141341 850511.7917697312077507, 636758.0662807356566191 850667.4618977354839444, 636539.1551632297923788 851056.6372177458833903, 636889.4129512392682955 851528.5122932585654780))
+ </Option>
+ <Option name="outside">
+ true
+ </Option>
+ <Reader type="drivers.las.reader">
+ <!-- <Option name="filename">
+ ../autzen-colorized-1.2-3.las
+ </Option> -->
+ <Option name="filename">
+ ../1.2-with-color.las
+ </Option>
+ </Reader>
+ </Filter>
+ </Writer>
+</Pipeline>
View
45 test/data/pipeline/pipeline_webgl.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Pipeline version="1.0">
+ <Writer type="drivers.text.writer">
+ <Option name="filename">
+ STDOUT
+ </Option>
+ <Option name="write_header">
+ false
+ </Option>
+
+ <Filter type="filters.selector">
+ <Option name="keep">
+ <Options>
+ <Option name="dimension">
+ X
+ </Option>
+ <Option name="dimension">
+ Y
+ </Option>
+ <Option name="dimension">
+ Z
+ </Option>
+ <Option name="dimension">
+ Red
+ </Option>
+ <Option name="dimension">
+ Green
+ </Option>
+ <Option name="dimension">
+ Blue
+ </Option>
+ </Options>
+ </Option>
+ <Option name="ignore_default">
+ true
+ </Option>
+
+ <Reader type="drivers.las.reader">
+ <Option name="filename">
+ ../autzen-colorized-1.2-3.las
+ </Option>
+ </Reader>
+ </Filter>
+ </Writer>
+</Pipeline>

0 comments on commit c99c2c4

Please sign in to comment.
Something went wrong with that request. Please try again.