/** * Create an instance of {@link DeegreeWCS } * */ public DeegreeWCS createDeegreeWCS() { return new DeegreeWCS(); }
/** * Create an instance of {@link RangeSetType.AxisDescription } * */ public RangeSetType.AxisDescription createRangeSetTypeAxisDescription() { return new RangeSetType.AxisDescription(); }
/** * Create an instance of {@link PublishedInformation.AllowedOperations.GetCapabilities } * */ public PublishedInformation.AllowedOperations.GetCapabilities createPublishedInformationAllowedOperationsGetCapabilities() { return new PublishedInformation.AllowedOperations.GetCapabilities(); }
private SimpleCoverage buildCoverage( Coverage coverage, AbstractRaster raster ) { CoverageOptions options = buildOptions( coverage.getNativeFormat(), coverage.getSupportOptions() ); RangeSet rs = RangeSetBuilder.createBandRangeSetFromRaster( "generated", "Automatically generated dataset, created from the native raster types.", raster ); return new SimpleCoverage( coverage.getName(), coverage.getLabel(), raster, options, rs ); }
@Override public void init( DeegreeServicesMetadataType serviceMetadata, DeegreeServiceControllerType mainConf, Object controllerConf ) { LOG.info( "Initializing WCS." ); UPDATE_SEQUENCE++; DeegreeWCS cfg = (DeegreeWCS) controllerConf; NamespaceBindings nsContext = new NamespaceBindings(); nsContext.addNamespace( WCSConstants.WCS_100_PRE, WCS_100_NS ); nsContext.addNamespace( WCSConstants.WCS_110_PRE, WCSConstants.WCS_110_NS ); nsContext.addNamespace( CONFIG_PRE, CONFIG_NS ); this.wcsService = new WCServiceBuilder( workspace, getMetadata() ).buildService(); PublishedInformation publishedInformation = cfg.getPublishedInformation(); parsePublishedInformation( publishedInformation, nsContext ); syncWithMainController( publishedInformation, serviceMetadata ); validateAndSetOfferedVersions( publishedInformation.getSupportedVersions().getVersion() ); mainControllerConf = mainConf; mainMetadataConf = serviceMetadata; }
/** * Create an instance of {@link PublishedInformation } * */ public PublishedInformation createPublishedInformation() { return new PublishedInformation(); }
/** * Create an instance of {@link AxisValue } * */ public AxisValue createAxisValue() { return new AxisValue(); }
/** * Create an instance of {@link TypedType } * */ public TypedType createTypedType() { return new TypedType(); }
/** * Create an instance of {@link SupportOptions } * */ public SupportOptions createSupportOptions() { return new SupportOptions(); }
/** * Create an instance of {@link PublishedInformation.SupportedVersions } * */ public PublishedInformation.SupportedVersions createPublishedInformationSupportedVersions() { return new PublishedInformation.SupportedVersions(); }
/** * Create an instance of {@link ServiceConfiguration } * */ public ServiceConfiguration createServiceConfiguration() { return new ServiceConfiguration(); }
/** * Create an instance of {@link RangeSetType } * */ public RangeSetType createRangeSetType() { return new RangeSetType(); }
/** * Create an instance of {@link IntervalType } * */ public IntervalType createIntervalType() { return new IntervalType(); }
/** * Create an instance of {@link PublishedInformation.AllowedOperations.GetCoverage } * */ public PublishedInformation.AllowedOperations.GetCoverage createPublishedInformationAllowedOperationsGetCoverage() { return new PublishedInformation.AllowedOperations.GetCoverage(); }
/** * Create an instance of {@link PublishedInformation.AllowedOperations } * */ public PublishedInformation.AllowedOperations createPublishedInformationAllowedOperations() { return new PublishedInformation.AllowedOperations(); }
/** * Create an instance of {@link ServiceConfiguration.Coverage } * */ public ServiceConfiguration.Coverage createServiceConfigurationCoverage() { return new ServiceConfiguration.Coverage(); }
/** * Create an instance of {@link PublishedInformation.AllowedOperations.DescribeCoverage } * */ public PublishedInformation.AllowedOperations.DescribeCoverage createPublishedInformationAllowedOperationsDescribeCoverage() { return new PublishedInformation.AllowedOperations.DescribeCoverage(); }
public static Interpolation fromValue(String v) { for (Interpolation c: Interpolation.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); }
private void parsePublishedInformation( PublishedInformation pubInf, NamespaceBindings nsContext ) throws ResourceInitException { if ( pubInf != null ) { // mandatory allowedOperations.add( WCSRequestType.GetCapabilities.name() ); AllowedOperations configuredOperations = pubInf.getAllowedOperations(); if ( configuredOperations != null ) { // if ( configuredOperations.getDescribeCoverage() != null ) { // if // } LOG.info( "WCS specification implies support for all three operations." ); } allowedOperations.add( WCSRequestType.DescribeCoverage.name() ); allowedOperations.add( WCSRequestType.GetCoverage.name() ); } }