[
https://issues.apache.org/jira/browse/SEDONA-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17652967#comment-17652967
]
Doug Dennis commented on SEDONA-223:
------------------------------------
[~jiayu] Two things have come up:
1. Looking for your opinion on an edge case. Given two linestrings, where
linestring A is the source geometry and linestring B is the blade, if A and B
have a colinear section what do you think the result should be? Shapely raises
an exception and postgis appears to give an error
([https://dbfiddle.uk/5kO-ufmm|https://dbfiddle.uk/5kO-ufmm]). Would the
appropriate response for Spark be to return a null?
2. I noticed that tests for new functions are not currently being added to the
common package. It would seem like tests for the behavior of the functions in
the common package should live there, and that the sql package should just have
tests that demonstrate the function is available in spark. Should I follow the
current tradition of putting tests in the sql package or can I put tests for
the split function in a new FunctionsTest.java file in the common package.
> Add ST_Split
> ------------
>
> Key: SEDONA-223
> URL: https://issues.apache.org/jira/browse/SEDONA-223
> Project: Apache Sedona
> Issue Type: Improvement
> Reporter: Doug Dennis
> Assignee: Doug Dennis
> Priority: Major
>
> Add the ST_Split function supporting splitting linestrings by (multi)points,
> (multi)linestrings, and (multi)polygons as well as (multi)polygons by
> (multi)linestrings. I did not see an exact match for this in JTS.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)