问题
I have the following dataframe o spark :
   __________________________
  │Longitude   │latitude     |
  ├────────────┼─────────────┼
  | -7.07378166|33.826661    |
  └────────────┴─────────────┴
I want to apply the ST_Geomfromtext from GeoSpark , but I don't know how to do it
I tried the following code , but id doesn't work for me
Dataset<Row> dataframe = df.withColumn("ST_Geomfromtext ", ST_GeomFromText(col("Longitude"),col("Latitude")));
I need your help .
Thank you
来源:https://stackoverflow.com/questions/62837467/geospark-librairy-using-spark-java