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

Adapter.toSpatialRdd in Python binding does not have valid implementation for specifying custom field names for user data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.1
    • 1.4.0

    Description

      We have this class method defined in sedona.utils.Adapter:

      class Adapter(metaclass=MultipleMeta):
          # ...
          @classmethod
          def toSpatialRdd(cls, dataFrame: DataFrame, fieldNames: List) -> SpatialRDD:
      

      While the method definition should be:

      def toSpatialRdd(cls, dataFrame: DataFrame, geometryFieldName: str, fieldNames: List) -> SpatialRDD
      

      Also, the current implementation of this class method refers to a non-existing function in sedona-core: jvm.PythonAdapterWrapper.toSpatialRdd.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kontinuation Kristin Cowalcijk
              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