Examples of ScaleToSizeType


Examples of net.opengis.wcs20.ScaleToSizeType

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setScaleToSize(ScaleToSizeType newScaleToSize) {
        ScaleToSizeType oldScaleToSize = scaleToSize;
        scaleToSize = newScaleToSize;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, Wcs20Package.SCALING_TYPE__SCALE_TO_SIZE, oldScaleToSize, scaleToSize));
    }
View Full Code Here

Examples of net.opengis.wcs20.ScaleToSizeType

       
        assertNull(scaling.getScaleByFactor());
        assertNull(scaling.getScaleAxesByFactor());
        assertNull(scaling.getScaleToExtent());
       
        ScaleToSizeType sa = scaling.getScaleToSize();
        assertEquals(3, sa.getTargetAxisSize().size());
        TargetAxisSizeType sa1 = sa.getTargetAxisSize().get(0);
        assertEquals("http://www.opengis.net/def/axis/OGC/1/i", sa1.getAxis());
        assertEquals(1000.0, sa1.getTargetSize(), 1e-9);
        TargetAxisSizeType sa2 = sa.getTargetAxisSize().get(1);
        assertEquals("http://www.opengis.net/def/axis/OGC/1/j", sa2.getAxis());
        assertEquals(1000.0, sa2.getTargetSize(), 1e-9);
        TargetAxisSizeType sa3 = sa.getTargetAxisSize().get(2);
        assertEquals("http://www.opengis.net/def/axis/OGC/1/k", sa3.getAxis());
        assertEquals(10.0, sa3.getTargetSize(), 1e-9);
    }
View Full Code Here

Examples of net.opengis.wcs20.ScaleToSizeType

        super("scalesize", ScaleToSizeType.class);
    }

    @Override
    public Object parse(String value) throws Exception {
        ScaleToSizeType sabf = Wcs20Factory.eINSTANCE.createScaleToSizeType();
       
        List<TargetAxisSizeType> items = parseItem(value);
        sabf.getTargetAxisSize().addAll(items);
       
        return sabf;
    }
View Full Code Here

Examples of net.opengis.wcs20.ScaleToSizeType

                "http://www.opengis.net/def/axis/OGC/1/j(1000),http://www.opengis.net/def/axis/OGC/1/k(10)");
       
        Map<String, Object> extensions = getExtensionsMap(gc);
        assertEquals(1, extensions.size());
        ScalingType scaling = (ScalingType) extensions.get(Scaling.NAMESPACE + ":Scaling");
        ScaleToSizeType sts = scaling.getScaleToSize();
        EList<TargetAxisSizeType> scaleAxes = sts.getTargetAxisSize();
        assertEquals(3, scaleAxes.size());
        assertEquals("http://www.opengis.net/def/axis/OGC/1/i", scaleAxes.get(0).getAxis());
        assertEquals(1000d, scaleAxes.get(0).getTargetSize(), 0d);
        assertEquals("http://www.opengis.net/def/axis/OGC/1/j", scaleAxes.get(1).getAxis());
        assertEquals(1000d, scaleAxes.get(1).getTargetSize(), 0d);
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.