private SpatialRelation getSpatialRelation(Geoshape other) { Preconditions.checkNotNull(other); return convert2Spatial4j().relate(other.convert2Spatial4j()); }
private SpatialRelation getSpatialRelation(Geoshape other) { Preconditions.checkNotNull(other); return convert2Spatial4j().relate(other.convert2Spatial4j()); }
private SpatialRelation getSpatialRelation(Geoshape other) { Preconditions.checkNotNull(other); return convert2Spatial4j().relate(other.convert2Spatial4j()); }
Shape shape = ((Geoshape) add.value).convert2Spatial4j(); geofields.put(add.key, shape); doc.add(new StoredField(add.key, GEOID + ctx.toString(shape)));
} else if (value instanceof Geoshape) { Preconditions.checkArgument(titanPredicate == Geo.WITHIN, "Relation is not supported for geo value: " + titanPredicate); Shape shape = ((Geoshape) value).convert2Spatial4j(); SpatialArgs args = new SpatialArgs(SpatialOperation.IsWithin, shape); return getSpatialStrategy(key).makeFilter(args);