And please try to switch the left and right side of the join and see if the result changes.
JoinQuery.SpatialJoingQueryFlat(RddA, RddB, considerBoundaryIntersection) means that check if each one in Rdd A is CONTAINED BY each one in Rdd B, considering the situation of boundary intersecting (not fully contained). In your case, a line cannot contain a polygon, but a polygon can contain a line. Make sure you get the order correct. Thanks, Jia On Fri, Jan 6, 2023 at 3:16 PM Mark Broich <mark.bro...@mapbox.com.invalid> wrote: > Thank you Jia for confirming that Sedona supports polygon-linestring joins. > I did set > 'ConsiderBoundaryIntersection' to true. Am still looking for the mistake in > my code... > Regards, Mark > > > On Thu, Jan 5, 2023 at 6:44 PM Jia Yu <ji...@apache.org> wrote: > > > Hi Mark, > > > > Sedona supports polygon-linestring joins. Did you set > > 'ConsiderBoundaryIntersection' to true? See: > > > > > https://sedona.apache.org/1.3.1-incubating/tutorial/core-python/#write-a-spatial-join-query > > > > This is the last parameter in Sedona Python > > JoinQueryRaw.SpatialJoinQueryFlat(). > > > > Thanks, > > Jia > > > > ---------- Forwarded message --------- > > From: Mark Broich <mark.bro...@mapbox.com> > > Date: Thu, Jan 5, 2023 at 4:27 PM > > Subject: JoinQueryRaw.SpatialJoinQueryFlat for polygon - linestring join? > > To: <dev-i...@sedona.apache.org> > > Cc: <dev-ow...@sedona.apache.org> > > > > > > Hi all, > > > > I am trying to use JoinQueryRaw.SpatialJoinQueryFlat() to join polygons > and > > linestrings but the result is empty despite overlap in the polygons and > > linestrings. > > > > I am wondering if JoinQueryRaw.SpatialJoinQueryFlat can do the join I am > > after or if I need to do a RangeQuery.SpatialRangeQuery(). > > > > Also, how do I get posting rights on the Apache Sedona community server > > <https://discord.gg/9A3k5dEBsY>? > > > > Tnx for any pointers. Regards, Mark > > >