Skip to content

Commit c0aecc8

Browse files
authored
core-scala toPipeline logLevel support (#83)
* core-scala toPipeline logLevel support * examples README.md update
1 parent 37b3e4e commit c0aecc8

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

core-scala/src/main/scala/io/pdal/pipeline/PipelineConstructor.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package io.pdal.pipeline
1818

19-
import io.pdal.Pipeline
20-
19+
import io.pdal.{LogLevel, Pipeline}
2120
import io.circe.{Decoder, Encoder, Json}
2221
import io.circe.syntax._
2322

@@ -30,6 +29,7 @@ case class PipelineConstructor(list: List[PipelineExpr]) {
3029
def ~(e: Option[PipelineExpr]): PipelineConstructor = e.fold(this)(this ~ _)
3130
def map[B](f: PipelineExpr => B): List[B] = list.map(f)
3231
def toPipeline: Pipeline = Pipeline(this.asJson.noSpaces)
32+
def toPipeline(logLevel: LogLevel.Value): Pipeline = Pipeline(this.asJson.noSpaces, logLevel)
3333
}
3434

3535
object PipelineConstructor {

examples/pdal-jni/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# PDAL JNI usage example
22

3-
To run this demo just launch `./sbt run` command and choose `1`
4-
to run a basic `pdal-core` example, choose `2` to run a basic `pdal-core` example in Java, and choose `3` to run as basic `pdal-scala` example.
3+
To run this demo just launch `sbt run` command and choose:
4+
5+
* `1` to run a basic `pdal-core` example
6+
* `2` to run a basic `pdal-core` example in Java
7+
* `3` to run a basic `pdal-core` example with the debugging log level configured
8+
* `4` to run as basic `pdal-scala` example

examples/pdal-jni/src/main/scala/com/azavea/MainLogging.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
package com.azavea
2+
13
import io.pdal.Pipeline
24

5+
import io.pdal._
6+
37
object MainLogging {
48
val json =
59
"""

0 commit comments

Comments
 (0)