Opened 20 months ago
Closed 18 months ago
#5378 closed defect (fixed)
SRID of geography is lost during ST_Buffer(geography..) operation
Reported by: | robe | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 3.2.4 |
Component: | postgis | Version: | 3.3.x |
Keywords: | Cc: |
Description
I tested this on a PostGIS 3.1.7 RDS system as well as my POSTGIS="3.3.2 3.3.2" [EXTENSION] PGSQL="150" GEOS="3.11.1-CAPI-1.17.1" PROJ="7.2.1" LIBXML="2.9.9" LIBJSON="0.12" LIBPROTOBUF="1.2.1" WAGYU="0.5.0 (Internal)"
and the behavior is the same:
SELECT ST_SRID( ST_Buffer(ST_GeomFromText('POINT(-94 29.53)', 4269)::geography, 12)::geometry )
The answer here is 4326 instead of the expected 4269. This works fine
SELECT ST_SRID(ST_GeomFromText('POINT(-94 29.53)', 4269)::geography::geometry)
the SRID returned is 4269, so seems to be something going on in the ST_Buffer geography function that is losing the original SRID
Change History (10)
comment:1 by , 20 months ago
comment:3 by , 20 months ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I think we need to backport this fix to at least PostGIS 3.3.3. Given the amount of changes, not sure it makes sense to backport any further than that. I'll close this out once I've backported.
comment:7 by , 18 months ago
Milestone: | PostGIS 3.1.9 → PostGIS 3.2.4 |
---|
osgeolive ol16 alpha returns 4326