[postgis-devel] [PostGIS] #1690: Sort out ERROR: transform: couldn''t project point (180 -90 0): tolerance condition error (-20)

PostGIS trac at osgeo.org
Fri Mar 16 04:34:20 PDT 2012


#1690: Sort out ERROR:  transform: couldn''t project point (180 -90 0): tolerance
condition error (-20)
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  task     |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by strk):

 The query above should theoretically be equivalent to this:

 {{{

 SELECT postgis_transform_geometry('SRID=4326;POINT(180 -90)'::geometry,
  '+proj=longlat +datum=WGS84 +no_defs',
  '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0
 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs',
  3857);
 }}}

 But the latter gives this confusing error:

 {{{
 ERROR:  transform: couldn't parse proj4 input string: '+proj=longlat
 +datum=WGS84 +no_defs': tolerance condition error
 }}}

 Which makes no sense (it's _not_ a parse error but a projection error).

 I've a kind of dejavu about this, I think I've been looking at this
 problem some weeks ago and was related to non-reentrant error reporting
 API of libproj.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1690#comment:2>
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