Skip to content

Commit

Permalink
Merge branch 'release/5.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadain committed Nov 6, 2021
2 parents 0b54124 + f966c2d commit a05340b
Show file tree
Hide file tree
Showing 11 changed files with 1,458 additions and 311 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 5.0.0

- Update `/multi` endpoint to take the same format of stream data
as the `/run` endpoint does: a list of MultiLineStrings instead
of a single one. Also update existing examples, and add new ones.
This is a breaking change.

## 4.0.3

- Update credentials for Travis to fix deployments
Expand Down
9 changes: 2 additions & 7 deletions api/src/main/scala/Geoprocessing.scala
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,8 @@ trait Geoprocessing extends Utils {
case "RasterLinesJoin" =>
input.streamLines match {
case Some(mls) => {
(parseMultiLineString(mls) & shape).asMultiLine match {
case Some(lines) =>
rasterLinesJoin(layers, Seq(lines))
.mapValues(_.toDouble)
case None =>
Map[String, Double]()
}
val lines = cropLinesToAOI(mls.map(parseMultiLineString), shape)
rasterLinesJoin(layers, lines).mapValues(_.toDouble)
}
case None =>
throw new MissingStreamLinesException
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/scala/WebServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ case class Operation (

case class MultiInput (
shapes: List[HUC],
streamLines: Option[GeoJSONString], // GeoJSON MultiLineString
streamLines: Option[List[GeoJSONString]], // GeoJSON MultiLineString
operations: List[Operation]
)

Expand Down
4 changes: 3 additions & 1 deletion examples/MultiOperationRequest.json

Large diffs are not rendered by default.

107 changes: 107 additions & 0 deletions examples/MultiOperationRequestHUC12.json

Large diffs are not rendered by default.

137 changes: 137 additions & 0 deletions examples/MultiOperationRequestHUC12HiResStreams.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion examples/MultiOperationRequestHUC8.json

Large diffs are not rendered by default.

Loading

0 comments on commit a05340b

Please sign in to comment.