lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4464) "Intersects" spatial query returns polygons it shouldn't
Date Tue, 16 Oct 2012 03:23:03 GMT


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>(
	at com.spatial4j.core.context.SpatialContext.readShape(
	at com.spatial4j.demo.servlet.GridInfoServlet.doPost(

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

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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message