Package net.opengis.wcs20

Examples of net.opengis.wcs20.ExtensionType


     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetServiceMetadata(ServiceMetadataType newServiceMetadata, NotificationChain msgs) {
        ServiceMetadataType oldServiceMetadata = serviceMetadata;
        serviceMetadata = newServiceMetadata;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wcs20Package.COVERAGE_OFFERINGS_TYPE__SERVICE_METADATA, oldServiceMetadata, newServiceMetadata);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here


     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetServiceParameters(ServiceParametersType newServiceParameters, NotificationChain msgs) {
        ServiceParametersType oldServiceParameters = serviceParameters;
        serviceParameters = newServiceParameters;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wcs20Package.OFFERED_COVERAGE_TYPE__SERVICE_PARAMETERS, oldServiceParameters, newServiceParameters);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetServiceParameters(ServiceParametersType newServiceParameters, NotificationChain msgs) {
        ServiceParametersType oldServiceParameters = serviceParameters;
        serviceParameters = newServiceParameters;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wcs20Package.COVERAGE_DESCRIPTION_TYPE__SERVICE_PARAMETERS, oldServiceParameters, newServiceParameters);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

        assertNull(scaling.getScaleAxesByFactor());
        assertNull(scaling.getScaleToSize());
       
        ScaleToExtentType se = scaling.getScaleToExtent();
        assertEquals(2, se.getTargetAxisExtent().size());
        TargetAxisExtentType sa1 = se.getTargetAxisExtent().get(0);
        assertEquals("http://www.opengis.net/def/axis/OGC/1/i", sa1.getAxis());
        assertEquals(10.0, sa1.getLow(), 1e-9);
        assertEquals(20.0, sa1.getHigh(), 1e-9);
        TargetAxisExtentType sa2 = se.getTargetAxisExtent().get(1);
        assertEquals("http://www.opengis.net/def/axis/OGC/1/j", sa2.getAxis());
        assertEquals(20.0, sa2.getLow(), 1e-9);
        assertEquals(30.0, sa2.getHigh(), 1e-9);
    }
View Full Code Here

        assertEquals(1, extensions.size());
        ScalingType scaling = (ScalingType) extensions.get(Scaling.NAMESPACE + ":Scaling");
        ScaleToExtentType ste = scaling.getScaleToExtent();
        assertEquals(2, ste.getTargetAxisExtent().size());
        TargetAxisExtentType tax = ste.getTargetAxisExtent().get(0);
        assertEquals("http://www.opengis.net/def/axis/OGC/1/i", tax.getAxis());
        assertEquals(10.0, tax.getLow(), 0d);       
        assertEquals(20.0, tax.getHigh(), 0d);
        tax = ste.getTargetAxisExtent().get(1);
        assertEquals("http://www.opengis.net/def/axis/OGC/1/j", tax.getAxis());
        assertEquals(20.0, tax.getLow(), 0d);       
        assertEquals(30.0, tax.getHigh(), 0d);
    }
View Full Code Here

        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

        return sabf;
    }

    @Override
    protected TargetAxisSizeType buildItem(String axisName, String value) {
        TargetAxisSizeType tas = Wcs20Factory.eINSTANCE.createTargetAxisSizeType();
        try {
            tas.setAxis(axisName.trim());
            tas.setTargetSize(Double.valueOf(value));
        } catch (NumberFormatException e) {
            throwInvalidSyntaxException(null);
        }

        return tas;
View Full Code Here

     * <!-- end-user-doc -->
     * @generated
     */
    public static Wcs20Factory init() {
        try {
            Wcs20Factory theWcs20Factory = (Wcs20Factory)EPackage.Registry.INSTANCE.getEFactory("http://www.opengis.net/wcs/2.0");
            if (theWcs20Factory != null) {
                return theWcs20Factory;
            }
        }
        catch (Exception exception) {
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetExtension1(ExtensionType newExtension1, NotificationChain msgs) {
    ExtensionType oldExtension1 = extension1;
    extension1 = newExtension1;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.SEGMENT_TYPE__EXTENSION1, oldExtension1, newExtension1);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

      dataField.setName(attr.name()); // String
      dataField.setOptype(OPTYPE.CONTINUOUS); // OPTYPE
      String[] strCoordinates = null;
      strCoordinates = createAnchors(attr.index(), k);
      // Add Extension - Coordinate X
      ExtensionType extension = _40Factory.eINSTANCE
          .createExtensionType();
      extension.setName("xCoordinate");
      extension.setValue(strCoordinates[0]);
      dataField.getExtension().add(extension);
      // Add Extension - Coordinate y
      extension = _40Factory.eINSTANCE.createExtensionType();
      extension.setName("yCoordinate");
      extension.setValue(strCoordinates[1]);
      dataField.getExtension().add(extension);
      dataDictionary.getDataField().add(dataField);
    }
    DataFieldType dataField = _40Factory.eINSTANCE.createDataFieldType();
    dataField.setDataType(DATATYPE.STRING); // DATATYPE
    dataField.setName("class"); // String
    dataField.setOptype(OPTYPE.CATEGORICAL); // OPTYPE
    dataDictionary.getDataField().add(dataField);
    Attribute classAttr = data.classAttribute();
    Enumeration values = classAttr.enumerateValues();

    while (values.hasMoreElements()) {
      ValueType valueType = _40Factory.eINSTANCE.createValueType();
      valueType.setValue(values.nextElement().toString());
      dataField.getValue().add(valueType);
    }

    Enumeration<?> helpInstances = data.enumerateInstances();
    while (helpInstances.hasMoreElements()) {
      Instance instance = (Instance) helpInstances.nextElement();
      setMinAndMaxOfAttributes(instance);
    }

    Enumeration<?> instances = data.enumerateInstances();
    while (instances.hasMoreElements()) {
      Instance instance = (Instance) instances.nextElement();
      createPointsU(instance);
    }

    ExtensionType extension = null;
    for (String[] helpBody : bodyU) {
      String helpString = "";
      helpString = helpBody[0] + " " + helpBody[1] + " " + helpBody[2];
      extension = _40Factory.eINSTANCE.createExtensionType();
      extension.setName(Integer.toString(bodyU.indexOf(helpBody) + 1));
      FeatureMapUtil.addText(extension.getMixed(), helpString);
      dataDictionary.getExtension().add(extension);
    }

    resource.getContents().add(documentRoot);
    ByteArrayOutputStream os = new ByteArrayOutputStream();
View Full Code Here

TOP

Related Classes of net.opengis.wcs20.ExtensionType

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.