Package net.opengis.wcs10

Examples of net.opengis.wcs10.DomainSubsetType


                "      <format>TIFF</format>" + //
                "    </output>" + //
                "</GetCoverage>";

        // smoke test, we only try out a very basic request
        GetCoverageType gc = (GetCoverageType) reader.read(null, new StringReader(request), null);
        assertEquals("WCS", gc.getService());
        assertEquals("1.0.0", gc.getVersion());
        assertEquals("nurc:Pk50095", gc.getSourceCoverage());

        GeneralEnvelope envelope = ((GeneralEnvelope) gc.getDomainSubset().getSpatialSubset().getEnvelope().get(0));
        assertEquals("EPSG:32633", CRS.lookupIdentifier(envelope.getCoordinateReferenceSystem(),true));
        assertEquals(347649.93086859107, envelope.getLowerCorner().getOrdinate(0));
        assertEquals(5176214.082539256, envelope.getLowerCorner().getOrdinate(1));
        assertEquals(370725.976428591, envelope.getUpperCorner().getOrdinate(0));
        assertEquals(5196961.352859256, envelope.getUpperCorner().getOrdinate(1));
        assertNotNull(gc.getOutput().getCrs());
        assertEquals("EPSG:4326", gc.getOutput().getCrs().getValue());
        assertNotNull(gc.getOutput().getFormat());
        assertEquals("TIFF", gc.getOutput().getFormat().getValue());
    }
View Full Code Here


                "      <crs>EPSG:4326</crs>" + //
                "      <format>TIFF</format>" + //
                "    </output>" + //
                "</GetCoverage>";

        GetCoverageType gc = (GetCoverageType) reader.read(null, new StringReader(request), null);
        assertEquals(1, gc.getRangeSubset().getAxisSubset().size());

        GridType grid = (GridType) gc.getDomainSubset().getSpatialSubset().getGrid().get(0);
        assertEquals(grid.getSrsName(), "EPSG:4326");
        assertEquals(grid.getAxisName().get(0), "Column");
        assertEquals(grid.getAxisName().get(1), "Row");

        GridEnvelope gridLimits = grid.getLimits();
        assertEquals(0, gridLimits.getLow(0));
        assertEquals(0, gridLimits.getLow(1));
        assertEquals(544, gridLimits.getHigh(0));
        assertEquals(489, gridLimits.getHigh(1));

        RangeSubsetType rangeSet = gc.getRangeSubset();
        AxisSubsetType axisSubset = (AxisSubsetType) rangeSet.getAxisSubset().get(0);
        assertEquals("Band", axisSubset.getName());
        assertEquals(axisSubset.getSingleValue().size(), 0);
        assertEquals(axisSubset.getInterval().size(), 1);
View Full Code Here

   * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
   * @generated
   */
    public NotificationChain basicSetGetCoverage(GetCoverageType1 newGetCoverage, NotificationChain msgs) {
    GetCoverageType1 oldGetCoverage = getCoverage;
    getCoverage = newGetCoverage;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wcs10Package.REQUEST_TYPE__GET_COVERAGE, oldGetCoverage, newGetCoverage);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
   * @generated
   */
    public NotificationChain basicSetHTTP(HTTPType newHTTP, NotificationChain msgs) {
    HTTPType oldHTTP = hTTP;
    hTTP = newHTTP;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wcs10Package.DCP_TYPE_TYPE__HTTP, oldHTTP, newHTTP);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
   * @generated
   */
    public void setInterpolationMethod(InterpolationMethodType newInterpolationMethod) {
    InterpolationMethodType oldInterpolationMethod = interpolationMethod;
    interpolationMethod = newInterpolationMethod == null ? INTERPOLATION_METHOD_EDEFAULT : newInterpolationMethod;
    boolean oldInterpolationMethodESet = interpolationMethodESet;
    interpolationMethodESet = true;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, Wcs10Package.GET_COVERAGE_TYPE__INTERPOLATION_METHOD, oldInterpolationMethod, interpolationMethod, !oldInterpolationMethodESet));
View Full Code Here

   * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
   * @generated
   */
    public void unsetInterpolationMethod() {
    InterpolationMethodType oldInterpolationMethod = interpolationMethod;
    boolean oldInterpolationMethodESet = interpolationMethodESet;
    interpolationMethod = INTERPOLATION_METHOD_EDEFAULT;
    interpolationMethodESet = false;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.UNSET, Wcs10Package.GET_COVERAGE_TYPE__INTERPOLATION_METHOD, oldInterpolationMethod, INTERPOLATION_METHOD_EDEFAULT, oldInterpolationMethodESet));
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setInterpolationMethod(InterpolationMethodType newInterpolationMethod) {
    InterpolationMethodType oldInterpolationMethod = interpolationMethod;
    interpolationMethod = newInterpolationMethod == null ? INTERPOLATION_METHOD_EDEFAULT : newInterpolationMethod;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, Wcs10Package.SUPPORTED_INTERPOLATIONS_TYPE__INTERPOLATION_METHOD, oldInterpolationMethod, interpolationMethod));
  }
View Full Code Here

   * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
   * @generated
   */
    public void setDefault(InterpolationMethodType newDefault) {
    InterpolationMethodType oldDefault = default_;
    default_ = newDefault == null ? DEFAULT_EDEFAULT : newDefault;
    boolean oldDefaultESet = defaultESet;
    defaultESet = true;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, Wcs10Package.SUPPORTED_INTERPOLATIONS_TYPE__DEFAULT, oldDefault, default_, !oldDefaultESet));
View Full Code Here

   * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
   * @generated
   */
    public void unsetDefault() {
    InterpolationMethodType oldDefault = default_;
    boolean oldDefaultESet = defaultESet;
    default_ = DEFAULT_EDEFAULT;
    defaultESet = false;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.UNSET, Wcs10Package.SUPPORTED_INTERPOLATIONS_TYPE__DEFAULT, oldDefault, DEFAULT_EDEFAULT, oldDefaultESet));
View Full Code Here

            axis.getSingleValue().add(theValue);
        }

        Node interval = node.getChild("interval");
        if (interval != null) {
            IntervalType range = Wcs10Factory.eINSTANCE.createIntervalType();
            if (interval.getChild("min") != null) {
                TypedLiteralType theValue = Wcs10Factory.eINSTANCE.createTypedLiteralType();
                theValue.setValue((String) interval.getChildValue("min"));
                range.setMin(theValue);
            }

            if (interval.getChild("max") != null) {
                TypedLiteralType theValue = Wcs10Factory.eINSTANCE.createTypedLiteralType();
                theValue.setValue((String) interval.getChildValue("max"));
                range.setMax(theValue);
            }

            if (interval.getChild("res") != null) {
                TypedLiteralType theValue = Wcs10Factory.eINSTANCE.createTypedLiteralType();
                theValue.setValue((String) interval.getChildValue("res"));
                range.setRes(theValue);
            }

            if (interval.getAttribute("atomic") != null)
                range.setAtomic((Boolean) interval.getAttributeValue("atomic"));
            else
                range.setAtomic(false);
           
            axis.getInterval().add(range);
        }

        return axis;
View Full Code Here

TOP

Related Classes of net.opengis.wcs10.DomainSubsetType

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.