harsha2010 / magellan

Geo Spatial Data Analytics on Spark
Apache License 2.0
534 stars 149 forks source link

Add buffer operation #198

Closed halfabrane closed 6 years ago

halfabrane commented 6 years ago

Wrap ESRI Java API's Buffer operation to introduce the ability to buffer shapes. usage:

import org.apache.spark.sql.magellan.dsl.expressions._
df.withColumn("buffered", $"point" buffer 0.5) 
codecov-io commented 6 years ago

Codecov Report

Merging #198 into master will decrease coverage by 0.1%. The diff coverage is 88.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #198      +/-   ##
==========================================
- Coverage   89.84%   89.74%   -0.11%     
==========================================
  Files          49       50       +1     
  Lines        1605     1745     +140     
  Branches      112      117       +5     
==========================================
+ Hits         1442     1566     +124     
- Misses        163      179      +16
Impacted Files Coverage Δ
src/main/scala/magellan/Shape.scala 52.5% <100%> (+3.85%) :arrow_up:
src/main/scala/magellan/dsl/package.scala 78.94% <50%> (-3.41%) :arrow_down:
src/main/scala/magellan/esri/ESRIUtil.scala 88.34% <88.34%> (ø)
...che/spark/sql/catalyst/expressions/functions.scala 94.61% <90.62%> (-0.95%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a285dc3...a7d8a38. Read the comment docs.