[
https://issues.apache.org/jira/browse/GEOMETRY-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Baljit Singh updated GEOMETRY-100:
----------------------------------
Description:
h3. First test case
* Precision/Tolerance: {{EpsilonDoublePrecisionContext[epsilon=
1.5696101377226165E-12]}}
* Spherical polygon/rectangle vertices: {{[(5.050647792392463,
0.8263048984534946), (5.050644504477406, 0.8263064367456399),
(5.050649564478115, 0.8263123289902004), (5.050652852378331,
0.8263107907013917)]}}
Centroid:
* Expected (approximately the average of vertices): (5.050648678475973,
0.8263086112510253)
* Actual: (5.0506454742491504, 0.8263177505886343)
The difference looks small, however, the actual result is outside the polygon.
Area:
* Expected: 2.0005645375711432E-11
* Actual: 1.9971579945377016E-11
was:
Test case:
* {{EpsilonDoublePrecisionContext[epsilon= 1.5696101377226165E-12]}}
* Spherical polygon vertices: {{[(5.050647792392463, 0.8263048984534946),
(5.050644504477406, 0.8263064367456399), (5.050649564478115,
0.8263123289902004), (5.050652852378331, 0.8263107907013917)]}}
> Invalid result for small spherical polygons
> -------------------------------------------
>
> Key: GEOMETRY-100
> URL: https://issues.apache.org/jira/browse/GEOMETRY-100
> Project: Apache Commons Geometry
> Issue Type: Bug
> Reporter: Baljit Singh
> Priority: Blocker
> Fix For: 1.0
>
>
> h3. First test case
> * Precision/Tolerance: {{EpsilonDoublePrecisionContext[epsilon=
> 1.5696101377226165E-12]}}
> * Spherical polygon/rectangle vertices: {{[(5.050647792392463,
> 0.8263048984534946), (5.050644504477406, 0.8263064367456399),
> (5.050649564478115, 0.8263123289902004), (5.050652852378331,
> 0.8263107907013917)]}}
> Centroid:
> * Expected (approximately the average of vertices): (5.050648678475973,
> 0.8263086112510253)
> * Actual: (5.0506454742491504, 0.8263177505886343)
> The difference looks small, however, the actual result is outside the polygon.
> Area:
> * Expected: 2.0005645375711432E-11
> * Actual: 1.9971579945377016E-11
--
This message was sent by Atlassian Jira
(v8.3.4#803005)