#3902 closed defect (fixed)
What SRIDs are currently supported with PostGIS Geography?
Reported by: | just7460 | Owned by: | robe |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.4.1 |
Component: | documentation | Version: | 2.4.x |
Keywords: | postgis, geography, srid | Cc: | jshim@… |
Description
The most recent documentation states, "One restriction [of PostGIS geography] is that it only supports WGS 84 long lat (SRID:4326)":
4.2. PostGIS Geography Type http://postgis.net/docs/manual-2.4/using_postgis_dbmanagement.html#PostGIS_Geography
However, I have tested creating data with a few other SRIDs, and it seems to function properly. In addition, other related OSGeo pages suggests that there have been other supported SRIDs since PostGIS 2.1.6:
2.4.0RC1 News https://git.osgeo.org/gogs/postgis/postgis/raw/2.4.0rc1/NEWS *Search for #2941
Geography can create non-4326 geography but geography typmod won't allow it https://trac.osgeo.org/postgis/ticket/2941
Can you provided a list of SRIDs in which PostGIS Geography supports if it is not limited to WGS 1984. In addition, if PostGIS Geography supports other SRIDs other than 4326, can the documentation be updated to reflect so?
Change History (11)
comment:1 by , 7 years ago
comment:3 by , 7 years ago
Component: | postgis → documentation |
---|---|
Owner: | changed from | to
comment:4 by , 7 years ago
postgis24=# select 'SRID=4269;POINT(-123 34)'::geography; geography ---------------------------------------------------- 0101000020AD1000000000000000C05EC00000000000004140 (1 row) postgis24=# select 'SRID=4267;POINT(-123 34)'::geography; geography ---------------------------------------------------- 0101000020AB1000000000000000C05EC00000000000004140 (1 row) postgis24=# select 'SRID=26910;POINT(-123 34)'::geography; ERROR: Only lon/lat coordinate systems are supported in geography. LINE 1: select 'SRID=26910;POINT(-123 34)'::geography;
comment:8 by , 7 years ago
Thanks for updating the documentation! This is a great help for us!
Do you have a link for the 2.4.1 changes? I can't seem to find your changes when I look at the 2.4.1 doc, but it shows up for 2.5.
Thanks again! Justin
comment:11 by , 7 years ago
Sorry about that, I had an xml unbalanced tab so the docs build job failed. Should show up here: in about an hour or less
http://postgis.net/docs/manual-2.4/using_postgis_dbmanagement.html#PostGIS_Geography
It's any longlat based projections defined in your spatial_ref_sys.
I'll update the docs to reflect -- see my blog post
http://www.bostongis.com/blog/index.php?/archives/266-geography-type-is-not-limited-to-earth.html