[
https://issues.apache.org/jira/browse/LUCENE-7225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15245159#comment-15245159
]
Karl Wright commented on LUCENE-7225:
-------------------------------------
Analysis of Steve's failure so far (since it is simpler than the original one):
The tiled polygon is:
{code}
GeoCompositeMembershipShape: {[
GeoConvexPolygon: {planetmodel=PlanetModel.WGS84, points=
[[lat=-0.4252164254406539, lon=-1.0929282311747601([X=0.41916238097763436,
Y=-0.8093435958043177, Z=-0.4127428785664968])],
[lat=0.2055150822737076, lon=0.8094775925193464([X=0.6760197133035871,
Y=0.7093859395658346, Z=0.20427109186920892])],
[lat=0.39346633764155237, lon=1.306697331415816([X=0.24124272064589647,
Y=0.8921189226448045, Z=0.3836311592666308])]], internalEdges={1, 2}, holes=
[GeoCompositeMembershipShape: {[
GeoConcavePolygon: {planetmodel=PlanetModel.WGS84, points=
[[lat=-0.7589028145084319, lon=0.09171715229980089([X=0.7221987092764378,
Y=0.06642436827157765, Z=-0.6877990623901288])],
[lat=-0.651873232722942, lon=0.6179908114685031([X=0.6478403184284808,
Y=0.46053681844140953, Z=-0.6066034970967858])],
[lat=-0.9908376951545727, lon=0.4906255635660887([X=0.4827514526913641,
Y=0.2578819414092738, Z=-0.8354536767064217])]], internalEdges={},
holes=[]}]}]},
GeoConvexPolygon: {planetmodel=PlanetModel.WGS84, points=
[[lat=0.39346633764155237, lon=1.306697331415816([X=0.24124272064589647,
Y=0.8921189226448045, Z=0.3836311592666308])],
[lat=-0.4252164254406539, lon=-1.0929282311747601([X=0.41916238097763436,
Y=-0.8093435958043177, Z=-0.4127428785664968])],
[lat=0.4654236264787552, lon=1.3013260557429494([X=0.2380080413677112,
Y=0.8617612419312584, Z=0.4489988990508502])]], internalEdges={0, 1, 2}, holes=
[GeoCompositeMembershipShape: {[
GeoConcavePolygon: {planetmodel=PlanetModel.WGS84, points=
[[lat=-0.7589028145084319, lon=0.09171715229980089([X=0.7221987092764378,
Y=0.06642436827157765, Z=-0.6877990623901288])],
[lat=-0.651873232722942, lon=0.6179908114685031([X=0.6478403184284808,
Y=0.46053681844140953, Z=-0.6066034970967858])],
[lat=-0.9908376951545727, lon=0.4906255635660887([X=0.4827514526913641,
Y=0.2578819414092738, Z=-0.8354536767064217])]], internalEdges={},
holes=[]}]}]},
GeoConcavePolygon: {planetmodel=PlanetModel.WGS84, points=
[[lat=0.4654236264787552, lon=1.3013260557429494([X=0.2380080413677112,
Y=0.8617612419312584, Z=0.4489988990508502])],
[lat=0.39346633764155237, lon=1.306697331415816([X=0.24124272064589647,
Y=0.8921189226448045, Z=0.3836311592666308])],
[lat=-0.07741593942416389, lon=0.5334693210962216([X=0.8594122640512101,
Y=0.50755758923985, Z=-0.07742360418968308])]], internalEdges={0}, holes=
[GeoCompositeMembershipShape: {[
GeoConcavePolygon: {planetmodel=PlanetModel.WGS84, points=
[[lat=-0.7589028145084319, lon=0.09171715229980089([X=0.7221987092764378,
Y=0.06642436827157765, Z=-0.6877990623901288])],
[lat=-0.651873232722942, lon=0.6179908114685031([X=0.6478403184284808,
Y=0.46053681844140953, Z=-0.6066034970967858])],
[lat=-0.9908376951545727, lon=0.4906255635660887([X=0.4827514526913641,
Y=0.2578819414092738, Z=-0.8354536767064217])]], internalEdges={},
holes=[]}]}]},
GeoConcavePolygon: {planetmodel=PlanetModel.WGS84, points=
[[lat=0.4654236264787552, lon=1.3013260557429494([X=0.2380080413677112,
Y=0.8617612419312584, Z=0.4489988990508502])],
[lat=-0.4252164254406539, lon=-1.0929282311747601([X=0.41916238097763436,
Y=-0.8093435958043177, Z=-0.4127428785664968])],
[lat=-0.48522750470337056, lon=-1.7370471071224087([X=-0.14644023172524287,
Y=-0.8727091042681705, Z=-0.4665895520487907])],
[lat=-1.2964641581620537, lon=-1.487600369139357([X=0.022467282495493006,
Y=-0.26942922375508405, Z=-0.960688317984634])]], internalEdges={0}, holes=
[GeoCompositeMembershipShape: {[
GeoConcavePolygon: {planetmodel=PlanetModel.WGS84, points=
[[lat=-0.7589028145084319, lon=0.09171715229980089([X=0.7221987092764378,
Y=0.06642436827157765, Z=-0.6877990623901288])],
[lat=-0.651873232722942, lon=0.6179908114685031([X=0.6478403184284808,
Y=0.46053681844140953, Z=-0.6066034970967858])],
[lat=-0.9908376951545727, lon=0.4906255635660887([X=0.4827514526913641,
Y=0.2578819414092738, Z=-0.8354536767064217])]], internalEdges={},
holes=[]}]}]},
GeoConvexPolygon: {planetmodel=PlanetModel.WGS84, points=
[[lat=0.39346633764155237, lon=1.306697331415816([X=0.24124272064589647,
Y=0.8921189226448045, Z=0.3836311592666308])],
[lat=0.2055150822737076, lon=0.8094775925193464([X=0.6760197133035871,
Y=0.7093859395658346, Z=0.20427109186920892])],
[lat=-0.504360159046884, lon=-1.27628468850318([X=0.25421329462858633,
Y=-0.8380671569889917, Z=-0.4834077932502288])]], internalEdges={0, 2}, holes=
[GeoCompositeMembershipShape: {[
GeoConcavePolygon: {planetmodel=PlanetModel.WGS84, points=
[[lat=-0.7589028145084319, lon=0.09171715229980089([X=0.7221987092764378,
Y=0.06642436827157765, Z=-0.6877990623901288])],
[lat=-0.651873232722942, lon=0.6179908114685031([X=0.6478403184284808,
Y=0.46053681844140953, Z=-0.6066034970967858])],
[lat=-0.9908376951545727, lon=0.4906255635660887([X=0.4827514526913641,
Y=0.2578819414092738, Z=-0.8354536767064217])]], internalEdges={},
holes=[]}]}]},
GeoConcavePolygon: {planetmodel=PlanetModel.WGS84, points=
[[lat=0.39346633764155237, lon=1.306697331415816([X=0.24124272064589647,
Y=0.8921189226448045, Z=0.3836311592666308])],
[lat=-0.504360159046884, lon=-1.27628468850318([X=0.25421329462858633,
Y=-0.8380671569889917, Z=-0.4834077932502288])],
[lat=-0.11994023948700858, lon=0.07857194136150605([X=0.9908123546871113,
Y=0.07801065055912473, Z=-0.11978097184039621])]], internalEdges={0}, holes=
[GeoCompositeMembershipShape: {[
GeoConcavePolygon: {planetmodel=PlanetModel.WGS84, points=
[[lat=-0.7589028145084319, lon=0.09171715229980089([X=0.7221987092764378,
Y=0.06642436827157765, Z=-0.6877990623901288])],
[lat=-0.651873232722942, lon=0.6179908114685031([X=0.6478403184284808,
Y=0.46053681844140953, Z=-0.6066034970967858])],
[lat=-0.9908376951545727, lon=0.4906255635660887([X=0.4827514526913641,
Y=0.2578819414092738, Z=-0.8354536767064217])]], internalEdges={},
holes=[]}]}]}]}
{code}
This is bizarre because a properly tiled polygon can only have at most one
GeoConcavePolygon; this has three.
There is one hole; it's repeated for all the components, which is what is
supposed to happen. However, the hole's existence is mandatory for the test to
fail, which is something I do not understand either.
Nevertheless, the failure here has to be considered the tiling failure, which
is where I'll focus my effort to understand.
> Geo3d test failure
> ------------------
>
> Key: LUCENE-7225
> URL: https://issues.apache.org/jira/browse/LUCENE-7225
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/spatial3d
> Affects Versions: master
> Reporter: Karl Wright
> Assignee: Karl Wright
> Attachments: LUCENE-7225.patch, LUCENE-7225.patch
>
>
> Here's how to reproduce:
> {code}
> ant test -Dtestcase=TestGeo3DPoint -Dtests.method=testRandomMedium
> -Dtests.seed=FC3AB2BE996B411E -Dtests.multiplier=3 -Dtests.slow=true
> -Dtests.locale=vi -Dtests.timezone=Europe/Kaliningrad -Dtests.asserts=true
> -Dtests.file.encoding=US-ASCII
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]