Package org.geotools.geometry

Examples of org.geotools.geometry.DirectPosition3D


    /**
     * A coordinate position consisting of all the minimal ordinates for each
     * dimension for all points within the {@code Envelope}.
     */
    public DirectPosition getLowerCorner() {
        return new DirectPosition3D(crs, getMinX(), getMinY(), getMinZ());
    }
View Full Code Here


    /**
     * A coordinate position consisting of all the maximal ordinates for each
     * dimension for all points within the {@code Envelope}.
     */
    public DirectPosition getUpperCorner() {
        return new DirectPosition3D(crs, getMaxX(), getMaxY(), getMinZ() );
    }
View Full Code Here

        } else {
            int ordinateIdx = 0;
            // HACK: not sure if its correct to assign ordinates 0 to 0 and 1 to
            // 1 or it should be inferred from the crs
            for (int coordIndex = 0; coordIndex < coordCount; coordIndex++) {
                dps[coordIndex] = new DirectPosition3D(crs);
                dps[coordIndex].setOrdinate(0, values[ordinateIdx].doubleValue());
                dps[coordIndex].setOrdinate(1, values[ordinateIdx + 1].doubleValue());
                dps[coordIndex].setOrdinate(2, values[ordinateIdx + 2].doubleValue());
                ordinateIdx += crsDimension;
            }
View Full Code Here

        } else if (position.length < 3 ){
            dp = (crs != null) ? new DirectPosition2D(crs) : new DirectPosition2D();
            dp.setOrdinate(0, position[0].doubleValue());
            dp.setOrdinate(1, position[1].doubleValue());
        } else {
          dp = (crs != null) ? new DirectPosition3D(crs) : new DirectPosition3D();
            dp.setOrdinate(0, position[0].doubleValue());
            dp.setOrdinate(1, position[1].doubleValue());
            dp.setOrdinate(2, position[2].doubleValue());
        }
View Full Code Here

TOP

Related Classes of org.geotools.geometry.DirectPosition3D

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.