lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Teun Duynstee (Commented) (JIRA)" <>
Subject [jira] [Commented] (SOLR-2268) Add support for Point in Polygon searches
Date Fri, 21 Oct 2011 12:18:32 GMT


Teun Duynstee commented on SOLR-2268:

I don't want to interfere with the process on this issue, but I can give my perspective on
this issue as a heavy user of both Solr and geospatial data (not coming from the GIS field

In my opinion, the WKT format is a bit of a must if you want users of geospatial data to take
your solution seriously. Yes, it is verbose, and I'm not sure how you should implement the
actual storage, but you should be able to regenerate the WKT data. Defining polygons is a
lot more complex than you'd think from the start. If you check out public datasets like the
OpenStreetMap data, you'll see that it is common for a geo-shape to have several parts, holes
and little islands inside the holes. All vendors of GIS tooling use this format (actually,
they use many, but WKT is the one they all use). If you're interested in more concise ways
of storing polygons, it could be worth looking into the work Google did (,
although be aware that these are lossy algorithms). WKB is meant to be smaller and non-lossy.

Think of al the scenarios that open up when you can combine Solr search with the output from
other GIS-like systems. You could imagine calculating a polygon of all places that you can
drive to within an hour and facet on that (in PostGIS on PostgresSQL, you can do routing on
OpenStreetmap data using the PGRouting module). I am very excited about the work that is done
on the Lucene Spatial Playground, wish I where capable enough to help.

> Add support for Point in Polygon searches
> -----------------------------------------
>                 Key: SOLR-2268
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>         Attachments: SOLR-2268.patch
> In spatial applications, it is common to ask whether a point is inside of a polygon.
 Solr could support two forms of this: 
> # A field contains a polygon and the user supplies a point.  If it does, the doc is returned.
> # A document contains a point and the user supplies a polygon.  If the point is in the
polygon, return the document
> With both of these case, it would be good to support the negative assertion, too.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


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

View raw message