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

Create ST_S2_CellId in Sedona

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • High
    • Resolution: Fixed
    • None
    • 1.4.0

    Description

      This feature will be mainly used for performing spatial join.

       

      Given a specific resolution, ST_S2_CellId on each geometry will yield different results

      1. Point / MultiPoint: generate a cell id for each point
      2. Polygon / MultiPolygon: generate an array of ids. These cells should fully cover the exact shapes of these polygons - Or, at least the MBRs of these polygons.
      3. LineString / MultiLineString: generate an array of ids. These cells should fully cover the exact shapes of these LineStrings - Or, at least the MBRs of these LineStrings.
      4. GeometryCollection: for each geometry inside, choose the corresponding solution above.

       

      XYZM handling: only deal with XY, ignoring Z and M

      Null safety: produce a null given a null geometry input.

       

      The PR should demonstrate how to run spatial join using S2 ids and produce accurate results.

      Attachments

        Issue Links

          Activity

            People

              zongsizhang Zongsi Zhang
              jiayu Jia Yu
              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 - 2h 50m
                  2h 50m