Here is my attempt at this:
%sql SELECT df1.*,df1.geometry.STAsText() as geom_text FROM df_geo df1.
This obviously fails because it is not a table, but a dataframe. How can one do this using pyspark or geospark?
Here is my attempt at this:
%sql SELECT df1.*,df1.geometry.STAsText() as geom_text FROM df_geo df1.
This obviously fails because it is not a table, but a dataframe. How can one do this using pyspark or geospark?
Copyright © 2021 Jogjafile Inc.
If you use GeoSparkSQL,
In pyspark: