public void CreateAndPassQuery() { logger.Debug("CreateAndPassQuery"); controller.uiManager.panelManager.ShowPanel("waiting"); SimilarQuery spatialQuery = null; if (TargetLocation != null) { logger.Debug("Found spatial input, building spatial query"); spatialQuery = QueryFactory.BuildSpatialSimilarQuery(TargetLocation.latitude, TargetLocation.longitude); } SimilarQuery temporalQuery = null; logger.Debug("Start and End time input s:{0}, e:{1}", startInput.text, endInput.text); if (!string.IsNullOrEmpty(startInput.text)) { int lower = int.Parse(startInput.text); int upper = !string.IsNullOrEmpty(endInput.text) ? int.Parse(endInput.text) : 9990; controller.SetTemporalRange(lower, upper); logger.Debug("Found at least start input, building termporal query"); temporalQuery = QueryFactory.BuildTemporalSimilarQuery(ConvertYearToISO8601((lower + upper) / 2)); /*if (spatialQuery != null) * { * temporalQuery.With(spatialQuery); * }*/ } logger.Debug("Sending query to controller"); if (temporalQuery != null) { controller.GoQuery(temporalQuery); } else { if (maxDistProvider.IsModified()) { controller.SetMaxDistance(maxDistProvider.GetMaxDistance()); } controller.GoQuery(spatialQuery); } }