org.geoserver.wms.WMS.getDefaultCustomDimensionValue()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(8.8k)|赞(0)|评价(0)|浏览(212)

本文整理了Java中org.geoserver.wms.WMS.getDefaultCustomDimensionValue()方法的一些代码示例,展示了WMS.getDefaultCustomDimensionValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WMS.getDefaultCustomDimensionValue()方法的具体详情如下:
包路径:org.geoserver.wms.WMS
类名称:WMS
方法名:getDefaultCustomDimensionValue

WMS.getDefaultCustomDimensionValue介绍

[英]Returns the default value for the given custom dimension.
[中]返回给定自定义维度的默认值。

代码示例

代码示例来源:origin: org.geoserver/gs-wms

private void handleCustomDimensionRaster(
    CoverageInfo cvInfo,
    String dimName,
    DimensionInfo dimension,
    ReaderDimensionsAccessor dimAccessor)
    throws IOException {
  final List<String> values = dimAccessor.getDomain(dimName);
  String metadata = getCustomDomainRepresentation(dimension, values);
  String defaultValue = wms.getDefaultCustomDimensionValue(dimName, cvInfo, String.class);
  writeCustomDimension(
      dimName, metadata, defaultValue, dimension.getUnits(), dimension.getUnitSymbol());
}

代码示例来源:origin: org.geoserver/gs-wms

wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);

代码示例来源:origin: org.geoserver/gs-wms

@Test
public void testDefaultCustomDimValueVectorSelector() throws Exception {
  // Use default default value strategy:
  setupCoverageMyDimension(WATTEMP_CUSTOM, null);
  CoverageInfo customCoverage = getCatalog().getCoverageByName(WATTEMP_CUSTOM.getLocalPart());
  String expected = "CustomDimValueA";
  String def =
      wms.getDefaultCustomDimensionValue(
          COVERAGE_DIMENSION_NAME, customCoverage, String.class);
  assertTrue("Default dimension value is null", def != null);
  assertTrue("Default dimension value should be the smallest one", expected.equals(def));
}

代码示例来源:origin: org.geoserver/gs-wms

wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);

代码示例来源:origin: org.geoserver/gs-wms

wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);

代码示例来源:origin: org.geoserver/gs-wms

wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);

代码示例来源:origin: org.geoserver/gs-wms

wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);

代码示例来源:origin: org.geoserver/gs-wms

wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);

代码示例来源:origin: org.geoserver/gs-wms

wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);

代码示例来源:origin: org.geoserver/gs-wms

wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);

代码示例来源:origin: org.geoserver/gs-wms

wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);
addFeatureWithScanningAngle(fid++, biggerThanReference);
d =
    wms.getDefaultCustomDimensionValue(
        SCANNING_ANGLE_DIMENSION, timeElevationCustom, Double.class);
assertTrue("Default value is null", d != null);

代码示例来源:origin: org.geoserver/gs-wms

dimensions.convertDimensionValue(
    name,
    getDefaultCustomDimensionValue(name, coverage, String.class));

代码示例来源:origin: org.geoserver/gs-wms

@Test
public void testExplicitMinCustomDimValueVectorSelector() throws Exception {
  // Use default explicit value strategy:
  DimensionDefaultValueSetting defaultValueSetting = new DimensionDefaultValueSetting();
  defaultValueSetting.setStrategyType(Strategy.MINIMUM);
  setupCoverageMyDimension(WATTEMP_CUSTOM, defaultValueSetting);
  CoverageInfo customCoverage = getCatalog().getCoverageByName(WATTEMP_CUSTOM.getLocalPart());
  String expected = "CustomDimValueA";
  String def =
      wms.getDefaultCustomDimensionValue(
          COVERAGE_DIMENSION_NAME, customCoverage, String.class);
  assertTrue("Default dimension value is null", def != null);
  assertTrue("Default dimension value should be the smallest one", expected.equals(def));
}

代码示例来源:origin: org.geoserver/gs-wms

wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);
    wms.getDefaultCustomDimensionValue(
        REFERENCE_TIME_DIMENSION, timeElevationCustom, java.util.Date.class);
assertTrue("Default value is null", d != null);

代码示例来源:origin: org.geoserver/gs-wms

@Test
public void testExplicitMaxCustomDimValueVectorSelector() throws Exception {
  // Use default explicit value strategy:
  DimensionDefaultValueSetting defaultValueSetting = new DimensionDefaultValueSetting();
  defaultValueSetting.setStrategyType(Strategy.MAXIMUM);
  setupCoverageMyDimension(WATTEMP_CUSTOM, defaultValueSetting);
  CoverageInfo customCoverage = getCatalog().getCoverageByName(WATTEMP_CUSTOM.getLocalPart());
  String expected = "CustomDimValueC";
  String def =
      wms.getDefaultCustomDimensionValue(
          COVERAGE_DIMENSION_NAME, customCoverage, String.class);
  assertTrue("Default dimension value is null", def != null);
  assertTrue("Default dimension value should be the biggest one", expected.equals(def));
}

代码示例来源:origin: org.geoserver/gs-wms

@Test
public void testExplicitNearestToGivenValueCustomDimValueVectorSelector() throws Exception {
  // Use default explicit value strategy:
  DimensionDefaultValueSetting defaultValueSetting = new DimensionDefaultValueSetting();
  defaultValueSetting.setStrategyType(Strategy.NEAREST);
  String referenceValue = "CustomDimValueD";
  defaultValueSetting.setReferenceValue(referenceValue);
  setupCoverageMyDimension(WATTEMP_CUSTOM, defaultValueSetting);
  CoverageInfo customCoverage = getCatalog().getCoverageByName(WATTEMP_CUSTOM.getLocalPart());
  String expected = "CustomDimValueC";
  String def =
      wms.getDefaultCustomDimensionValue(
          COVERAGE_DIMENSION_NAME, customCoverage, String.class);
  assertTrue("Default dimension value is null", def != null);
  assertTrue("Default dimension value should be the closest one", expected.equals(def));
}

相关文章