Opened 4 years ago

Closed 4 years ago

#4812 closed defect (fixed)

SRID_MAXIMUM handled inconsistently

Reported by: pramsey Owned by: pramsey
Priority: medium Milestone: PostGIS 3.1.0
Component: postgis Version: master
Keywords: Cc:

Description

The handling of out-of-bounds SRID values is supposed to "clamp" them into a user-allowed range of 999000 to SRID_MAXIMUM. However, it sneaks past the clamp function, and then is set to 0 by the wkt reader.

select st_srid('SRID=999999;POINT(1 1)'::geometry);

Change History (1)

comment:1 by Paul Ramsey <pramsey@…>, 4 years ago

Resolution: fixed
Status: newclosed

In 561428e/git:

Handle SRID=999999 consistently with other high SRID numbers. Closes #4812

Note: See TracTickets for help on using tickets.