Class SpatialArgsParser
Parses a string that usually looks like "OPERATION(SHAPE)" into a SpatialArgs object. The set of operations supported are defined in SpatialOperation, such as "Intersects" being a common one. The shape portion is defined by WKT WktShapeParser, but it can be overridden/customized via ParseShape(String, SpatialContext). There are some optional name-value pair parameters that follow the closing parenthesis. Example:
Intersects(ENVELOPE(-10,-8,22,20)) distErrPct=0.025
In the future it would be good to support something at least semi-standardized like a variant of [E]CQL.
@lucene.experimental
Inheritance
Inherited Members
Assembly: Lucene.Net.Spatial.dll
Syntax
public class SpatialArgsParser
Fields
Name | Description |
---|---|
DIST_ERR | |
DIST_ERR_PCT |
Methods
Name | Description |
---|---|
NewSpatialArgs(SpatialOperation, IShape) | |
Parse(String, SpatialContext) | Parses a string such as "Intersects(ENVELOPE(-10,-8,22,20)) distErrPct=0.025". |
ParseMap(String) | Parses "a=b c=d f" (whitespace separated) into name-value pairs. If there is no '=' as in 'f' above then it's short for f=f. |
ParseShape(String, SpatialContext) | |
ReadBool(String, Boolean) | |
ReadDouble(String) | |
ReadNameValuePairs(SpatialArgs, IDictionary<String, String>) | |
WriteSpatialArgs(SpatialArgs) | Writes a close approximation to the parsed input format. |