admin管理员组文章数量:1296493
This doesn't seem right. I cannot display, get the query, or save Sedona spatial dataframes. Am I missing some library or concept?
#turn your spark dataframe into a sedona geodataframe by creating an ST_POINT column.
points_311 = sdf.withColumn("the_geom", expr(f"ST_AsBinary(ST_Point(LON, LAT))"))
points_311 = points_311.withColumn("geom_deserialized", expr(f"ST_GeomFromWKB(the_geom)"))
points_311.display(5)
The GEOGRAPHY and GEOMETRY data types cannot be returned in queries. Use one of the following SQL expressions to convert them to standard interchange formats: "st_asbinary", "st_asewkb", "st_astext", or "st_asgeojson". SQLSTATE: 0A000
本文标签: apache sedonaSodona Geography and Geometry data types cannot be returned as queriesStack Overflow
版权声明:本文标题:apache sedona - Sodona Geography and Geometry data types cannot be returned as queries - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741637672a2389735.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论