public class SpatialFileQueryMaker extends AbstractQueryMaker
LineDocSource
.
It's parsed by SpatialContext.readShapeFromWkt(String)
(String)} and then
further manipulated via a configurable SpatialDocMaker.ShapeConverter
. When using point
data, it's likely you'll want to configure the shape converter so that the query shapes actually
cover a region. The queries are all created & cached in advance. This query maker works in
conjunction with SpatialDocMaker
. See spatial.alg for a listing of options, in
particular the options starting with "query.".Modifier and Type | Field and Description |
---|---|
protected double |
distErrPct |
protected SpatialOperation |
operation |
protected boolean |
score |
protected SpatialDocMaker.ShapeConverter |
shapeConverter |
protected SpatialStrategy |
strategy |
config, qnum, queries
Constructor and Description |
---|
SpatialFileQueryMaker() |
Modifier and Type | Method and Description |
---|---|
protected Query |
makeQueryFromShape(com.spatial4j.core.shape.Shape shape) |
protected Query[] |
prepareQueries() |
void |
setConfig(Config config)
Set the properties
|
makeQuery, makeQuery, nextQnum, printQueries, resetInputs
protected SpatialStrategy strategy
protected double distErrPct
protected SpatialOperation operation
protected boolean score
protected SpatialDocMaker.ShapeConverter shapeConverter
public void setConfig(Config config) throws Exception
QueryMaker
setConfig
in interface QueryMaker
setConfig
in class AbstractQueryMaker
Exception
protected Query[] prepareQueries() throws Exception
prepareQueries
in class AbstractQueryMaker
Exception
protected Query makeQueryFromShape(com.spatial4j.core.shape.Shape shape)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.