/** * Get FOIs contained in an offering * * @param offering Offering identifier * * @return FOI identifiers * * * @throws OwsExceptionReport * If an error occurs */ protected Set<String> getFOI4offering(final String offering) throws OwsExceptionReport { final Set<String> featureIDs = new HashSet<>(0); final Set<String> features = getCache().getFeaturesOfInterestForOffering(offering); if (!getProfileHandler().getActiveProfile().isListFeatureOfInterestsInOfferings() || features == null) { featureIDs.add(OGCConstants.UNKNOWN); } else { featureIDs.addAll(features); } return featureIDs; }
/** * Get featureOfInterests for procedure and version * * @return Collection with featureOfInterests * * @throws OwsExceptionReport If an error occurs */ private Collection<String> getFeatureOfInterestIDs() throws OwsExceptionReport { Set<String> features = Sets.newHashSet(); // add cache map for proc/fois and get fois for proc for (String offering : getCache().getOfferingsForProcedure(getIdentifier())) { // don't include features for offerings which this procedure is a // hidden child of if (!getCache().getHiddenChildProceduresForOffering(offering).contains(getIdentifier())) { features.addAll(getCache().getFeaturesOfInterestForOffering(offering)); } } return SosHelper.getFeatureIDs(features, getVersion()); }