Uploaded image for project: 'Apache Sedona'
  1. Apache Sedona
  2. SEDONA-182

ST_AsText should not return SRID

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0

    Description

      There was a regression that changed the behavior of ST_AsText. Now it returns EWKT instead of WKT. See  https://github.com/apache/incubator-sedona/commit/26aba91ead4f06558880be7dda745cf3c05581e8

      ST_AsText should return WKT, without SRID. From postgis:

      dw=> select ST_AsText(ST_SetSRID(ST_Point(1,1), 3021));
       st_astext  
      ------------
       POINT(1 1)
      (1 row)
      
      dw=> select ST_AsEWKT(ST_SetSRID(ST_Point(1,1), 3021));
            st_asewkt       
      ----------------------
       SRID=3021;POINT(1 1)
      (1 row)
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              umartin Martin Andersson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m