Codota Logo
SosContentCache.getAllObservationTypesForOffering
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Kernel (java.awt.image)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • JFrame (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now