Package org.geotools.geometry.iso

Examples of org.geotools.geometry.iso.UnsupportedDimensionException


    //DimensionModel g1Dim = g1.getFeatGeometryFactory().getDimensionModel();
    int g0Dim = g0.getCoordinateReferenceSystem().getCoordinateSystem().getDimension();
    int g1Dim = g1.getCoordinateReferenceSystem().getCoordinateSystem().getDimension();
    if (g0Dim != 2 || g1Dim != 2) {
    //if (!g0Dim.is2D() || !g1Dim.is2D()) {
      throw new UnsupportedDimensionException(
          "This operation only works in 2D");
    }

    arg = new GeometryGraph[2];
    arg[0] = new GeometryGraph(0, g0);
View Full Code Here


                        this.pMax.getOrdinate(X),
                        this.pMin.getOrdinate(Y),
                        this.pMin.getOrdinate(Z)}
      );
    } else {
      throw new UnsupportedDimensionException("3d not supported.");
    }
    return rDP;
  }
View Full Code Here

          rDP = new DirectPositionImpl( crs, new double[]{this.pMin.getOrdinate(X), this.pMax.getOrdinate(Y)});
    } else
            if ( D == DimensionModel.TWOoFIVE_DIMENSIONIAL ) {
              rDP = new DirectPositionImpl( crs, new double[]{this.pMin.getOrdinate(X), this.pMax.getOrdinate(Y), this.pMin.getOrdinate(Z)});
            } else {
              throw new UnsupportedDimensionException("3d not supported.");
            }
    return rDP;
  }
View Full Code Here

          rDP = new DirectPositionImpl( crs, new double[]{this.pMin.getOrdinate(X), this.pMax.getOrdinate(Y)});
    } else
            if ( D == DimensionModel.TWOoFIVE_DIMENSIONIAL ) {
              rDP = new DirectPositionImpl( crs, new double[]{this.pMin.getOrdinate(X), this.pMax.getOrdinate(Y), this.pMin.getOrdinate(Z)});
            } else {
              throw new UnsupportedDimensionException("3d not supported.");
            }
    return rDP;
  }
View Full Code Here

TOP

Related Classes of org.geotools.geometry.iso.UnsupportedDimensionException

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.