/** * This method is responsible for checking the overview policy as defined by the provided {@link * Hints}. * * @return the overview policy which can be one of {@link Hints#VALUE_OVERVIEW_POLICY_IGNORE}, * {@link Hints#VALUE_OVERVIEW_POLICY_NEAREST}, {@link Hints#VALUE_OVERVIEW_POLICY_SPEED}, * {@link Hints#VALUE_OVERVIEW_POLICY_QUALITY}. Default is {@link * Hints#VALUE_OVERVIEW_POLICY_NEAREST}. */ private OverviewPolicy extractOverviewPolicy() { if (this.hints != null) if (this.hints.containsKey(Hints.OVERVIEW_POLICY)) overviewPolicy = (OverviewPolicy) this.hints.get(Hints.OVERVIEW_POLICY); // use default if not provided. Default is nearest if (overviewPolicy == null) overviewPolicy = OverviewPolicy.getDefaultPolicy(); assert overviewPolicy != null; return overviewPolicy; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + (gmlPrefixing ? 1231 : 1237); result = prime * result + (latLon ? 1231 : 1237); result = prime * result + (int) (maxInputMemory ^ (maxInputMemory >>> 32)); result = prime * result + (int) (maxOutputMemory ^ (maxOutputMemory >>> 32)); result = prime * result + ((overviewPolicy == null) ? 0 : overviewPolicy.hashCode()); result = prime * result + ((srs == null) ? 0 : srs.hashCode()); result = prime * result + ((subsamplingEnabled == null) ? 0 : subsamplingEnabled.hashCode()); return result; }
overviewPolicy = OverviewPolicy.getDefaultPolicy(); if (overviewPolicy.equals(OverviewPolicy.IGNORE)) { return;
if (policy.equals(OverviewPolicy.IGNORE)) return imageChoice;
public String getIdValue(Object object, int index) { return ((OverviewPolicy) object).name(); } }
protected void build(IModel info, Form form) { // overview policy form.add(new DropDownChoice("overviewPolicy", Arrays.asList(OverviewPolicy.values()), new OverviewPolicyRenderer())); form.add(new CheckBox("subsamplingEnabled")); // resource limits TextField maxInputMemory = new TextField("maxInputMemory"); maxInputMemory.add(new MinimumValidator(0l)); form.add(maxInputMemory); TextField maxOutputMemory = new TextField("maxOutputMemory"); maxOutputMemory.add(new MinimumValidator(0l)); form.add(maxOutputMemory); }
return OverviewPolicy.valueOf(overviewPolicy); } catch (Exception e) { final WCS20Exception exception =
overviewPolicy = OverviewPolicy.getDefaultPolicy(); if (overviewPolicy.equals(OverviewPolicy.IGNORE) && decimationPolicy.equals(DecimationPolicy.DISALLOW) && virtualNativeResolution == null) return imageChoice; if (!overviewPolicy.equals(OverviewPolicy.IGNORE)) { imageChoice = overviewController.pickOverviewLevel(
if (overviewPolicy.equals(OverviewPolicy.IGNORE)) { return;
public String getIdValue(Object object, int index) { return ((OverviewPolicy) object).name(); } }
protected void build(IModel info, Form form) { // overview policy form.add( new DropDownChoice( "overviewPolicy", Arrays.asList(OverviewPolicy.values()), new OverviewPolicyRenderer())); form.add(new CheckBox("subsamplingEnabled")); // limited srs list TextArea srsList = new SRSListTextArea( "srs", LiveCollectionModel.list(new PropertyModel(info, "sRS"))); form.add(srsList); // resource limits TextField maxInputMemory = new TextField("maxInputMemory"); maxInputMemory.add(RangeValidator.minimum(0l)); form.add(maxInputMemory); TextField maxOutputMemory = new TextField("maxOutputMemory"); maxOutputMemory.add(RangeValidator.minimum(0l)); form.add(maxOutputMemory); // max dimension values TextField<Integer> maxRequestedDimensionValues = new TextField<Integer>("maxRequestedDimensionValues"); maxRequestedDimensionValues.add(RangeValidator.minimum(0)); form.add(maxRequestedDimensionValues); // lat-lon VS lon-lat form.add(new CheckBox("latLon")); }
overviewPolicy = OverviewPolicy.getDefaultPolicy(); if (overviewPolicy.equals(OverviewPolicy.IGNORE)) { return;
/** * This method is responsible for checking the overview policy as defined by the provided {@link * Hints}. * * @return the overview policy which can be one of {@link Hints#VALUE_OVERVIEW_POLICY_IGNORE}, * {@link Hints#VALUE_OVERVIEW_POLICY_NEAREST}, {@link Hints#VALUE_OVERVIEW_POLICY_SPEED}, * {@link Hints#VALUE_OVERVIEW_POLICY_QUALITY}. Default is {@link * Hints#VALUE_OVERVIEW_POLICY_NEAREST}. */ private OverviewPolicy extractOverviewPolicy() { OverviewPolicy overviewPolicy = null; // check if a policy was provided using hints (check even the // deprecated one) if (this.hints != null) if (this.hints.containsKey(Hints.OVERVIEW_POLICY)) overviewPolicy = (OverviewPolicy) this.hints.get(Hints.OVERVIEW_POLICY); // use default if not provided. Default is nearest if (overviewPolicy == null) overviewPolicy = OverviewPolicy.getDefaultPolicy(); assert overviewPolicy != null; return overviewPolicy; }
if (overviewPolicy.equals(OverviewPolicy.IGNORE)) return imageChoice;
public Object getDisplayValue(Object object) { return new StringResourceModel( ((OverviewPolicy) object).name(), WCSAdminPage.this, null) .getString(); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((dimensionsSubset == null) ? 0 : dimensionsSubset.hashCode()); result = prime * result + ((elevationSubset == null) ? 0 : elevationSubset.hashCode()); result = prime * result + ((filter == null) ? 0 : filter.hashCode()); result = prime * result + ((outputCRS == null) ? 0 : outputCRS.hashCode()); result = prime * result + ((overviewPolicy == null) ? 0 : overviewPolicy.hashCode()); result = prime * result + ((spatialInterpolation == null) ? 0 : spatialInterpolation.hashCode()); result = prime * result + ((spatialSubset == null) ? 0 : spatialSubset.hashCode()); result = prime * result + ((temporalInterpolation == null) ? 0 : temporalInterpolation.hashCode()); result = prime * result + ((temporalSubset == null) ? 0 : temporalSubset.hashCode()); return result; }
overviewPolicy = OverviewPolicy.getDefaultPolicy(); if (overviewPolicy.equals(OverviewPolicy.IGNORE) && decimationPolicy.equals(DecimationPolicy.DISALLOW)) return imageChoice; if (!overviewPolicy.equals(OverviewPolicy.IGNORE)) { imageChoice = overviewController.pickOverviewLevel(overviewPolicy, requestedResolution);
/** * This method is responsible for checking the overview policy as defined by the provided {@link * Hints}. * * @return the overview policy which can be one of {@link OverviewPolicy#IGNORE}, {@link * OverviewPolicy#NEAREST}, {@link OverviewPolicy#SPEED}, {@link OverviewPolicy#QUALITY}. * Default is {@link OverviewPolicy#NEAREST}. */ private OverviewPolicy extractOverviewPolicy() { // check if a policy was provided using hints (check even the // deprecated one) if (this.hints != null) if (this.hints.containsKey(Hints.OVERVIEW_POLICY)) overviewPolicy = (OverviewPolicy) this.hints.get(Hints.OVERVIEW_POLICY); // use default if not provided. Default is nearest if (overviewPolicy == null) { overviewPolicy = OverviewPolicy.getDefaultPolicy(); } assert overviewPolicy != null; return overviewPolicy; }
if (policy.equals(OverviewPolicy.IGNORE)) return imageChoice;
public Object getDisplayValue(Object object) { return new StringResourceModel(((OverviewPolicy) object).name(), WCSAdminPage.this, null).getString(); }