本文整理了Java中org.geoserver.wms.WMS.getDefaultCustomDimensionValue()
方法的一些代码示例,展示了WMS.getDefaultCustomDimensionValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WMS.getDefaultCustomDimensionValue()
方法的具体详情如下:
包路径:org.geoserver.wms.WMS
类名称: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));
}
内容来源于网络,如有侵权,请联系作者删除!