Package org.geoserver.wms.dimension

Examples of org.geoserver.wms.dimension.DefaultValueConfiguration


            addIfMissing(dimensionName, result);
        }

        // remove unknown ones
        for (Iterator it = result.iterator(); it.hasNext();) {
            DefaultValueConfiguration config = (DefaultValueConfiguration) it.next();
            if (!dimensionNames.contains(config.getDimension())) {
                it.remove();
            }

        }
View Full Code Here


            if (dimension.equals(config.getDimension())) {
                return;
            }
        }

        configs.add(new DefaultValueConfiguration(dimension, DefaultValuePolicy.STANDARD));

    }
View Full Code Here

        // setup both dimensions, there is no match records to the static defaults
        setupVectorDimension(ResourceInfo.ELEVATION, "elevation", DimensionPresentation.LIST, null,
                UNITS, UNIT_SYMBOL);
        setupVectorDimension(ResourceInfo.TIME, "time", DimensionPresentation.LIST, null, null,
                null);
        setupDynamicDimensions("TimeElevation", new DefaultValueConfiguration(ResourceInfo.TIME,
                "Concatenate('2011-05-0', round(elevation + 1))"));

        String request = baseFeatureInfo + "&elevation=1.0";

        assertNull(getFeatureAt(request, 20, 10));
View Full Code Here

        // setup both dimensions, there is no match records to the static defaults
        setupVectorDimension(ResourceInfo.ELEVATION, "elevation", DimensionPresentation.LIST, null,
                UNITS, UNIT_SYMBOL);
        setupVectorDimension(ResourceInfo.TIME, "time", DimensionPresentation.LIST, null, null,
                null);
        setupDynamicDimensions("TimeElevation", new DefaultValueConfiguration(
                ResourceInfo.ELEVATION, DefaultValuePolicy.LIMIT_DOMAIN));

        String request = baseFeatureInfo + "&time=2011-05-02";

        assertNull(getFeatureAt(request, 20, 10));
View Full Code Here

        // setup both dimensions, there is no match records to the static defaults
        setupVectorDimension(ResourceInfo.ELEVATION, "elevation", DimensionPresentation.LIST, null,
                UNITS, UNIT_SYMBOL);
        setupVectorDimension(ResourceInfo.TIME, "time", DimensionPresentation.LIST, null, null,
                null);
        setupDynamicDimensions("TimeElevation", new DefaultValueConfiguration(ResourceInfo.TIME,
                DefaultValuePolicy.LIMIT_DOMAIN));

        String request = baseFeatureInfo + "&elevation=1.0&time=current";

        assertNull(getFeatureAt(request, 20, 10));
View Full Code Here

        // setup both dimensions, there is no match records to the static defaults
        setupVectorDimension(ResourceInfo.ELEVATION, "elevation", DimensionPresentation.LIST, null,
                UNITS, UNIT_SYMBOL);
        setupVectorDimension(ResourceInfo.TIME, "time", DimensionPresentation.LIST, null, null,
                null);
        setupDynamicDimensions("TimeElevation", new DefaultValueConfiguration(
                ResourceInfo.ELEVATION, DefaultValuePolicy.LIMIT_DOMAIN));

        String request = baseFeatureInfo + "&elevation=&time=2011-05-03";

        assertNull(getFeatureAt(request, 20, 10));
View Full Code Here

                DimensionPresentation.LIST, null, UNITS, UNIT_SYMBOL);
        setupRasterDimension(TIME_ELEVATION_CUSTOM, ResourceInfo.TIME, DimensionPresentation.LIST,
                null, null, null);
        setupRasterDimension(TIME_ELEVATION_CUSTOM, CUSTOM_KEY, DimensionPresentation.LIST, null,
                null, null);
        setupDynamicDimensions(TIME_ELEVATION_CUSTOM, new DefaultValueConfiguration(
                ResourceInfo.TIME, DefaultValuePolicy.LIMIT_DOMAIN), new DefaultValueConfiguration(
                CUSTOM, DefaultValuePolicy.LIMIT_DOMAIN));

        // elevation defaults to 0, the other two should follow
        assertEquals(0, getValueAt(baseFeatureInfo, 90, 45), 0d);
View Full Code Here

        setupRasterDimension(TIME_ELEVATION_CUSTOM, ResourceInfo.TIME, DimensionPresentation.LIST,
                null, null, null);
        setupRasterDimension(TIME_ELEVATION_CUSTOM, CUSTOM_KEY, DimensionPresentation.LIST, null,
                null, null);
        String expression = "if_then_else(equalTo(CUSTOM, 'AB1'), '2008-10-31', Concatenate('2008-11-0', round(strSubstringStart(CUSTOM, 2) - 1)))";
        setupDynamicDimensions(TIME_ELEVATION_CUSTOM, new DefaultValueConfiguration(CUSTOM,
                DefaultValuePolicy.LIMIT_DOMAIN), new DefaultValueConfiguration(ResourceInfo.TIME,
                expression));

        // elevation defaults to 0, the other two should follow
        assertEquals(0, getValueAt(baseFeatureInfo, 90, 45), 0d);
View Full Code Here

        setupRasterDimension(TIME_ELEVATION_CUSTOM, ResourceInfo.TIME, DimensionPresentation.LIST,
                null, null, null);
        setupRasterDimension(TIME_ELEVATION_CUSTOM, CUSTOM_KEY, DimensionPresentation.LIST, null,
                null, null);
        String expression = "Concatenate('AB', round(elevation + 1))";
        setupDynamicDimensions(TIME_ELEVATION_CUSTOM, new DefaultValueConfiguration(
                ResourceInfo.TIME, DefaultValuePolicy.LIMIT_DOMAIN), new DefaultValueConfiguration(
                CUSTOM, expression));

        // elevation defaults to 0, the other two should follow
        assertEquals(0, getValueAt(baseFeatureInfo, 90, 45), 0d);
View Full Code Here

        // setup both dimensions, there is no match records to the static defaults
        setupVectorDimension(ResourceInfo.ELEVATION, "elevation", DimensionPresentation.LIST, null,
                UNITS, UNIT_SYMBOL);
        setupVectorDimension(ResourceInfo.TIME, "time", DimensionPresentation.LIST, null, null,
                null);
        setupDynamicDimensions("TimeElevation", new DefaultValueConfiguration(ResourceInfo.TIME,
                DefaultValuePolicy.LIMIT_DOMAIN));

        BufferedImage image = getAsImage(baseGetMap + "&elevation=1.0", "image/png");

        // this select the second feature
View Full Code Here

TOP

Related Classes of org.geoserver.wms.dimension.DefaultValueConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.