jesspav opened a new pull request, #60:
URL: https://github.com/apache/sedona-db/pull/60
Currently, `ST_Transform` is only accepting utf8 args.
This change allows for SRIDs to be passed in as ints. It also adds some
better argument checks.
## Testing
Unit tests and manual tests.
## Examples
```
> SELECT ST_Transform(ST_SetSrid(ST_GeomFromText('POINT (1 1)'), 4326),
3857) as geom;
┌─────────────────────────────────────────────┐
│ geom │
│ geometry │
╞═════════════════════════════════════════════╡
│ POINT(111319.49079327357 111325.1428663851) │
└─────────────────────────────────────────────┘
> SELECT ST_Transform(ST_SetSrid(ST_GeomFromText('POINT (1 1)'), 4326),
'EPSG:3857') as geom;
┌─────────────────────────────────────────────┐
│ geom │
│ geometry │
╞═════════════════════════════════════════════╡
│ POINT(111319.49079327357 111325.1428663851) │
└─────────────────────────────────────────────┘
```
--
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]