conect commented on issue #807:
URL: https://github.com/apache/sedona/issues/807#issuecomment-1481393363

   Hi @umartin,
   
   Thank you for your fast reply!
   
   Hm when inserting it your way (slightly java adapted)
   `Dataset<Row> d2 = Adapter.toDf(spatialRDD1,spark).withColumn("geometry", 
functions.expr("ST_AsEWKT(geometry)"));`
   The type within the postgres db gets:
   
     Column  | Type  | Collation | Nullable | Default | Storage  | Stats target 
| Description
   
----------+-------+-----------+----------+---------+----------+--------------+-------------
    geometry  | **bytea** |           |          |         | extended |         
     |
    id              | text  |           |          |         | extended |       
       |
    some_prop| text  |           |          |         | extended |              
|
   
   but bytea is not a geometric representation within postgres.
   


-- 
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: dev-unsubscr...@sedona.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to