Kristin Cowalcijk created SEDONA-259:
----------------------------------------

             Summary: Adapter.toSpatialRdd in Python binding does not have 
valid implementation for specifying custom field names for user data
                 Key: SEDONA-259
                 URL: https://issues.apache.org/jira/browse/SEDONA-259
             Project: Apache Sedona
          Issue Type: Bug
    Affects Versions: 1.3.1
            Reporter: Kristin Cowalcijk


We have this class method defined in {{{}sedona.utils.Adapter{}}}:
{code:python}
class Adapter(metaclass=MultipleMeta):
    # ...
    @classmethod
    def toSpatialRdd(cls, dataFrame: DataFrame, fieldNames: List) -> SpatialRDD:
{code}
While the method definition should be:
{code:python}
def toSpatialRdd(cls, dataFrame: DataFrame, geometryFieldName: str, fieldNames: 
List) -> SpatialRDD
{code}
Also, the current implementation of this class method refers to a non-existing 
function in sedona-core: {{{}jvm.PythonAdapterWrapper.toSpatialRdd{}}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to