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 and 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(org.locationtech.spatial4j.shape.Shape shape) |
protected Query[] |
prepareQueries() |
void |
setConfig(Config config)
Set the properties
|
makeQuery, makeQuery, nextQnum, printQueries, resetInputsprotected SpatialStrategy strategy
protected double distErrPct
protected SpatialOperation operation
protected boolean score
protected SpatialDocMaker.ShapeConverter shapeConverter
public void setConfig(Config config) throws Exception
QueryMakersetConfig in interface QueryMakersetConfig in class AbstractQueryMakerExceptionprotected Query[] prepareQueries() throws Exception
prepareQueries in class AbstractQueryMakerExceptionprotected Query makeQueryFromShape(org.locationtech.spatial4j.shape.Shape shape)
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.