umartin opened a new issue, #3161:
URL: https://github.com/apache/sedona/issues/3161
Transforming coordinates between the two most common CRS in Sweden is off by
> 180 meters since Sedona 1.9
Postgis:
```
# select ST_AsText(ST_Transform(ST_Point(1272691.622,
6404578.16),'epsg:3021','epsg:3006'));
st_astext
---------------------------------------------
POINT(320728.44351324334 6400228.104394391)
```
Sedona 1.8.0:
```
+--------------------------------------------------------------------------------+
|st_astext(st_transform(st_point(1272691.622, 6404578.16), epsg:3021,
epsg:3006))|
+--------------------------------------------------------------------------------+
|POINT (320728.44366995635 6400228.107803337)
|
+--------------------------------------------------------------------------------+
```
Sedona 1.9.0:
```
+--------------------------------------------------------------------------------+
|st_astext(st_transform(st_point(1272691.622, 6404578.16), epsg:3021,
epsg:3006))|
+--------------------------------------------------------------------------------+
|POINT (320884.3637323502 6400318.840709686)
|
+--------------------------------------------------------------------------------+
```
Distance:
```
# select st_distance(st_geomfromtext('POINT (320728.44366995635
6400228.107803337)'),st_geomfromtext('POINT (320884.3637323502
6400318.840709686)'));
st_distance
--------------------
180.39824320494563
```
--
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]