Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line intersect error: an implementation is missing #188

Open
DeRooBert opened this issue Dec 12, 2017 · 1 comment
Open

line intersect error: an implementation is missing #188

DeRooBert opened this issue Dec 12, 2017 · 1 comment

Comments

@DeRooBert
Copy link

DeRooBert commented Dec 12, 2017

Hi, I'm trying to find if two lines intersect but it gives the following error: scala.NotImplementedError: an implementation is missing

This is a short code that reproduce the error I'm getting (using 1.0.5-s_2.11)
import magellan.{Point, Polygon, Line}
import org.apache.spark.sql.magellan.dsl.expressions._
import org.apache.spark.sql.types._
case class fence(line:magellan.Line, Fencename:String)
val CP = fence(Line(Point(4.22220,51.35798),Point(4.24783,51.36902)),"CP")
val PIZ = fence(Line(Point(4.33183,51.19521),Point(4.33805,51.19074)),"PIZ")
val KEN = fence(Line(Point(4.357334,51.203966),Point(4.359198,51.200238)),"KEN")
val fences = sc.parallelize(Seq(CP,PIZ,KEN)).toDF().cache

val fencesb = fences.withRenamedColumn("lineb", "line")
fences.join(fencesb, $"line" intersects $"lineb", "inner").show

@Charmatzis
Copy link
Contributor

Yes, this implementation is missing in this version. Stay tune for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants