You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sedona.apache.org by "Jia Yu (Jira)" <ji...@apache.org> on 2022/11/29 23:02:00 UTC

[jira] [Created] (SEDONA-204) Init value in X/Y/Z max should be -Double.MAX

Jia Yu created SEDONA-204:
-----------------------------

             Summary: 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


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)