[postgis-devel] [PostGIS] #318: 900913->4326 Transform

PostGIS trac at osgeo.org
Tue Dec 22 06:49:19 PST 2009


#318: 900913->4326 Transform
----------------------+-----------------------------------------------------
  Reporter:  pramsey  |       Owner:  mcayland     
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  PostGIS 1.5.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:               
----------------------+-----------------------------------------------------
Comment (by mcayland):

 Here is the output from another session:

 trunk=# SELECT
 ASTEXT(ST_Transform(ST_SetSRID(ST_Point(-633510.090428,7506727.67383),900913),4326));
                   astext
 -------------------------------------------
  POINT(-5.69091796875412 55.7394816986905)
 (1 row)

 trunk=# SELECT
 ASTEXT(ST_Transform(ST_SetSRID(ST_Point(-305748.113141,7834489.65112),900913),4326));
                   astext
 -------------------------------------------
  POINT(-2.74658203125265 57.3620898615614)
 (1 row)

 trunk=# SELECT
 ASTEXT(ST_Transform(ST_SetSRID(ST_Point(-305748.113141,7834489.65112),900913),4269));
                   astext
 -------------------------------------------
  POINT(-2.74658203125265 57.3620898624176)
 (1 row)

 trunk=# SELECT
 ASTEXT(ST_Transform(ST_SetSRID(ST_Point(-305748.113141,7834489.65112),900913),4267));
 ERROR:  transform: couldn't project point (-305748 7.83449e+06 0): failed
 to load NAD27-83 correction file (-38)
 HINT:  PostGIS was unable to transform the point because either no grid
 shift files were found, or the point does not lie within the range for
 which the grid shift is defined. Refer to the ST_Transform() section of
 the PostGIS manual for details on how to configure PostGIS to alter this
 behaviour.


 So is the bug here that 4267 should work or perhaps the point is genuinely
 out of range?

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/318#comment:5>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list