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: [email protected]
For additional commands, e-mail: [email protected]