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

is there a good way to form multipoint

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      I get a collect of lng and lat array, how to form a multipoint geom?
      sql1 = f"""
      select
      buyer_addr_state,buyer_addr,
      collect_list(array(geo_lng,geo_lat)) as pins,
      count(1) as pins_cnt
      from tmp_my_address_tab_tab
      group by buyer_addr_state,buyer_addr
      """
      df1 = spark.sql(sql1)
       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              liangliang.qiu blingqiu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: