SRID and Name relationship












8















PostGIS comes with a table of spatial reference systems with each one being identitfied by a SRID. However, from a user's perspective, SRID is just a number and doesn't tell them much. Is there a resource that associates SRID with more descriptive names?










share|improve this question




















  • 1





    ...the srtext column of said table holds the OGC WKT representation with the standardized details of each CRS.

    – ThingumaBob
    Jan 27 at 18:14













  • Thanks! I had looked at that column initially and thought it had too much info. But upon looking at it again, I realize that I can just parse the text and extract the parts I need. I accepted your answer.

    – user57029
    Jan 27 at 23:09
















8















PostGIS comes with a table of spatial reference systems with each one being identitfied by a SRID. However, from a user's perspective, SRID is just a number and doesn't tell them much. Is there a resource that associates SRID with more descriptive names?










share|improve this question




















  • 1





    ...the srtext column of said table holds the OGC WKT representation with the standardized details of each CRS.

    – ThingumaBob
    Jan 27 at 18:14













  • Thanks! I had looked at that column initially and thought it had too much info. But upon looking at it again, I realize that I can just parse the text and extract the parts I need. I accepted your answer.

    – user57029
    Jan 27 at 23:09














8












8








8








PostGIS comes with a table of spatial reference systems with each one being identitfied by a SRID. However, from a user's perspective, SRID is just a number and doesn't tell them much. Is there a resource that associates SRID with more descriptive names?










share|improve this question
















PostGIS comes with a table of spatial reference systems with each one being identitfied by a SRID. However, from a user's perspective, SRID is just a number and doesn't tell them much. Is there a resource that associates SRID with more descriptive names?







coordinate-system srid






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 27 at 18:36









Vince

14.8k32749




14.8k32749










asked Jan 27 at 17:58









user57029user57029

624




624








  • 1





    ...the srtext column of said table holds the OGC WKT representation with the standardized details of each CRS.

    – ThingumaBob
    Jan 27 at 18:14













  • Thanks! I had looked at that column initially and thought it had too much info. But upon looking at it again, I realize that I can just parse the text and extract the parts I need. I accepted your answer.

    – user57029
    Jan 27 at 23:09














  • 1





    ...the srtext column of said table holds the OGC WKT representation with the standardized details of each CRS.

    – ThingumaBob
    Jan 27 at 18:14













  • Thanks! I had looked at that column initially and thought it had too much info. But upon looking at it again, I realize that I can just parse the text and extract the parts I need. I accepted your answer.

    – user57029
    Jan 27 at 23:09








1




1





...the srtext column of said table holds the OGC WKT representation with the standardized details of each CRS.

– ThingumaBob
Jan 27 at 18:14







...the srtext column of said table holds the OGC WKT representation with the standardized details of each CRS.

– ThingumaBob
Jan 27 at 18:14















Thanks! I had looked at that column initially and thought it had too much info. But upon looking at it again, I realize that I can just parse the text and extract the parts I need. I accepted your answer.

– user57029
Jan 27 at 23:09





Thanks! I had looked at that column initially and thought it had too much info. But upon looking at it again, I realize that I can just parse the text and extract the parts I need. I accepted your answer.

– user57029
Jan 27 at 23:09










3 Answers
3






active

oldest

votes


















10














If you want/need to have more info from within PostGIS, running something like



SELECT  srid,
left(split_part(srtext, '"', 1), -1) AS "type",
split_part(srtext, '"', 2) AS "name",
split_part((regexp_split_to_array(srtext, 'UNIT["'))[array_length(regexp_split_to_array(srtext, 'UNIT["'), 1)], '"', 1) AS units
FROM spatial_ref_sys
WHERE srid IN (4326, 32632);


results in



 srid  |  type  |         name          | units  
-------+--------+-----------------------+--------
4326 | GEOGCS | WGS 84 | degree
32632 | PROJCS | WGS 84 / UTM zone 32N | metre


I never wanted to learn regexp logic any better than this. Obviously, you could scan the whole WKT string for anything you need to know. And improve on the above, especially the units expression...





Alternatively, query the spatial_ref_sys.srtext or spatial_ref_sys.proj4text columns to get either the whole OGC WKT representation or the proj4 definition of each SRID.






share|improve this answer































    8














    A good modern web resource is epsg.io



    It's "modern" because it has been synchronized to recent versions of the EPSG reference database, as stated at the bottom of the web page. It's source is available on GitHub.



    It's also pretty easy to use. For example, SRID=4326, here is the description web page and links to various formats:




    • http://epsg.io/4326

    • http://epsg.io/4326.wkt

    • http://epsg.io/4326.esriwkt

    • http://epsg.io/4326.gml

    • http://epsg.io/4326.proj4

    • http://epsg.io/4326.sql






    share|improve this answer































      5














      I use http://spatialreference.org and http://www.epsg-registry.org.



      spatialreference.org has the spatial reference information in numerous formats:



      enter image description here



      And EPSG has an access database you download:



      enter image description hereenter image description here






      share|improve this answer





















      • 3





        Note that spatialreference.org was last updated in 2013, and was made from an older/outdated version of the EPSG database. The webpage was abandoned, and there are no plans to update it.

        – Mike T
        Jan 27 at 22:45











      • Didn't realise that. Who owns the domain and runs the site?

        – Jay Cummins
        Jan 27 at 22:59






      • 1





        @JayCummins see about for who set it up. They are excellent folks in the opensource geospatial community, and are happy for anyone to take the keys and catch up to the modern world

        – Mike T
        Jan 27 at 23:49













      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "79"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f310050%2fsrid-and-name-relationship%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      10














      If you want/need to have more info from within PostGIS, running something like



      SELECT  srid,
      left(split_part(srtext, '"', 1), -1) AS "type",
      split_part(srtext, '"', 2) AS "name",
      split_part((regexp_split_to_array(srtext, 'UNIT["'))[array_length(regexp_split_to_array(srtext, 'UNIT["'), 1)], '"', 1) AS units
      FROM spatial_ref_sys
      WHERE srid IN (4326, 32632);


      results in



       srid  |  type  |         name          | units  
      -------+--------+-----------------------+--------
      4326 | GEOGCS | WGS 84 | degree
      32632 | PROJCS | WGS 84 / UTM zone 32N | metre


      I never wanted to learn regexp logic any better than this. Obviously, you could scan the whole WKT string for anything you need to know. And improve on the above, especially the units expression...





      Alternatively, query the spatial_ref_sys.srtext or spatial_ref_sys.proj4text columns to get either the whole OGC WKT representation or the proj4 definition of each SRID.






      share|improve this answer




























        10














        If you want/need to have more info from within PostGIS, running something like



        SELECT  srid,
        left(split_part(srtext, '"', 1), -1) AS "type",
        split_part(srtext, '"', 2) AS "name",
        split_part((regexp_split_to_array(srtext, 'UNIT["'))[array_length(regexp_split_to_array(srtext, 'UNIT["'), 1)], '"', 1) AS units
        FROM spatial_ref_sys
        WHERE srid IN (4326, 32632);


        results in



         srid  |  type  |         name          | units  
        -------+--------+-----------------------+--------
        4326 | GEOGCS | WGS 84 | degree
        32632 | PROJCS | WGS 84 / UTM zone 32N | metre


        I never wanted to learn regexp logic any better than this. Obviously, you could scan the whole WKT string for anything you need to know. And improve on the above, especially the units expression...





        Alternatively, query the spatial_ref_sys.srtext or spatial_ref_sys.proj4text columns to get either the whole OGC WKT representation or the proj4 definition of each SRID.






        share|improve this answer


























          10












          10








          10







          If you want/need to have more info from within PostGIS, running something like



          SELECT  srid,
          left(split_part(srtext, '"', 1), -1) AS "type",
          split_part(srtext, '"', 2) AS "name",
          split_part((regexp_split_to_array(srtext, 'UNIT["'))[array_length(regexp_split_to_array(srtext, 'UNIT["'), 1)], '"', 1) AS units
          FROM spatial_ref_sys
          WHERE srid IN (4326, 32632);


          results in



           srid  |  type  |         name          | units  
          -------+--------+-----------------------+--------
          4326 | GEOGCS | WGS 84 | degree
          32632 | PROJCS | WGS 84 / UTM zone 32N | metre


          I never wanted to learn regexp logic any better than this. Obviously, you could scan the whole WKT string for anything you need to know. And improve on the above, especially the units expression...





          Alternatively, query the spatial_ref_sys.srtext or spatial_ref_sys.proj4text columns to get either the whole OGC WKT representation or the proj4 definition of each SRID.






          share|improve this answer













          If you want/need to have more info from within PostGIS, running something like



          SELECT  srid,
          left(split_part(srtext, '"', 1), -1) AS "type",
          split_part(srtext, '"', 2) AS "name",
          split_part((regexp_split_to_array(srtext, 'UNIT["'))[array_length(regexp_split_to_array(srtext, 'UNIT["'), 1)], '"', 1) AS units
          FROM spatial_ref_sys
          WHERE srid IN (4326, 32632);


          results in



           srid  |  type  |         name          | units  
          -------+--------+-----------------------+--------
          4326 | GEOGCS | WGS 84 | degree
          32632 | PROJCS | WGS 84 / UTM zone 32N | metre


          I never wanted to learn regexp logic any better than this. Obviously, you could scan the whole WKT string for anything you need to know. And improve on the above, especially the units expression...





          Alternatively, query the spatial_ref_sys.srtext or spatial_ref_sys.proj4text columns to get either the whole OGC WKT representation or the proj4 definition of each SRID.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 27 at 22:24









          ThingumaBobThingumaBob

          6,3251424




          6,3251424

























              8














              A good modern web resource is epsg.io



              It's "modern" because it has been synchronized to recent versions of the EPSG reference database, as stated at the bottom of the web page. It's source is available on GitHub.



              It's also pretty easy to use. For example, SRID=4326, here is the description web page and links to various formats:




              • http://epsg.io/4326

              • http://epsg.io/4326.wkt

              • http://epsg.io/4326.esriwkt

              • http://epsg.io/4326.gml

              • http://epsg.io/4326.proj4

              • http://epsg.io/4326.sql






              share|improve this answer




























                8














                A good modern web resource is epsg.io



                It's "modern" because it has been synchronized to recent versions of the EPSG reference database, as stated at the bottom of the web page. It's source is available on GitHub.



                It's also pretty easy to use. For example, SRID=4326, here is the description web page and links to various formats:




                • http://epsg.io/4326

                • http://epsg.io/4326.wkt

                • http://epsg.io/4326.esriwkt

                • http://epsg.io/4326.gml

                • http://epsg.io/4326.proj4

                • http://epsg.io/4326.sql






                share|improve this answer


























                  8












                  8








                  8







                  A good modern web resource is epsg.io



                  It's "modern" because it has been synchronized to recent versions of the EPSG reference database, as stated at the bottom of the web page. It's source is available on GitHub.



                  It's also pretty easy to use. For example, SRID=4326, here is the description web page and links to various formats:




                  • http://epsg.io/4326

                  • http://epsg.io/4326.wkt

                  • http://epsg.io/4326.esriwkt

                  • http://epsg.io/4326.gml

                  • http://epsg.io/4326.proj4

                  • http://epsg.io/4326.sql






                  share|improve this answer













                  A good modern web resource is epsg.io



                  It's "modern" because it has been synchronized to recent versions of the EPSG reference database, as stated at the bottom of the web page. It's source is available on GitHub.



                  It's also pretty easy to use. For example, SRID=4326, here is the description web page and links to various formats:




                  • http://epsg.io/4326

                  • http://epsg.io/4326.wkt

                  • http://epsg.io/4326.esriwkt

                  • http://epsg.io/4326.gml

                  • http://epsg.io/4326.proj4

                  • http://epsg.io/4326.sql







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 27 at 22:44









                  Mike TMike T

                  32k685131




                  32k685131























                      5














                      I use http://spatialreference.org and http://www.epsg-registry.org.



                      spatialreference.org has the spatial reference information in numerous formats:



                      enter image description here



                      And EPSG has an access database you download:



                      enter image description hereenter image description here






                      share|improve this answer





















                      • 3





                        Note that spatialreference.org was last updated in 2013, and was made from an older/outdated version of the EPSG database. The webpage was abandoned, and there are no plans to update it.

                        – Mike T
                        Jan 27 at 22:45











                      • Didn't realise that. Who owns the domain and runs the site?

                        – Jay Cummins
                        Jan 27 at 22:59






                      • 1





                        @JayCummins see about for who set it up. They are excellent folks in the opensource geospatial community, and are happy for anyone to take the keys and catch up to the modern world

                        – Mike T
                        Jan 27 at 23:49


















                      5














                      I use http://spatialreference.org and http://www.epsg-registry.org.



                      spatialreference.org has the spatial reference information in numerous formats:



                      enter image description here



                      And EPSG has an access database you download:



                      enter image description hereenter image description here






                      share|improve this answer





















                      • 3





                        Note that spatialreference.org was last updated in 2013, and was made from an older/outdated version of the EPSG database. The webpage was abandoned, and there are no plans to update it.

                        – Mike T
                        Jan 27 at 22:45











                      • Didn't realise that. Who owns the domain and runs the site?

                        – Jay Cummins
                        Jan 27 at 22:59






                      • 1





                        @JayCummins see about for who set it up. They are excellent folks in the opensource geospatial community, and are happy for anyone to take the keys and catch up to the modern world

                        – Mike T
                        Jan 27 at 23:49
















                      5












                      5








                      5







                      I use http://spatialreference.org and http://www.epsg-registry.org.



                      spatialreference.org has the spatial reference information in numerous formats:



                      enter image description here



                      And EPSG has an access database you download:



                      enter image description hereenter image description here






                      share|improve this answer















                      I use http://spatialreference.org and http://www.epsg-registry.org.



                      spatialreference.org has the spatial reference information in numerous formats:



                      enter image description here



                      And EPSG has an access database you download:



                      enter image description hereenter image description here







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Jan 27 at 21:50

























                      answered Jan 27 at 18:14









                      Jay CumminsJay Cummins

                      10.5k544104




                      10.5k544104








                      • 3





                        Note that spatialreference.org was last updated in 2013, and was made from an older/outdated version of the EPSG database. The webpage was abandoned, and there are no plans to update it.

                        – Mike T
                        Jan 27 at 22:45











                      • Didn't realise that. Who owns the domain and runs the site?

                        – Jay Cummins
                        Jan 27 at 22:59






                      • 1





                        @JayCummins see about for who set it up. They are excellent folks in the opensource geospatial community, and are happy for anyone to take the keys and catch up to the modern world

                        – Mike T
                        Jan 27 at 23:49
















                      • 3





                        Note that spatialreference.org was last updated in 2013, and was made from an older/outdated version of the EPSG database. The webpage was abandoned, and there are no plans to update it.

                        – Mike T
                        Jan 27 at 22:45











                      • Didn't realise that. Who owns the domain and runs the site?

                        – Jay Cummins
                        Jan 27 at 22:59






                      • 1





                        @JayCummins see about for who set it up. They are excellent folks in the opensource geospatial community, and are happy for anyone to take the keys and catch up to the modern world

                        – Mike T
                        Jan 27 at 23:49










                      3




                      3





                      Note that spatialreference.org was last updated in 2013, and was made from an older/outdated version of the EPSG database. The webpage was abandoned, and there are no plans to update it.

                      – Mike T
                      Jan 27 at 22:45





                      Note that spatialreference.org was last updated in 2013, and was made from an older/outdated version of the EPSG database. The webpage was abandoned, and there are no plans to update it.

                      – Mike T
                      Jan 27 at 22:45













                      Didn't realise that. Who owns the domain and runs the site?

                      – Jay Cummins
                      Jan 27 at 22:59





                      Didn't realise that. Who owns the domain and runs the site?

                      – Jay Cummins
                      Jan 27 at 22:59




                      1




                      1





                      @JayCummins see about for who set it up. They are excellent folks in the opensource geospatial community, and are happy for anyone to take the keys and catch up to the modern world

                      – Mike T
                      Jan 27 at 23:49







                      @JayCummins see about for who set it up. They are excellent folks in the opensource geospatial community, and are happy for anyone to take the keys and catch up to the modern world

                      – Mike T
                      Jan 27 at 23:49




















                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f310050%2fsrid-and-name-relationship%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

                      SQL update select statement

                      'app-layout' is not a known element: how to share Component with different Modules