yutannihilation opened a new pull request, #498:
URL: https://github.com/apache/sedona-db/pull/498

   Now that we have item-level CRS, I think `ST_GeomFromEWKT` can be 
implemented. Unlike `ST_GeomFromEWKB` 
(https://github.com/apache/sedona-db/issues/490), if I understand correctly, 
EWKT doesn't need a dedicated parser except for spliting `SRID=...;` and pass 
the rest to the existing WKT parser.
   
   It seems to work. I think I still don't understand how the item-level CRS 
should be handled, so this pull request takes some more time to finish.
   
   ```
   > select st_geomfromewkt('SRID=3857;POINT (1 1)');
   ┌────────────────────────────────────────────────┐
   │ st_geomfromewkt(Utf8("SRID=3857;POINT (1 1)")) │
   │                     struct                     │
   ╞════════════════════════════════════════════════╡
   │ {item: POINT(1 1), crs: EPSG:3857}             │
   └────────────────────────────────────────────────┘
   ```
   
   ```
   > select st_geomfromewkt('POINT (1 1)');
   ┌──────────────────────────────────────┐
   │ st_geomfromewkt(Utf8("POINT (1 1)")) │
   │                struct                │
   ╞══════════════════════════════════════╡
   │ {item: POINT(1 1), crs: }            │
   └──────────────────────────────────────┘
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to