@@ -16,7 +16,8 @@ resolvers ++= Seq(
1616)
1717
1818libraryDependencies ++= Seq (
19- " io.pdal" %% " pdal" % " 1.6.0"
19+ " io.pdal" %% " pdal" % " 1.7.0-RC1" ,
20+ " io.pdal" % " pdal-native" % " 1.7.0-RC1"
2021)
2122```
2223
@@ -30,17 +31,19 @@ It's required to have native JNI binary in `java.library.path`:
3031javaOptions += " -Djava.library.path=/usr/local/lib"
3132```
3233
34+ You can use ` pdal-native ` dep in case you don't have installed JNI bindings and to avoid steps described above.
35+
3336## PDAL-Scala
3437
3538Scala API to build pipeline expressions instead of writing a raw JSON.
3639
3740``` scala
3841libraryDependencies ++= Seq (
39- " io.pdal" %% " pdal-scala" % " 1.6.0 "
42+ " io.pdal" %% " pdal-scala" % " 1.7.0-RC1 "
4043)
4144```
4245
43- Scala API covers PDAL 1.6 .0 but is compatible with PDAL >= 1.4, to use any custom DSL
46+ Scala API covers PDAL 1.7 .0 but is compatible with PDAL >= 1.4, to use any custom DSL
4447that is not covered by the current Scala API you can use ` RawExpr ` type to build `Pipeline
4548Expression`.
4649
@@ -75,6 +78,11 @@ val pc: PipelineConstructor = LasRead("/path/to/las") ~ CropFilter() ~ LasWrite(
7578val pcWithRawExpr = LasRead (" /path/to/las" ) ~ RawExpr (Map (" type" -> " filters.crop" ).asJson) ~ LasWrite (" /path/to/new/las" )
7679```
7780
81+ ### Demo project example
82+
83+ SBT projects with examples how to add dependencies, and with some working basic example can
84+ be found [ here] ( ./examples )
85+
7886## How to compile
7987
8088Development purposes (including binaries):
@@ -93,13 +101,11 @@ Finally the possible command to launch and build PDAL JNI bindings could be:
93101
94102``` bash
95103# Including binaries build
96- # WARN: PDAL should be built without `-DWITH_PDAL_JNI=ON` flag
97104./sbt
98105```
99106
100107``` bash
101108# Java side development without binaries build
102- # WARN: PDAL should be built with `-DWITH_PDAL_JNI=ON` flag
103109PDAL_DEPEND_ON_NATIVE=false ./sbt -Djava.library.path=< path>
104110```
105111
0 commit comments