Ticket #1580 (closed defect: fixed)

Opened 16 months ago

Last modified 16 months ago

proj4 cache corrupted by projection error ?

Reported by: strk Owned by: pramsey
Priority: critical Milestone: PostGIS 2.0.0
Component: postgis Version: trunk
Keywords: Cc:

Description

Look at this session:

strk=# select ST_Transform('SRID=4326;POINT(180 -90)'::geometry, 3857);
ERROR:  transform: couldn't project point (180 -90 0): tolerance condition error (-20)
strk=# select ST_Transform('SRID=4326;POINT(180 -89.99999999999)'::geometry, 3857);
ERROR:  AddToPROJ4SRSCache: couldn't parse proj4 string: '+proj=longlat +datum=WGS84 +no_defs ': tolerance condition error

The second ERROR doesn't sound right, seems to reveal a dirtiness in proj cache. It's critical because the cache survives multiple transactions making it impossible to perform future reprojections

Change History

Changed 16 months ago by strk

This actually seems to be pj_get_errno_ref() not resetting between calls to pj_init

Changed 16 months ago by strk

  • status changed from new to closed
  • resolution set to fixed

Fixed in r9194

Note: See TracTickets for help on using tickets.