[
https://issues.apache.org/jira/browse/SOLR-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12968751#action_12968751
]
Grant Ingersoll commented on SOLR-2268:
---------------------------------------
bq. The spatially enabled databases follow the "Simple Features Specification
for SQL" spec which defines the ironically named "Well Known Text" format (WKT)
for representing points polygons etc
http://en.wikipedia.org/wiki/Well-known_text
Hmm, seems a bit verbose. For instance, we will already know it is a poly by
it's field type and the extra parens seem like they could easily be replaced.
Then again, if it is a standard...
bq. Using any AWT class can introduce issues related to servers and headless
mode. I'd recommend instead the JTS Java Topology Suite which has a lot of
useful stuff - including WKT readers and writers
http://goo.gl/IyNeD
AWT won't work anyway, as it only takes ints. I've found a simple ASL Polygon
class that I think does what we need it. JTS is good, but it is LGPL. :-(
> Add support for Point in Polygon searches
> -----------------------------------------
>
> Key: SOLR-2268
> URL: https://issues.apache.org/jira/browse/SOLR-2268
> Project: Solr
> Issue Type: New Feature
> Reporter: Grant Ingersoll
> Assignee: Grant Ingersoll
>
> 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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]