Package org.opengis.parameter

Examples of org.opengis.parameter.ParameterValueGroup.parameter()


     */
    private static ParameterValueGroup createParameterValues() {
        final ParameterValueGroup group = descriptor.createValue();
        group.parameter("latitude_of_origin").setValue(20);
        group.parameter("scale_factor").setValue(0.997);
        group.parameter("false_northing").setValue(20, SI.KILOMETRE);
        return group;
    }

    /**
     * Tests {@link ParameterFormat#format(Object, Appendable)} for descriptors with {@code ContentLevel.BRIEF}.
View Full Code Here


        final Double  ZERO  = 0.0;
        final Double  ONE   = 1.0;
        final Integer THREE = 3;
        final ParameterValueGroup group = create();

        group.parameter("num_row").setValue(1);
        group.parameter("num_col").setValue(1);
        List<GeneralParameterDescriptor> descriptors = group.getDescriptor().descriptors();
        assertDescriptorEquals("num_row", THREE, descriptors.get(0));
        assertDescriptorEquals("num_col", THREE, descriptors.get(1));
        assertDescriptorEquals("elt_0_0", ONE,   descriptors.get(2));
View Full Code Here

        final Double  ONE   = 1.0;
        final Integer THREE = 3;
        final ParameterValueGroup group = create();

        group.parameter("num_row").setValue(1);
        group.parameter("num_col").setValue(1);
        List<GeneralParameterDescriptor> descriptors = group.getDescriptor().descriptors();
        assertDescriptorEquals("num_row", THREE, descriptors.get(0));
        assertDescriptorEquals("num_col", THREE, descriptors.get(1));
        assertDescriptorEquals("elt_0_0", ONE,   descriptors.get(2));
        assertEquals("size", 3, descriptors.size());
View Full Code Here

        assertDescriptorEquals("num_row", THREE, descriptors.get(0));
        assertDescriptorEquals("num_col", THREE, descriptors.get(1));
        assertDescriptorEquals("elt_0_0", ONE,   descriptors.get(2));
        assertEquals("size", 3, descriptors.size());

        group.parameter("num_row").setValue(2);
        group.parameter("num_col").setValue(3);
        descriptors = group.getDescriptor().descriptors();
        assertDescriptorEquals("num_row", THREE, descriptors.get(0));
        assertDescriptorEquals("num_col", THREE, descriptors.get(1));
        assertDescriptorEquals("elt_0_0", ONE,   descriptors.get(2));
View Full Code Here

        assertDescriptorEquals("num_col", THREE, descriptors.get(1));
        assertDescriptorEquals("elt_0_0", ONE,   descriptors.get(2));
        assertEquals("size", 3, descriptors.size());

        group.parameter("num_row").setValue(2);
        group.parameter("num_col").setValue(3);
        descriptors = group.getDescriptor().descriptors();
        assertDescriptorEquals("num_row", THREE, descriptors.get(0));
        assertDescriptorEquals("num_col", THREE, descriptors.get(1));
        assertDescriptorEquals("elt_0_0", ONE,   descriptors.get(2));
        assertDescriptorEquals("elt_0_1", ZERO,  descriptors.get(3));
View Full Code Here

     */
    @Test
    @DependsOnMethod("testParameter")
    public void testValues() {
        final ParameterValueGroup group = create();
        group.parameter("num_row").setValue(2);
        group.parameter("num_col").setValue(3);
        List<GeneralParameterValue> values = group.values();
        assertValueEquals("num_row", 2, values.get(0));
        assertValueEquals("num_col", 3, values.get(1));
        assertEquals("size", 2, values.size());
View Full Code Here

    @Test
    @DependsOnMethod("testParameter")
    public void testValues() {
        final ParameterValueGroup group = create();
        group.parameter("num_row").setValue(2);
        group.parameter("num_col").setValue(3);
        List<GeneralParameterValue> values = group.values();
        assertValueEquals("num_row", 2, values.get(0));
        assertValueEquals("num_col", 3, values.get(1));
        assertEquals("size", 2, values.size());
View Full Code Here

        List<GeneralParameterValue> values = group.values();
        assertValueEquals("num_row", 2, values.get(0));
        assertValueEquals("num_col", 3, values.get(1));
        assertEquals("size", 2, values.size());

        group.parameter("elt_0_1").setValue(8);
        group.parameter("elt_1_1").setValue(7);
        group.parameter("elt_1_2").setValue(6);
        values = group.values();
        assertValueEquals("num_row", 2,   values.get(0));
        assertValueEquals("num_col", 3,   values.get(1));
View Full Code Here

        assertValueEquals("num_row", 2, values.get(0));
        assertValueEquals("num_col", 3, values.get(1));
        assertEquals("size", 2, values.size());

        group.parameter("elt_0_1").setValue(8);
        group.parameter("elt_1_1").setValue(7);
        group.parameter("elt_1_2").setValue(6);
        values = group.values();
        assertValueEquals("num_row", 2,   values.get(0));
        assertValueEquals("num_col", 3,   values.get(1));
        assertValueEquals("elt_0_1", 8.0, values.get(2));
View Full Code Here

        assertValueEquals("num_col", 3, values.get(1));
        assertEquals("size", 2, values.size());

        group.parameter("elt_0_1").setValue(8);
        group.parameter("elt_1_1").setValue(7);
        group.parameter("elt_1_2").setValue(6);
        values = group.values();
        assertValueEquals("num_row", 2,   values.get(0));
        assertValueEquals("num_col", 3,   values.get(1));
        assertValueEquals("elt_0_1", 8.0, values.get(2));
        assertValueEquals("elt_1_1", 7.0, values.get(3));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.