Examples of descriptors()


Examples of org.opengis.parameter.ParameterDescriptorGroup.descriptors()

                }
                default: {
                    final ParameterDescriptorGroup that = (ParameterDescriptorGroup) object;
                    return getMinimumOccurs() == that.getMinimumOccurs() &&
                           getMaximumOccurs() == that.getMaximumOccurs() &&
                           deepEquals(descriptors(), that.descriptors(), mode);
                }
            }
        }
        return false;
    }
View Full Code Here

Examples of org.opengis.parameter.ParameterDescriptorGroup.descriptors()

         *    - v3   is optional
         * --------------------------------------------- */
        properties = Collections.singletonMap("name", "group");
        group      = new ParameterGroup(properties, new Parameter[] {v1, v2, v3});
        descriptor = group.getDescriptor();
        content    = descriptor.descriptors();
        writer.format(group); // Ensure there is no exception there.
        assertEquals("name", "group", descriptor.getName().getCode());
        assertEquals("descriptors", 3, content.size());
        assertTrue  ("contains(p1)",  content.contains(p1));
        assertTrue  ("contains(p2)",  content.contains(p2));
View Full Code Here

Examples of org.opengis.parameter.ParameterDescriptorGroup.descriptors()

         *    - v1   is mandatory
         *    - v2   is mandatory
         * --------------------------------------------- */
        group      = new ParameterGroup(properties, new Parameter[] {v1, v2});
        descriptor = group.getDescriptor();
        content    = descriptor.descriptors();
        writer.format(group); // Ensure there is no exception there.
        assertEquals("name", "group", descriptor.getName().getCode());
        assertEquals("descriptors.size()", 2, content.size());
        assertTrue  ("contains(p1)",          content.contains(p1));
        assertTrue  ("contains(p2)",          content.contains(p2));
View Full Code Here

Examples of org.opengis.parameter.ParameterDescriptorGroup.descriptors()

         *    - v1   is mandatory
         *    - v3   is optional
         * --------------------------------------------- */
        group      = new ParameterGroup(properties, new Parameter[] {v1, v3});
        descriptor = group.getDescriptor();
        content    = descriptor.descriptors();
        writer.format(group); // Ensure there is no exception there.
        assertEquals("name", "group", descriptor.getName().getCode());
        assertEquals("descriptors.size()", 2, content.size());
        assertTrue  ("contains(p1)",       content.contains(p1));
        assertFalse ("contains(p2)",       content.contains(p2));
View Full Code Here

Examples of org.opengis.parameter.ParameterDescriptorGroup.descriptors()

     * @return A copy of the parameter values for this map projection.
     */
    @Override
    public ParameterValueGroup getParameterValues() {
        final ParameterDescriptorGroup descriptor = getParameterDescriptors();
        final Collection<GeneralParameterDescriptor> expected = descriptor.descriptors();
        final ParameterValueGroup values = descriptor.createValue();
        set(expected, AbstractProvider.SEMI_MAJOR,         values, semiMajor       );
        set(expected, AbstractProvider.SEMI_MINOR,         values, semiMinor       );
        set(expected, AbstractProvider.CENTRAL_MERIDIAN,   values, centralMeridian );
        set(expected, AbstractProvider.LATITUDE_OF_ORIGIN, values, latitudeOfOrigin);
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.