You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2016/05/13 03:54:12 UTC

[jira] [Created] (LUCENE-7280) SpatialStrategy impl for GeoPointField

David Smiley created LUCENE-7280:
------------------------------------

             Summary: SpatialStrategy impl for GeoPointField
                 Key: LUCENE-7280
                 URL: https://issues.apache.org/jira/browse/LUCENE-7280
             Project: Lucene - Core
          Issue Type: New Feature
          Components: modules/spatial-extras
            Reporter: David Smiley


It would be cool if were a SpatialStrategy (an abstraction in spatial-extras module) implementation for GeoPointField (in "spatial" module).  In this way code that uses the SpatialStrategy abstraction could leverage this implementation with no code changes, aside from the construction part.  

Perhaps the biggest part of doing this is creating implementations of the Spatial4j abstractions to, ultimately, create Shape impls that are basic POJOs to hold the basic data but otherwise do no calculations (throw exceptions from relate(), etc.).  Then, SpatialStrategy.createQuery can cast the Shape to see what sort of shape it is before calling, e.g. GeoPointInPolygonQuery.  Those Spatial4j abstractions might be used for other future SpatialStrategy wrappers, like for Geo3DPoint, or LatLonPoint.



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