use of org.neo4j.kernel.impl.index.schema.config.SpaceFillingCurveSettings in project neo4j by neo4j.
the class SpatialIndexConfig method settingFromIndexConfig.
private static SpaceFillingCurveSettings settingFromIndexConfig(IndexConfig indexConfig, CoordinateReferenceSystem crs) {
final double[] min = asDoubleArray(indexConfig.get(IndexSettingUtil.spatialMinSettingForCrs(crs).getSettingName()));
final double[] max = asDoubleArray(indexConfig.get(IndexSettingUtil.spatialMaxSettingForCrs(crs).getSettingName()));
final Envelope envelope = new Envelope(min, max);
return new SpaceFillingCurveSettings(crs.getDimension(), envelope);
}
Aggregations