Hi,

1. Non-spatial attributes in SpatialRDD are stored in the userData field of
geometries. In a spatial join query result, the non-spatial attributes are
stored in the userData of each geometry. You can access them using a Map or
MapPair function. See:
https://sedona.apache.org/tutorial/rdd/#read-other-attributes-in-an-spatialrdd

2. In SpatialSQL API, the index and spatial partitioning are automatically
done on the fly. You can set some parameters here:
https://sedona.apache.org/api/sql/Parameter/#explanation

Thanks,
Jia



On Wed, Aug 31, 2022 at 7:06 AM 可为 <[email protected]> wrote:

> Hello everybody,
> &nbsp; &nbsp; &nbsp; I found the&nbsp; RDD's result of the spatial&nbsp;
> join&nbsp; query did not&nbsp; have&nbsp; non-spatial&nbsp; attributes
> .&nbsp; So I use&nbsp; spatial&nbsp; SQL.&nbsp; But&nbsp;&nbsp;
> how to&nbsp; set partition and&nbsp; index when I use&nbsp; spatial&nbsp;
> SQL? Could you&nbsp; please&nbsp; give any&nbsp; suggestions?&nbsp;
> Thank&nbsp; you very&nbsp; much.
>
>
>
> Or&nbsp; is there some&nbsp; ways&nbsp; to&nbsp; make&nbsp; the&nbsp;
> spatial&nbsp; join&nbsp; query&nbsp; has&nbsp; non-spatial&nbsp; attributes?

Reply via email to