private OwsDomain getCrsParameter(String service, String version) { Set<String> crs = this.geometryHandler.addOgcCrsPrefix(getCache().getEpsgCodes()); Stream<OwsValue> allowedValues = crs.stream().map(OwsValue::new); return new OwsDomain(OWSConstants.AdditionalRequestParams.crs, new OwsAllowedValues(allowedValues)); }
public static Map<String, String> getCacheValues() { SosContentCache cache = Configurator.getInstance().getCache(); Map<String, String> values = new TreeMap<>(); values.put(LAST_UPDATE_TIME, nullSafeToString(cache.getLastUpdateTime())); values.put(MIN_PHENOMENON_TIME, nullSafeToString(cache.getMinPhenomenonTime())); values.put(MAX_PHENOMENON_TIME, nullSafeToString(cache.getMaxPhenomenonTime())); values.put(MIN_RESULT_TIME, nullSafeToString(cache.getMinResultTime())); values.put(MAX_RESULT_TIME, nullSafeToString(cache.getMaxResultTime())); values.put(GLOBAL_ENVELOPE, nullSafeToString(cache.getGlobalEnvelope())); values.put(NUM_OFFERINGS, nullSafeToString(cache.getOfferings())); values.put(NUM_PROCEDURES, nullSafeToString(cache.getProcedures())); values.put(NUM_OBSERVABLE_PROPERTIES, nullSafeToString(cache.getObservableProperties())); values.put(NUM_FEATURES_OF_INTEREST, nullSafeToString(cache.getFeaturesOfInterest())); values.put(NUM_FEATURE_OF_INTEREST_TYPES, nullSafeToString(cache.getFeatureOfInterestTypes())); values.put(NUM_OBSERVATION_TYPES, nullSafeToString(cache.getObservationTypes())); values.put(NUM_RELATED_FEATURES, nullSafeToString(cache.getRelatedFeatures())); values.put(NUM_RESULT_TEMPLATES, nullSafeToString(cache.getResultTemplates())); values.put(DEFAULT_EPSG, Integer.toString(cache.getDefaultEPSGCode())); values.put(NUM_EPSGS, nullSafeToString(cache.getEpsgCodes())); return values; }
public static Map<String, String> getCacheValues() { SosContentCache cache = Configurator.getInstance().getCache(); Map<String, String> values = new TreeMap<>(); values.put(LAST_UPDATE_TIME, nullSafeToString(cache.getLastUpdateTime())); values.put(MIN_PHENOMENON_TIME, nullSafeToString(cache.getMinPhenomenonTime())); values.put(MAX_PHENOMENON_TIME, nullSafeToString(cache.getMaxPhenomenonTime())); values.put(MIN_RESULT_TIME, nullSafeToString(cache.getMinResultTime())); values.put(MAX_RESULT_TIME, nullSafeToString(cache.getMaxResultTime())); values.put(GLOBAL_ENVELOPE, nullSafeToString(cache.getGlobalEnvelope())); values.put(NUM_OFFERINGS, nullSafeToString(cache.getOfferings())); values.put(NUM_PROCEDURES, nullSafeToString(cache.getProcedures())); values.put(NUM_OBSERVABLE_PROPERTIES, nullSafeToString(cache.getObservableProperties())); values.put(NUM_FEATURES_OF_INTEREST, nullSafeToString(cache.getFeaturesOfInterest())); values.put(NUM_FEATURE_OF_INTEREST_TYPES, nullSafeToString(cache.getFeatureOfInterestTypes())); values.put(NUM_OBSERVATION_TYPES, nullSafeToString(cache.getObservationTypes())); values.put(NUM_RELATED_FEATURES, nullSafeToString(cache.getRelatedFeatures())); values.put(NUM_RESULT_TEMPLATES, nullSafeToString(cache.getResultTemplates())); values.put(DEFAULT_EPSG, Integer.toString(cache.getDefaultEPSGCode())); values.put(NUM_EPSGS, nullSafeToString(cache.getEpsgCodes())); return values; }
/** * Get the supported languages * * @return the supported languages */ protected InspireSupportedCRS getSupportedCRS() { InspireSupportedCRS inspireSupportedCRS = null; if (getInspireHelper().isUseAuthority()) { inspireSupportedCRS = new InspireSupportedCRS(getGeometryHandler().addAuthorityCrsPrefix( getGeometryHandler().getDefaultResponseEPSG())); inspireSupportedCRS.setOtherCRS(getGeometryHandler().addAuthorityCrsPrefix( removeDefaultCRS(getGeometryHandler().getDefaultResponseEPSG(), getCache().getEpsgCodes()))); } else { inspireSupportedCRS = new InspireSupportedCRS(getGeometryHandler().addOgcCrsPrefix( getGeometryHandler().getDefaultResponseEPSG())); inspireSupportedCRS.setOtherCRS(getGeometryHandler().addOgcCrsPrefix( removeDefaultCRS(getGeometryHandler().getDefaultResponseEPSG(), getCache().getEpsgCodes()))); } return inspireSupportedCRS; }
/** * Get the supported languages * * @return the supported languages */ protected InspireSupportedCRS getSupportedCRS() { InspireSupportedCRS inspireSupportedCRS = null; if (getInspireHelper().isUseAuthority()) { inspireSupportedCRS = new InspireSupportedCRS(getGeometryHandler().addAuthorityCrsPrefix( getGeometryHandler().getDefaultResponseEPSG())); inspireSupportedCRS.setOtherCRS(getGeometryHandler().addAuthorityCrsPrefix( removeDefaultCRS(getGeometryHandler().getDefaultResponseEPSG(), getCache().getEpsgCodes()))); } else { inspireSupportedCRS = new InspireSupportedCRS(getGeometryHandler().addOgcCrsPrefix( getGeometryHandler().getDefaultResponseEPSG())); inspireSupportedCRS.setOtherCRS(getGeometryHandler().addOgcCrsPrefix( removeDefaultCRS(getGeometryHandler().getDefaultResponseEPSG(), getCache().getEpsgCodes()))); } return inspireSupportedCRS; }