[SEDONA-730] Add to_wkt() to sedona.geopandas API#1914
Conversation
# Conflicts: # common/src/test/java/org/apache/sedona/common/raster/RasterConstructorsTest.java
| select_expressions = [] | ||
|
|
||
| # Read the keyword arguments | ||
| rounding_precision = kwargs.get("rounding_precision", None) |
There was a problem hiding this comment.
I think the default should be 6 as per shapely.to_wkt() to replicate GeoPandas behavior. What do you think?
And we should also add support for the output_dimension parameter.
There was a problem hiding this comment.
IMO we should not stray sedona.geopandas' default behavior from sedona's default behavior. Open to suggestions cc. @jiayuasu @zhangfengcdt?
There was a problem hiding this comment.
I prefer to keep it as close as possible to the geopandas' behavior. The main goal of this project is to allow people to use their existing geopandas code with minimum changes in outcomes.
| first_col = self.get_first_geometry_column() | ||
|
|
||
| # Read the keyword arguments | ||
| rounding_precision = kwargs.get("rounding_precision", None) |
furqaankhan
left a comment
There was a problem hiding this comment.
left a few comments. Amazing start!
|
@jiayuasu I think the new design will only help the functions that don't have kwargs to tune behavior, such as centroid, length, and area. But functions like |
I think the _process_geometry_columns should actually be able to handle the |
|
@prantogg can you redo your PR according to the latest change on the master branch? Now you should be able to simplify your code |
Fixing this now |
|
@jiayuasu I think this function can't be implemented using |
Did you read the Contributor Guide?
Is this PR related to a ticket?
[SEDONA-XXX] my subject.What changes were proposed in this PR?
How was this patch tested?
Did this PR include necessary documentation updates?
vX.Y.Zformat.