List of usage examples for org.apache.lucene.geo GeoTestUtil nextBox
public static Rectangle nextBox()
From source file:org.elasticsearch.common.geo.GeoWKTShapeParserTests.java
License:Apache License
@Override public void testParseEnvelope() throws IOException { org.apache.lucene.geo.Rectangle r = GeoTestUtil.nextBox(); EnvelopeBuilder builder = new EnvelopeBuilder(new Coordinate(r.minLon, r.maxLat), new Coordinate(r.maxLon, r.minLat)); Rectangle expected = SPATIAL_CONTEXT.makeRectangle(r.minLon, r.maxLon, r.minLat, r.maxLat); assertExpected(expected, builder);/* ww w . j a v a 2s . co m*/ assertMalformed(builder); }