private MCoordinate toJTSCoordinate(Point pt) { MCoordinate mc; if (pt.dimension == 2) { mc = pt.haveMeasure ? MCoordinate.create2dWithMeasure(pt.getX(), pt .getY(), pt.getM()) : MCoordinate.create2d(pt.getX(), pt .getY()); } else { mc = pt.haveMeasure ? MCoordinate.create3dWithMeasure(pt.getX(), pt .getY(), pt.getZ(), pt.getM()) : MCoordinate.create3d(pt .getX(), pt.getY(), pt.getZ()); } return mc; }
private org.deegree.geometry.primitive.Point buildPoint( org.postgis.Point p, ICRS crs ) { double[] coords = new double[p.getDimension()]; coords[0] = p.getX(); coords[1] = p.getY(); if ( p.getDimension() > 2 ) { coords[2] = p.getZ(); } return new DefaultPoint( null, crs, null, coords ); }
mi = new double[] { translationVector[0] + min.getX(), translationVector[1] + min.getY() }; ma = new double[] { translationVector[0] + max.getX(), translationVector[1] + max.getY() }; mi = new double[] { translationVector[0] + min.getX(), translationVector[1] + min.getY(), min.getZ() }; ma = new double[] { translationVector[0] + max.getX(), translationVector[1] + max.getY(), max.getZ() };