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