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

Does the JoinQuery.DistanceJoinQuery not support LineStringRDD with PointRDD? #125

cfu1 opened this issue Sep 22, 2017 · 1 comment


Copy link

commented Sep 22, 2017

I tried to run the
val result = JoinQuery.DistanceJoinQuery(geojson_line, queryRDD, true, true);
to have a spatial join of a set of lines and points, but got the error below:
java.lang.ClassCastException: com.vividsolutions.jts.geom.Point cannot be cast to com.vividsolutions.jts.geom.LineString

I'm new to the jts packege. Such distance is supported by python packages like Shapely. Any suggestions?

@cfu1 cfu1 changed the title Does the JoinQuery.DistanceJoinQuery not support Line Does the JoinQuery.DistanceJoinQuery not support LineStringRDD with PointRDD? Sep 22, 2017


This comment has been minimized.

Copy link

commented Oct 3, 2017

@cfu1 Sorry for the late reply. Currently, DistanceJoin API only supports same type object join. However, we are working on a new release to fix this. All these problems should be solved in version 0.9.0 stable release.

@jiayuasu jiayuasu added this to the 0.9.0 milestone Oct 31, 2017

@jiayuasu jiayuasu added the resolved label Oct 31, 2017

@jiayuasu jiayuasu closed this Dec 10, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.