src/main/java/mil/nga/sf/wkb/GeometryCodes.java
public static boolean hasZ(int code) {

		boolean hasZ = false;

		int mode = getGeometryMode(code);

		switch (mode) {
		case 0:
		case 2:
			break;
		case 1:
		case 3:
			hasZ = true;
			break;
		default:
			throw new SFException(
					"Unexpected Geometry code for Z determination: " + code);
		}

		return hasZ;
	}
public static boolean hasZ(int code) {

		boolean hasZ = false;

		int mode = getGeometryMode(code);

		switch (mode) {
		case 0:
		case 2:
			break;
		case 1:
		case 3:
			hasZ = true;
			break;
		default:
			throw new SFException(
					"Unexpected Geometry code for Z determination: " + code);
		}

		return hasZ;
	}
public static boolean hasZ ( int code ) { boolean hasZ = false ; int mode = getGeometryMode ( code ) ; switch ( mode ) { case 0 : case 2 : break ; case 1 : case 3 : hasZ = true ; break ; default : throw new SFException ( "Unexpected Geometry code for Z determination: " + code ) ; } return hasZ ; }
Determine if the geometry code has a Z (3D) value

@param code
geometry code
@return true is has Z
Determine if the geometry code has a Z ( 3D ) value