Examples of VerticalDatumType


Examples of org.opengis.referencing.datum.VerticalDatumType

     * Verifies the vertical datum enumeration.
     */
    @Test
    public void testVertical() {
        for (final CommonCRS.Vertical e : CommonCRS.Vertical.values()) {
            final VerticalDatumType datumType;
            final String axisName, datumName;
            switch (e) {
                case BAROMETRIC:     axisName = "Barometric altitude";    datumName = "Constant pressure surface"; datumType = VerticalDatumType. BAROMETRIC;    break;
                case MEAN_SEA_LEVEL: axisName = "Gravity-related height"; datumName = "Mean Sea Level";            datumType = VerticalDatumType. GEOIDAL;       break;
                case DEPTH:          axisName = "Depth";                  datumName = "Mean Sea Level";            datumType = VerticalDatumType. GEOIDAL;       break;
View Full Code Here

Examples of org.opengis.referencing.datum.VerticalDatumType

     *
     * @param  datum The datum for which to guess a type.
     * @return A datum type, or {@link VerticalDatumType#OTHER_SURFACE} if none can be guessed.
     */
    public static VerticalDatumType guess(final VerticalDatum datum) {
        final VerticalDatumType type = CodeList.valueOf(VerticalDatumType.class,
                new VerticalDatumTypes(IdentifiedObjects.getName(datum, null)));
        return (type != null) ? type : VerticalDatumType.OTHER_SURFACE;
    }
View Full Code Here

Examples of org.opengis.referencing.datum.VerticalDatumType

     *
     * @see #getVerticalDatumType()
     * @see #getTypeElement()
     */
    private VerticalDatumType type() {
        VerticalDatumType t = type;
        if (t == null) {
            type = t = VerticalDatumTypes.guess(this);
        }
        return t;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.