Tabnine Logo
SosContentCache.getAllObservationTypesForOffering
Code IndexAdd Tabnine to your IDE (free)

How to use
getAllObservationTypesForOffering
method
in
org.n52.sos.cache.SosContentCache

Best Java code snippets using org.n52.sos.cache.SosContentCache.getAllObservationTypesForOffering (Showing top 5 results out of 315)

origin: 52North/SOS

protected Set<String> getResponseFormatForOffering(String offering, String version) {
  Set<String> responseFormats = getCache().getAllObservationTypesForOffering(offering).stream()
      .map(observationType -> getResponseFormatsForObservationType(observationType, SosConstants.SOS, version))
      .filter(Objects::nonNull).flatMap(Set::stream).collect(toSet());
  switch (version) {
    case Sos1Constants.SERVICEVERSION:
      return checkForMimeType(responseFormats, true);
    case Sos2Constants.SERVICEVERSION:
      return checkForMimeType(responseFormats, false);
    default:
      return responseFormats;
  }
}
origin: 52North/SOS

/**
 * Check if observationType is valid for observation
 *
 * @param observation
 *            {@link OmObservation} to check
 * @param observationType
 *            The observationType to check
 * @return <code>true</code>, if observationType is valid for observation
 */
private boolean checkForObservationType(OmObservation observation, String observationType) {
  for (String offering : observation.getObservationConstellation().getOfferings()) {
    if (((SosContentCache) getContentCacheController().getCache()).getAllObservationTypesForOffering(offering).contains(observationType)) {
      return true;
    }
  }
  return false;
}
origin: org.n52.sensorweb.sos/observation-converter

/**
 * Check if observationType is valid for observation
 *
 * @param observation
 *            {@link OmObservation} to check
 * @param observationType
 *            The observationType to check
 * @return <code>true</code>, if observationType is valid for observation
 */
private boolean checkForObservationType(OmObservation observation, String observationType) {
  for (String offering : observation.getObservationConstellation().getOfferings()) {
    if (((SosContentCache) getContentCacheController().getCache()).getAllObservationTypesForOffering(offering).contains(observationType)) {
      return true;
    }
  }
  return false;
}
origin: 52North/SOS

/**
 * Check for {@link TrajectoryObservation}
 *
 * @param observation
 *            {@link OmObservation} to check
 * @return <code>true</code>, if observationType of observation is
 *         {@link InspireOMSOConstants#OBS_TYPE_TRAJECTORY_OBSERVATION}
 */
private boolean checkForTrajectory(OmObservation observation) {
  for (String offering : observation.getObservationConstellation().getOfferings()) {
    if (((SosContentCache) getContentCacheController().getCache()).getAllObservationTypesForOffering(offering)
        .contains(InspireOMSOConstants.OBS_TYPE_TRAJECTORY_OBSERVATION)) {
      return true;
    }
  }
  return checkForObservationType(observation, InspireOMSOConstants.OBS_TYPE_TRAJECTORY_OBSERVATION);
}
origin: org.n52.sensorweb.sos/observation-converter

/**
 * Check for {@link TrajectoryObservation}
 *
 * @param observation
 *            {@link OmObservation} to check
 * @return <code>true</code>, if observationType of observation is
 *         {@link InspireOMSOConstants#OBS_TYPE_TRAJECTORY_OBSERVATION}
 */
private boolean checkForTrajectory(OmObservation observation) {
  for (String offering : observation.getObservationConstellation().getOfferings()) {
    if (((SosContentCache) getContentCacheController().getCache()).getAllObservationTypesForOffering(offering)
        .contains(InspireOMSOConstants.OBS_TYPE_TRAJECTORY_OBSERVATION)) {
      return true;
    }
  }
  return checkForObservationType(observation, InspireOMSOConstants.OBS_TYPE_TRAJECTORY_OBSERVATION);
}
org.n52.sos.cacheSosContentCachegetAllObservationTypesForOffering

Javadoc

Returns the all observation types for the specified offering.

Popular methods of SosContentCache

  • getOfferings
  • getObservableProperties
  • getFeatureOfInterestTypes
  • getObservationTypes
  • getProceduresForOffering
  • hasObservableProperty
  • hasOffering
  • getAllowedObservationTypesForOffering
  • getChildProcedures
    Returns collection containing child procedures for the passed procedures, optionally navigating the
  • getEpsgCodes
  • getOfferingsForProcedure
  • getProcedures
  • getOfferingsForProcedure,
  • getProcedures,
  • getPublishedObservableProperties,
  • getPublishedOfferings,
  • hasResultTemplate,
  • getCompositePhenomenonsForOffering,
  • getEnvelopeForOffering,
  • getFeaturesOfInterest,
  • getFeaturesOfInterestForOffering

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Collectors (java.util.stream)
  • JPanel (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now