public static <T> <any> toDataFrame(SpatialJavaRDD<T> spatialRDD,
java.util.List<java.lang.String> nonSpatialFieldsNames,
SparkSession spark)
Transforms a spatial RDD to a DataFrame (Dataset<Row>)
Parameters:
spatialRDD - the source Spatial RDD
nonSpatialFieldsNames - list of columns to be included in the dataframe. The spatial column by default is called geometry and should not be included in this list.