Skip to main content
naming
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

st_transform ST_Transform returning different results in postgisPostGIS 2.4.3 and postgisPostGIS 3.0.2

Getting this in 2.4.3

selectSELECT st_astextST_AsText(st_transformST_Transform(st_setsridST_SetSRID(st_geomfromtextST_GeomFromText('POINT(-13279706.1692 5957543.84253624)'), 900913), 4326));
                 st_astextST_AsText
 -------------------------------------------
 POINT(-119.293630204087 47.0946914247282)
(1 row)

And this in 3.0.2

selectSELECT st_astextST_AsText(st_transformST_Transform(st_setsridST_SetSRID(st_geomfromtextST_GeomFromText('POINT(-13279706.1692 5957543.84253624)'), 900913), 4326));
             st_astext
-------------------------------------------
 POINT(-119.293630204087 47.2862076625893)
(1 row)

I've confirmed that the definitions for both 900913 and 4326 are identical in spatial_ref_sys. Not sure how to even go about troubleshooting this...

st_transform returning different results in postgis 2.4.3 and postgis 3.0.2

Getting this in 2.4.3

select st_astext(st_transform(st_setsrid(st_geomfromtext('POINT(-13279706.1692 5957543.84253624)'), 900913), 4326));
                 st_astext
 -------------------------------------------
 POINT(-119.293630204087 47.0946914247282)
(1 row)

And this in 3.0.2

select st_astext(st_transform(st_setsrid(st_geomfromtext('POINT(-13279706.1692 5957543.84253624)'), 900913), 4326));
             st_astext
-------------------------------------------
 POINT(-119.293630204087 47.2862076625893)
(1 row)

I've confirmed that the definitions for both 900913 and 4326 are identical in spatial_ref_sys. Not sure how to even go about troubleshooting this...

ST_Transform returning different results in PostGIS 2.4.3 and PostGIS 3.0.2

Getting this in 2.4.3

SELECT ST_AsText(ST_Transform(ST_SetSRID(ST_GeomFromText('POINT(-13279706.1692 5957543.84253624)'), 900913), 4326));
                 ST_AsText
 -------------------------------------------
 POINT(-119.293630204087 47.0946914247282)
(1 row)

And this in 3.0.2

SELECT ST_AsText(ST_Transform(ST_SetSRID(ST_GeomFromText('POINT(-13279706.1692 5957543.84253624)'), 900913), 4326));
-------------------------------------------
 POINT(-119.293630204087 47.2862076625893)
(1 row)

I've confirmed that the definitions for both 900913 and 4326 are identical in spatial_ref_sys. Not sure how to even go about troubleshooting this...

Source Link

st_transform returning different results in postgis 2.4.3 and postgis 3.0.2

Getting this in 2.4.3

select st_astext(st_transform(st_setsrid(st_geomfromtext('POINT(-13279706.1692 5957543.84253624)'), 900913), 4326));
                 st_astext
 -------------------------------------------
 POINT(-119.293630204087 47.0946914247282)
(1 row)

And this in 3.0.2

select st_astext(st_transform(st_setsrid(st_geomfromtext('POINT(-13279706.1692 5957543.84253624)'), 900913), 4326));
             st_astext
-------------------------------------------
 POINT(-119.293630204087 47.2862076625893)
(1 row)

I've confirmed that the definitions for both 900913 and 4326 are identical in spatial_ref_sys. Not sure how to even go about troubleshooting this...