}
}
public static void checkOSMSearch(OSMLayer layer) throws IOException {
OSMDataset osm = (OSMDataset) layer.getDataset();
Way way = null;
int count = 0;
for (Way wayNode : osm.getWays()) {
way = wayNode;
if (count++ > 100)
break;
}
assertNotNull("Should be at least one way", way);
Envelope bbox = way.getEnvelope();
runSearches(layer, bbox, true);
org.neo4j.gis.spatial.rtree.Envelope layerBBox = layer.getIndex().getBoundingBox();
double[] centre = layerBBox.centre();
double width = layerBBox.getWidth() / 100.0;
double height = layerBBox.getHeight() / 100.0;