new SFCDimensionDefinition(
new LatitudeDefinition(),
LATITUDE_BITS)
};
SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
SPATIAL_DIMENSIONS,
SFCType.HILBERT);
// Create a IndexRange object using the x axis
final NumericRange rangeX = new NumericRange(
55,
57);
// Create a IndexRange object using the y axis
final NumericRange rangeY = new NumericRange(
25,
27);
BasicNumericDataset spatialQuery = new BasicNumericDataset(
new NumericData[] {
rangeX,
rangeY
});
RangeDecomposition rangeDecomposition = hilbertSFC.decomposeQuery(
spatialQuery,
1);
Assert.assertEquals(
1,