jesspav opened a new pull request, #38:
URL: https://github.com/apache/sedona-db/pull/38
## Summary
Adding `ST_CRS` so that we can pull the full CRS object from geometry where
SRIDs do not apply (for example with non-EPSG codes).
Issue: #29
## Examples
```
> select ST_crs(ST_SetCrs(ST_GeomFromText('POINT (1 1)'), 'EPSG:4329')) as
crs;
┌───────────┐
│ crs │
│ utf8 │
╞═══════════╡
│ EPSG:4329 │
└───────────┘
> select ST_crs(ST_SetCrs(ST_GeomFromText('POINT (1 1)'), 'EPSG:4326')) as
crs;
┌───────────┐
│ crs │
│ utf8 │
╞═══════════╡
│ OGC:CRS84 │
└───────────┘
> select ST_crs(ST_SetSrid(ST_GeomFromText('POINT (1 1)'), null)) as crs;
┌──────┐
│ crs │
│ utf8 │
╞══════╡
│ │
└──────┘
```
--
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]