Lucene.Net
3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
|
A SpatialPrefixGrid based on Geohashes. Uses GeohashUtils to do all the geohash work. More...
Inherits Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTree.
Classes | |
class | Factory |
Factory for creating GeohashPrefixTree instances with useful defaults More... | |
class | GhCell |
Public Member Functions | |
GeohashPrefixTree (SpatialContext ctx, int maxLevels) | |
override int | GetLevelForDistance (double dist) |
Returns the level of the largest grid in which its longest side is less than or equal to the provided distance (in degrees). Consequently dist acts as an error epsilon declaring the amount of detail needed in the grid, such that you can get a grid with just the right amount of precision. | |
override Node | GetNode (string token) |
override Node | GetNode (byte[] bytes, int offset, int len) |
override IList< Node > | GetNodes (Shape shape, int detailLevel, bool inclParents) |
Public Member Functions inherited from Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTree | |
SpatialContext | GetSpatialContext () |
int | GetMaxLevels () |
override String | ToString () |
Node | GetWorldNode () |
abstract Node | GetNode (String token) |
Node | GetNode (string token, Node target) |
Static Public Member Functions | |
static int | GetMaxLevelsPossible () |
Any more than this and there's no point (double lat and lon are the same). | |
Static Public Member Functions inherited from Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTree | |
static List< String > | NodesToTokenStrings (Collection< Node > nodes) |
Protected Member Functions | |
override Node | GetNode (Point p, int level) |
Protected Member Functions inherited from Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTree | |
SpatialPrefixTree (SpatialContext ctx, int maxLevels) | |
virtual IList< Node > | GetNodesAltPoint (Point p, int detailLevel, bool inclParents) |
Additional Inherited Members | |
Protected Attributes inherited from Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTree | |
readonly int | maxLevels |
A SpatialPrefixGrid based on Geohashes. Uses GeohashUtils to do all the geohash work.
Definition at line 29 of file GeohashPrefixTree.cs.
Lucene.Net.Spatial.Prefix.Tree.GeohashPrefixTree.GeohashPrefixTree | ( | SpatialContext | ctx, |
int | maxLevels | ||
) |
Definition at line 49 of file GeohashPrefixTree.cs.
|
virtual |
Returns the level of the largest grid in which its longest side is less than or equal to the provided distance (in degrees). Consequently dist acts as an error epsilon declaring the amount of detail needed in the grid, such that you can get a grid with just the right amount of precision.
dist | >= 0 |
Implements Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTree.
Definition at line 70 of file GeohashPrefixTree.cs.
|
static |
Any more than this and there's no point (double lat and lon are the same).
Definition at line 65 of file GeohashPrefixTree.cs.
|
protectedvirtual |
Reimplemented from Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTree.
Definition at line 78 of file GeohashPrefixTree.cs.
override Node Lucene.Net.Spatial.Prefix.Tree.GeohashPrefixTree.GetNode | ( | string | token | ) |
Definition at line 83 of file GeohashPrefixTree.cs.
|
virtual |
Implements Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTree.
Definition at line 88 of file GeohashPrefixTree.cs.
|
virtual |
Reimplemented from Lucene.Net.Spatial.Prefix.Tree.SpatialPrefixTree.
Definition at line 93 of file GeohashPrefixTree.cs.