private static List<SMFErrorType> checkCoordinateSystem( final SMFHeader header, final SMFSchema schema, final List<SMFErrorType> errors) { List<SMFErrorType> error_accum = errors; final Optional<SMFCoordinateSystem> coords_opt = schema.requiredCoordinateSystem(); if (coords_opt.isPresent()) { final SMFCoordinateSystem req_coords = coords_opt.get(); if (!Objects.equals(req_coords, header.coordinateSystem())) { error_accum = error_accum.append(errorWrongCoordinateSystem( req_coords, header.coordinateSystem())); } } return error_accum; }
this.writer.newLine(); this.writer.append(serializeAxes(this.header.coordinateSystem())); this.writer.newLine();