rog33zy commented on issue #1827:
URL: https://github.com/apache/sedona/issues/1827#issuecomment-2695906657

   Thanks. When I update my code to create a pair rdd via sedona_spatial_join() 
function I get an error:
   
   > Error:
   > ! java.lang.Exception:
   >   [AbstractSpatialRDD][spatialPartitioning]
   >   SpatialRDD boundary is null. Please call analyze()
   >   first.
   
   My code is as follows:
   
   ```
   df <- spark_read_geoparquet(
     sc,
     name = "fulldata",
     path = file.path(
       getwd(), 
       "data", 
       "geoparquets2", 
       "part-00005-0683930a-7c53-4135-b49e-7169dca98904-c000.snappy.parquet"
       )
   )
   
   sdf_schema(df)
   
   polygon_rdd <- to_spatial_rdd(
     df |> select(pickup_geomety),
     spatial_col = "pickup_geomety"
   )
   
   pt1_rdd <- to_spatial_rdd(
     df |> select(pickup_point),
     spatial_col = "pickup_point"
   )
   
   pt2_rdd <- to_spatial_rdd(
     df |> select(dropoff_point),
     spatial_col = "dropoff_point"
   )
   
   pair_rdd <- sedona_spatial_join(
     pt1_rdd,
     polygon_rdd,
     join_type = "contain"
   )
   ```
   
   How can I get past this stage?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to