[
https://issues.apache.org/jira/browse/LUCENE-4464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476690#comment-13476690
]
David Smiley commented on LUCENE-4464:
--------------------------------------
I'm starting to diagnose this. One problem I see is that the 1st polygon has a
self-intersection. I got this error when trying to generate a KML file
depicting the geohash rectangles via the Solr-Spatial-Sandbox spatial-demo:
com.spatial4j.core.exception.InvalidShapeException: Ring Self-intersection at
or near point (-92.81473397710002, 45.20993823293909, NaN)
at com.spatial4j.core.shape.jts.JtsGeometry.<init>(JtsGeometry.java:90)
at
com.spatial4j.core.io.JtsShapeReadWriter.readShape(JtsShapeReadWriter.java:93)
at
com.spatial4j.core.context.SpatialContext.readShape(SpatialContext.java:195)
at
com.spatial4j.demo.servlet.GridInfoServlet.doPost(GridInfoServlet.java:113)
I also got this error when trying validating the polygon via the JTS
TestBuilder (a GUI); I attached a screenshot. It's very strange that I'm
seeing this error yet you are not; you wouldn't have been able to index it
without getting this error.
> "Intersects" spatial query returns polygons it shouldn't
> --------------------------------------------------------
>
> Key: LUCENE-4464
> URL: https://issues.apache.org/jira/browse/LUCENE-4464
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/spatial
> Affects Versions: 3.6.1
> Environment: linux and windows
> Reporter: solr-user
> Assignee: David Smiley
> Priority: Critical
> Labels: solr, spatial, spatialsearch
> Attachments: LUCENE-4464 self intersect.png
>
>
> full description, including sample schema and data, can be found at
> http://lucene.472066.n3.nabble.com/quot-Intersects-quot-spatial-query-returns-polygons-it-shouldn-t-td4008646.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]