[
https://issues.apache.org/jira/browse/SEDONA-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17642616#comment-17642616
]
Brian Rice commented on SEDONA-204:
-----------------------------------
Hi Jia, I am happy to submit a PR for this. Given the size, I understand if
it's easier for you to just take care of yourself as well. Just let me know.
> Init value in X/Y/Z max should be -Double.MAX
> ---------------------------------------------
>
> Key: SEDONA-204
> URL: https://issues.apache.org/jira/browse/SEDONA-204
> Project: Apache Sedona
> Issue Type: Bug
> Reporter: Jia Yu
> Priority: Major
>
> The initial value in XMax, YMax, ZMax
> ([https://github.com/apache/incubator-sedona/blob/master/common/src/main/java/org/apache/sedona/common/Functions.java#L133)]
> should be -Double.MAX_VALUE since the coordinates can be negative.
>
> Double.MIN_VALUE is not negative. See
> https://stackoverflow.com/questions/3884793/why-is-double-min-value-in-not-negative
--
This message was sent by Atlassian Jira
(v8.20.10#820010)