@Test
public void testLatitutde() {

  final NumericDimensionField[] fields =
      new NumericDimensionField[] {new LatitudeField(GeometryUtils.MAX_GEOMETRY_PRECISION)};
  final Geometry geo =
      factory.createLineString(
          new Coordinate[] {
              new Coordinate(-99.22, 33.75000000000001), // notice
              // that
              // this gets
              // tiled as
              // 33.75
              new Coordinate(-99.15, 33.75000000000001)
          // notice that this gets tiled as 33.75
          });
  final GeometryWrapper wrapper = new GeometryWrapper(geo);
  NumericRange rangeData = new NumericRange(33.7442334433, 33.75 + (1E-10d));
  assertTrue(wrapper.overlaps(fields, new NumericData[] {rangeData}));
  rangeData = new NumericRange(33.7442334433, 33.75 - (1E-10d));
  assertFalse(wrapper.overlaps(fields, new NumericData[] {rangeData}));
  rangeData = new NumericRange(33.75 - (1E-10d), 33.751);
  assertTrue(wrapper.overlaps(fields, new NumericData[] {rangeData}));
  rangeData = new NumericRange(33.75 + (1E-10d), 33.751);
  assertFalse(wrapper.overlaps(fields, new NumericData[] {rangeData}));
}