lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-7226) Geo3d polygon data cleaning would be helpful
Date Sun, 17 Apr 2016 19:47:25 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-7226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15244853#comment-15244853
] 

Michael McCandless commented on LUCENE-7226:
--------------------------------------------

Thanks [~daddywri], but it still fails, in a different way:

{noformat}
Exception in thread "main" java.lang.IllegalArgumentException: cannot find a point that is
inside the polygon
	at org.apache.lucene.spatial3d.geom.GeoPolygonFactory.makeGeoPolygon(GeoPolygonFactory.java:82)
	at org.apache.lucene.spatial3d.Geo3DPoint.fromPolygon(Geo3DPoint.java:210)
	at org.apache.lucene.spatial3d.Geo3DPoint.fromPolygon(Geo3DPoint.java:193)
	at org.apache.lucene.spatial3d.Geo3DPoint.newPolygonQuery(Geo3DPoint.java:148)
	at perf.IndexAndSearchOpenStreetMaps.readPolygonQueries(IndexAndSearchOpenStreetMaps.java:328)
	at perf.IndexAndSearchOpenStreetMaps.queryIndex(IndexAndSearchOpenStreetMaps.java:627)
	at perf.IndexAndSearchOpenStreetMaps.main(IndexAndSearchOpenStreetMaps.java:1179)
{noformat}

If you run the geo benchmark with {{-polyMedium}} it should show it...

> Geo3d polygon data cleaning would be helpful
> --------------------------------------------
>
>                 Key: LUCENE-7226
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7226
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/spatial3d
>    Affects Versions: master
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: master, 6.x
>
>         Attachments: LUCENE-7226.patch
>
>
> Some of the OpenStreetMap data has duplicate points, and edges that backtrack upon themselves.
 For most means of constructing polygons, it would be good to "correct" the data and prune
problematic points.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message